Merge pull request #1329 from jbsulli/javascript-regexp-range-close-bug

Fix JavaScript RegExp range closing bracket
pull/1339/head
Alexandru Dima 2019-03-01 22:27:48 +01:00 committed by GitHub
commit f0832de23a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: [