From a2dc2b9357b4dfa501ef10dfd4adc06b4cf95195 Mon Sep 17 00:00:00 2001 From: Jeff Hykin Date: Sun, 12 Jan 2020 22:53:40 -0600 Subject: [PATCH] add distinction between `func()` and `.func()` Allows this kind of theme highlighting ![code_cpp](https://user-images.githubusercontent.com/17692058/72233639-26c08200-358e-11ea-9a33-fbb58fefa80d.png) ![code_cpp](https://user-images.githubusercontent.com/17692058/72233659-42c42380-358e-11ea-9ecb-5a97f70b3edf.png) All tests pass once generated --- TypeScript.YAML-tmLanguage | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TypeScript.YAML-tmLanguage b/TypeScript.YAML-tmLanguage index b8356965..455386db 100644 --- a/TypeScript.YAML-tmLanguage +++ b/TypeScript.YAML-tmLanguage @@ -1465,6 +1465,8 @@ repository: end: (?={{functionCallLookup}}) patterns: - include: '#support-function-call-identifiers' + - name: entity.name.function.property.ts + match: (?=\.)({{propertyIdentifier}}) - name: entity.name.function.ts match: ({{propertyIdentifier}}) - include: '#comment'