@@ -1429,12 +1429,7 @@ repository:
14291429 begin : (?=(({{identifier}}\s*{{propertyAccessPreIdentifier}})*|({{propertyAccessPreIdentifier}})?)({{identifier}}))
14301430 end : (?={{functionCallLookup}})
14311431 patterns :
1432- - include : ' #literal'
1433- - include : ' #support-objects'
1434- - include : ' #object-identifiers'
1435- - include : ' #punctuation-accessor'
1436- - name : keyword.operator.expression.import.ts
1437- match : (?:{{startOfIdentifier}}import(?=\s*[\(]\s*[\"\'\`]))
1432+ - include : ' #support-function-call-identifiers'
14381433 - name : entity.name.function.ts
14391434 match : ({{identifier}})
14401435 - include : ' #comment'
@@ -1443,6 +1438,15 @@ repository:
14431438 - include : ' #type-arguments'
14441439 - include : ' #paren-expression'
14451440
1441+ support-function-call-identifiers :
1442+ patterns :
1443+ - include : ' #literal'
1444+ - include : ' #support-objects'
1445+ - include : ' #object-identifiers'
1446+ - include : ' #punctuation-accessor'
1447+ - name : keyword.operator.expression.import.ts
1448+ match : (?:{{startOfIdentifier}}import(?=\s*[\(]\s*[\"\'\`]))
1449+
14461450 new-expr :
14471451 name : new.expr.ts
14481452 begin : ' {{startOfIdentifier}}(new){{endOfIdentifier}}'
@@ -2514,6 +2518,17 @@ repository:
25142518
25152519 template :
25162520 patterns :
2521+ - name : string.template.ts
2522+ begin : (?=(({{identifier}}\s*{{propertyAccessPreIdentifier}})*|({{propertyAccessPreIdentifier}})?)({{identifier}})({{typeArguments}}\s*)?`)
2523+ end : (?=`)
2524+ patterns :
2525+ - begin : (?=(({{identifier}}\s*{{propertyAccessPreIdentifier}})*|({{propertyAccessPreIdentifier}})?)({{identifier}}))
2526+ end : (?=({{typeArguments}}\s*)?`)
2527+ patterns :
2528+ - include : ' #support-function-call-identifiers'
2529+ - name : entity.name.function.tagged-template.ts
2530+ match : ({{identifier}})
2531+ - include : ' #type-arguments'
25172532 - name : string.template.ts
25182533 begin : ({{identifier}})\s*(?=({{typeArguments}}\s*)`)
25192534 beginCaptures :
0 commit comments