@@ -77,6 +77,11 @@ repository:
7777 - include : ' #type-annotation'
7878 - include : ' #string'
7979 - include : ' #comment'
80+ - name : meta.var-single-variable.expr.ts
81+ begin : ([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])
82+ beginCaptures :
83+ ' 1 ' : { name: meta.definition.variable.ts variable.other.constant.ts }
84+ end : (?=$|[;,=}]|(\s+(of|in)\s+))
8085 - name : meta.var-single-variable.expr.ts
8186 begin : ([_$[:alpha:]][_$[:alnum:]]*)
8287 beginCaptures :
@@ -1397,7 +1402,7 @@ repository:
13971402 )(?=\s*\.\s*[_$[:alpha:]][_$[:alnum:]]*)
13981403 captures:
13991404 '1': { name: punctuation.accessor.ts }
1400- '2': { name: constant .other.object.property.ts }
1405+ '2': { name: variable .other.constant .object.property.ts }
14011406 '3': { name: variable.other.object.property.ts }
14021407 # function and method assignment
14031408 - match : |-
@@ -1412,7 +1417,7 @@ repository:
14121417 - match : (\.)\s*([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])
14131418 captures :
14141419 ' 1 ' : { name: punctuation.accessor.ts }
1415- ' 2 ' : { name: constant .other.property.ts }
1420+ ' 2 ' : { name: variable .other.constant .property.ts }
14161421 # properties
14171422 - match : (\.)\s*([_$[:alpha:]][_$[:alnum:]]*)
14181423 captures :
@@ -1425,10 +1430,10 @@ repository:
14251430 ([_$[:alpha:]][_$[:alnum:]]*)
14261431 )(?=\s*\.\s*[_$[:alpha:]][_$[:alnum:]]*)
14271432 captures:
1428- '1': { name: constant .other.object.ts }
1433+ '1': { name: variable .other.constant .object.ts }
14291434 '2': { name: variable.other.object.ts }
14301435 # const
1431- - name : constant .other.ts
1436+ - name : variable .other.constant .ts
14321437 match : ([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])
14331438 # vars
14341439 - name : variable.other.readwrite.ts
0 commit comments