Explorar el Código

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

Fix JavaScript RegExp range closing bracket
Alexandru Dima hace 6 años
padre
commit
f0832de23a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      website/monarch.html

+ 1 - 1
website/monarch.html

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