File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -329,6 +329,13 @@ contexts:
329329 - include : scope:source.c#label
330330 - include : expressions
331331
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+
332339 expressions :
333340 - include : early-expressions
334341 - include : late-expressions
@@ -851,6 +858,10 @@ contexts:
851858 push : data-structures
852859 - include : expressions-minus-generic-type
853860
861+ - match : \benum\b
862+ scope : storage.type.c++
863+ set : data-structures-enum-definition
864+
854865 parens :
855866 - match : \(
856867 scope : punctuation.section.group.begin.c++
@@ -1268,7 +1279,7 @@ contexts:
12681279 - match : ' \}'
12691280 scope : meta.enum.c++ meta.block.c++ punctuation.section.block.end.c++
12701281 pop : true
1271- - include : statements
1282+ - include : statements-enum
12721283
12731284 data-structures-union-definition :
12741285 - meta_scope : meta.union.c++
You can’t perform that action at this time.
0 commit comments