blob: e6ff1e340df21446778fabb1e5f0601fb13202e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Asserts that enumerators use Name.Constant instead of just Name.
---input---
enum Enum_t {enum_a, enum_b};
---tokens---
'enum' Keyword
' ' Text.Whitespace
'Enum_t' Name.Class
' ' Text.Whitespace
'{' Punctuation
'enum_a' Name.Constant
',' Punctuation
' ' Text.Whitespace
'enum_b' Name.Constant
'}' Punctuation
';' Punctuation
'\n' Text.Whitespace
|