... | @@ -34,7 +34,7 @@ disambiguate. Algorithm: |
... | @@ -34,7 +34,7 @@ disambiguate. Algorithm: |
|
tok is divide
|
|
tok is divide
|
|
else if tok-1 in punctuator // e.g. ";", "==", ">", "/", "+", etc.
|
|
else if tok-1 in punctuator // e.g. ";", "==", ">", "/", "+", etc.
|
|
tok is start of regex literal
|
|
tok is start of regex literal
|
|
else if tok-1 in keywords
|
|
else if tok-1 in keywords and not "this"
|
|
// though some keywords will eventually result in a parse error (eg. debugger, break)
|
|
// though some keywords will eventually result in a parse error (eg. debugger, break)
|
|
tok is start of regex literal
|
|
tok is start of regex literal
|
|
else
|
|
else
|
... | | ... | |