File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,13 @@ contexts:
329
329
- include : scope:source.c#label
330
330
- include : expressions
331
331
332
+ statements-enum :
333
+ - include : preprocessor-statements
334
+ - include : scope:source.c#label
335
+ - match : ' {{identifier}}'
336
+ scope : entity.name.enum.c++.constants
337
+ - include : expressions
338
+
332
339
expressions :
333
340
- include : early-expressions
334
341
- include : late-expressions
@@ -851,6 +858,10 @@ contexts:
851
858
push : data-structures
852
859
- include : expressions-minus-generic-type
853
860
861
+ - match : \benum\b
862
+ scope : storage.type.c++
863
+ set : data-structures-enum-definition
864
+
854
865
parens :
855
866
- match : \(
856
867
scope : punctuation.section.group.begin.c++
@@ -1268,7 +1279,7 @@ contexts:
1268
1279
- match : ' \}'
1269
1280
scope : meta.enum.c++ meta.block.c++ punctuation.section.block.end.c++
1270
1281
pop : true
1271
- - include : statements
1282
+ - include : statements-enum
1272
1283
1273
1284
data-structures-union-definition :
1274
1285
- meta_scope : meta.union.c++
You can’t perform that action at this time.
0 commit comments