File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,10 @@ contexts:
121
121
- match : ' '' [\x00-\x7F]'' '
122
122
scope : string.quoted.single
123
123
124
+ typeParameter :
125
+ - match : ' '' [A-Za-z][A-Za-z0-9_]*'
126
+ scope : support.type
127
+
124
128
number :
125
129
- match :
126
130
\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\.[0-9_]+)?([eE][-+]?[0-9_]+)?)?)\b
@@ -285,6 +289,7 @@ contexts:
285
289
- include : commentLine
286
290
- include : commentBlock
287
291
- include : character
292
+ - include : typeParameter
288
293
- include : string
289
294
- include : attribute
290
295
- include : function
Original file line number Diff line number Diff line change @@ -132,11 +132,13 @@ let asd = foo["bar"]
132
132
133
133
type bla <'a > = {
134
134
// <- storage.type
135
+ // ^^ support.type
135
136
// ^ punctuation.section.braces.begin
136
137
a : int ,
137
138
// ^ punctuation.separator
138
139
// ^ punctuation.separator
139
140
ok : 'a ,
141
+ // ^^ support.type
140
142
}
141
143
// <- punctuation.section.braces.end
142
144
You can’t perform that action at this time.
0 commit comments