allowing a regex literal to be the last token in a file ... Lexer bug.
This commit is contained in:
parent
b61399fbde
commit
88ea66b4c9
|
@ -682,7 +682,7 @@
|
|||
// Regex-matching-regexes.
|
||||
REGEX_START = /^\/[^\/ ]/;
|
||||
REGEX_INTERPOLATION = /([^\\]\$[a-zA-Z_@]|[^\\]\$\{.*[^\\]\})/;
|
||||
REGEX_END = /^(([imgy]{1,4})\b|\W)/;
|
||||
REGEX_END = /^(([imgy]{1,4})\b|\W|$)/;
|
||||
REGEX_ESCAPE = /\\[^\$]/g;
|
||||
// Token cleaning regexes.
|
||||
JS_CLEANER = /(^`|`$)/g;
|
||||
|
|
|
@ -500,7 +500,7 @@ ASSIGNMENT : /^[:=]$/
|
|||
# Regex-matching-regexes.
|
||||
REGEX_START : /^\/[^\/ ]/
|
||||
REGEX_INTERPOLATION: /([^\\]\$[a-zA-Z_@]|[^\\]\$\{.*[^\\]\})/
|
||||
REGEX_END : /^(([imgy]{1,4})\b|\W)/
|
||||
REGEX_END : /^(([imgy]{1,4})\b|\W|$)/
|
||||
REGEX_ESCAPE : /\\[^\$]/g
|
||||
|
||||
# Token cleaning regexes.
|
||||
|
|
Loading…
Reference in New Issue