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/c/test_preproc_file3.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
410 B
Text

Space around line break before macro is valid C, but failed to parse previously.
---input---
foo();
#define FOO 0
---tokens---
'foo' Name
'(' Punctuation
')' Punctuation
';' Punctuation
' ' Text.Whitespace
'\n' Text.Whitespace
' ' Text.Whitespace
'#' Comment.Preproc
'define FOO 0' Comment.Preproc
'\n' Comment.Preproc