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/annotation_named_params.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

27 lines
764 B
Text

Asserts that annotation named parameters use Name, which is different from the
normal "scoped_name =" lexing, which uses Name.Constant.
---input---
@mod::anno(value = const_a) const short const_b = const_a;
---tokens---
'@mod::anno' Name.Decorator
'(' Punctuation
'value' Name
' ' Text.Whitespace
'=' Punctuation
' ' Text.Whitespace
'const_a' Name
')' Punctuation
' ' Text.Whitespace
'const' Keyword.Declaration
' ' Text.Whitespace
'short' Keyword.Type
' ' Text.Whitespace
'const_b' Name.Constant
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'const_a' Name
';' Punctuation
'\n' Text.Whitespace