소스 검색

Merge pull request #121 from VarghaSabee/dart/safari-bug

Safari regex error fix (negative lookbehind) #2179
Alexandru Dima 4 년 전
부모
커밋
e62d8d0d8a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/dart/dart.ts

+ 1 - 1
src/dart/dart.ts

@@ -181,7 +181,7 @@ export const language = <languages.IMonarchLanguage>{
 					}
 					}
 				}
 				}
 			],
 			],
-			[/(?<![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*)/, 'type.identifier'], // to show class names nicely
+			[/[A-Z_$][\w\$]*/, 'type.identifier'], // show class names
 			// [/[A-Z][\w\$]*/, 'identifier'],
 			// [/[A-Z][\w\$]*/, 'identifier'],
 
 
 			// whitespace
 			// whitespace