From 159af65cc50b613e6020f42d19ed3849bed6d32b Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Fri, 10 Aug 2018 15:43:12 +0200 Subject: [PATCH] Assume identifiers starting with upper case are type names --- src/typescript/typescript.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/typescript/typescript.ts b/src/typescript/typescript.ts index cba42190..2e1b9f7a 100644 --- a/src/typescript/typescript.ts +++ b/src/typescript/typescript.ts @@ -120,8 +120,8 @@ export const language = { '@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 { include: '@whitespace' },