瀏覽代碼

Assume identifiers starting with upper case are type names

Alex Dima 7 年之前
父節點
當前提交
159af65cc5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/typescript/typescript.ts

+ 2 - 2
src/typescript/typescript.ts

@@ -120,8 +120,8 @@ export const language = {
 					'@default': 'identifier'
 					'@default': 'identifier'
 				}
 				}
 			}],
 			}],
-			// [/[A-Z][\w\$]*/, 'type.identifier' ],  // to show class names nicely
-			[/[A-Z][\w\$]*/, 'identifier'],
+			[/[A-Z][\w\$]*/, 'type.identifier' ],  // to show class names nicely
+			// [/[A-Z][\w\$]*/, 'identifier'],
 
 
 			// whitespace
 			// whitespace
 			{ include: '@whitespace' },
 			{ include: '@whitespace' },