diff --git a/lib/parse.js b/lib/parse.js index e561ab67..48ab2167 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -255,7 +255,7 @@ function tokenizer($TEXT, filename) { }; function token(type, value, is_comment) { - S.regex_allowed = ((type == "operator" && !UNARY_POSTFIX[value]) || + S.regex_allowed = ((type == "operator" && !UNARY_POSTFIX(value)) || (type == "keyword" && KEYWORDS_BEFORE_EXPRESSION(value)) || (type == "punc" && PUNC_BEFORE_EXPRESSION(value))); var ret = {