Merge pull request #1329 from jbsulli/javascript-regexp-range-close-bug
Fix JavaScript RegExp range closing bracketpull/1339/head
commit
f0832de23a
|
@ -772,7 +772,7 @@ return {
|
|||
[/\^/, 'regexp.invalid'],
|
||||
[/@regexpesc/, 'regexp.escape'],
|
||||
[/[^\]]/, 'regexp'],
|
||||
[/\]/, '@brackets.regexp.escape.control', '@pop'],
|
||||
[/\]/, { token: 'regexp.escape.control', next: '@pop', bracket: '@close' }],
|
||||
],
|
||||
|
||||
string_double: [
|
||||
|
|
Loading…
Reference in New Issue