mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
removed YES/NO/ON/OFF from rewriter/parser
This commit is contained in:
@@ -577,13 +577,17 @@
|
||||
return Lexer;
|
||||
})();
|
||||
JS_KEYWORDS = ['if', 'else', 'true', 'false', 'new', 'return', 'try', 'catch', 'finally', 'throw', 'break', 'continue', 'for', 'in', 'while', 'delete', 'instanceof', 'typeof', 'switch', 'super', 'extends', 'class', 'this', 'null', 'debugger'];
|
||||
COFFEE_KEYWORDS = ['then', 'unless', 'until', 'loop', 'yes', 'no', 'on', 'off', 'of', 'by', 'when'];
|
||||
COFFEE_KEYWORDS = ['then', 'unless', 'until', 'loop', 'of', 'by', 'when'];
|
||||
for (op in (COFFEE_ALIASES = {
|
||||
and: '&&',
|
||||
or: '||',
|
||||
is: '==',
|
||||
isnt: '!=',
|
||||
not: '!'
|
||||
not: '!',
|
||||
yes: 'TRUE',
|
||||
no: 'FALSE',
|
||||
on: 'TRUE',
|
||||
off: 'FALSE'
|
||||
})) {
|
||||
COFFEE_KEYWORDS.push(op);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user