tests/snippets/c/test_preproc_file5.txt
raw| 1 | Preprocessor macros should appear only at the beginning of the line. |
| 2 | Otherwise we should produce an error token. |
| 3 | |
| 4 | ---input--- |
| 5 | foo(); #define FOO 0 |
| 6 | |
| 7 | ---tokens--- |
| 8 | 'foo' Name |
| 9 | '(' Punctuation |
| 10 | ')' Punctuation |
| 11 | ';' Punctuation |
| 12 | ' ' Text.Whitespace |
| 13 | '#' Error |
| 14 | 'define' Name |
| 15 | ' ' Text.Whitespace |
| 16 | 'FOO' Name |
| 17 | ' ' Text.Whitespace |
| 18 | '0' Literal.Number.Integer |
| 19 | '\n' Text.Whitespace |