Fix typo.
authorMihai Bazon <mihai@bazon.net>
Fri, 12 Jul 2013 06:56:58 +0000 (09:56 +0300)
committerMihai Bazon <mihai@bazon.net>
Fri, 12 Jul 2013 06:56:58 +0000 (09:56 +0300)
Close #239

lib/parse.js

index e561ab6..48ab216 100644 (file)
@@ -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 = {