This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/snippets/omg-idl/enumerators.txt
Matthäus G. Chajdas a537d5e966 Use the correct whitespace token for the C family.
The CFamilyLexer was matching whitespace as Text instead of Whitespace.
2021-06-20 11:42:04 +02:00

18 lines
449 B
Text

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