diff options
Diffstat (limited to 'tests/snippets/omg-idl/enumerators.txt')
-rw-r--r-- | tests/snippets/omg-idl/enumerators.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/snippets/omg-idl/enumerators.txt b/tests/snippets/omg-idl/enumerators.txt new file mode 100644 index 0000000..e6ff1e3 --- /dev/null +++ b/tests/snippets/omg-idl/enumerators.txt @@ -0,0 +1,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 |