소스 검색

Port over Microsoft/monaco-editor#1329

Alex Dima 6 년 전
부모
커밋
ba44226434
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/typescript/typescript.ts

+ 1 - 1
src/typescript/typescript.ts

@@ -199,7 +199,7 @@ export const language = {
 			[/\^/, 'regexp.invalid'],
 			[/@regexpesc/, 'regexp.escape'],
 			[/[^\]]/, 'regexp'],
-			[/\]/, '@brackets.regexp.escape.control', '@pop'],
+			[/\]/, { token: 'regexp.escape.control', next: '@pop', bracket: '@close' }]
 		],
 
 		string_double: [