Skip to content

Commit

Permalink
Pull request sublimehq#1831 and fixes for enum in header files works
Browse files Browse the repository at this point in the history
  • Loading branch information
maximzdev committed Nov 20, 2021
1 parent 36561ed commit 49f3884
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion C++/C++.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,13 @@ contexts:
- include: scope:source.c#label
- include: expressions

statements-enum:
- include: preprocessor-statements
- include: scope:source.c#label
- match: '{{identifier}}'
scope: entity.name.enum.c++.constants
- include: expressions

expressions:
- include: early-expressions
- include: late-expressions
Expand Down Expand Up @@ -851,6 +858,10 @@ contexts:
push: data-structures
- include: expressions-minus-generic-type

- match: \benum\b
scope: storage.type.c++
set: data-structures-enum-definition

parens:
- match: \(
scope: punctuation.section.group.begin.c++
Expand Down Expand Up @@ -1268,7 +1279,7 @@ contexts:
- match: '\}'
scope: meta.enum.c++ meta.block.c++ punctuation.section.block.end.c++
pop: true
- include: statements
- include: statements-enum

data-structures-union-definition:
- meta_scope: meta.union.c++
Expand Down

0 comments on commit 49f3884

Please sign in to comment.