reserving __bind and __indexOf
This commit is contained in:
parent
385be63126
commit
97f8e9ce1c
|
@ -595,7 +595,7 @@
|
||||||
}) {
|
}) {
|
||||||
COFFEE_KEYWORDS.push(op);
|
COFFEE_KEYWORDS.push(op);
|
||||||
}
|
}
|
||||||
RESERVED = ['case', 'default', 'function', 'var', 'void', 'with', 'do', 'const', 'let', 'enum', 'export', 'import', 'native', '__hasProp', '__extends', '__slice'];
|
RESERVED = ['case', 'default', 'function', 'var', 'void', 'with', 'do', 'const', 'let', 'enum', 'export', 'import', 'native', '__hasProp', '__extends', '__slice', '__bind', '__indexOf'];
|
||||||
JS_FORBIDDEN = JS_KEYWORDS.concat(RESERVED);
|
JS_FORBIDDEN = JS_KEYWORDS.concat(RESERVED);
|
||||||
exports.RESERVED = RESERVED.concat(JS_KEYWORDS).concat(COFFEE_KEYWORDS);
|
exports.RESERVED = RESERVED.concat(JS_KEYWORDS).concat(COFFEE_KEYWORDS);
|
||||||
IDENTIFIER = /^([$A-Za-z_][$\w]*)([^\n\S]*:(?!:))?/;
|
IDENTIFIER = /^([$A-Za-z_][$\w]*)([^\n\S]*:(?!:))?/;
|
||||||
|
|
|
@ -523,7 +523,7 @@ COFFEE_KEYWORDS.push op for op of COFFEE_ALIASES =
|
||||||
RESERVED = [
|
RESERVED = [
|
||||||
'case', 'default', 'function', 'var', 'void', 'with', 'do'
|
'case', 'default', 'function', 'var', 'void', 'with', 'do'
|
||||||
'const', 'let', 'enum', 'export', 'import', 'native'
|
'const', 'let', 'enum', 'export', 'import', 'native'
|
||||||
'__hasProp', '__extends', '__slice'
|
'__hasProp', '__extends', '__slice', '__bind', '__indexOf'
|
||||||
]
|
]
|
||||||
|
|
||||||
# The superset of both JavaScript keywords and reserved words, none of which may
|
# The superset of both JavaScript keywords and reserved words, none of which may
|
||||||
|
|
Loading…
Reference in New Issue