tests/snippets/c/test_label_followed_by_statement.txt
raw| 1 | ---input--- |
| 2 | int main() |
| 3 | { |
| 4 | foo:return 0; |
| 5 | goto foo; |
| 6 | } |
| 7 | |
| 8 | ---tokens--- |
| 9 | 'int' Keyword.Type |
| 10 | ' ' Text.Whitespace |
| 11 | 'main' Name.Function |
| 12 | '(' Punctuation |
| 13 | ')' Punctuation |
| 14 | '\n' Text.Whitespace |
| 15 | |
| 16 | '{' Punctuation |
| 17 | '\n' Text.Whitespace |
| 18 | |
| 19 | 'foo' Name.Label |
| 20 | ':' Punctuation |
| 21 | 'return' Keyword |
| 22 | ' ' Text.Whitespace |
| 23 | '0' Literal.Number.Integer |
| 24 | ';' Punctuation |
| 25 | '\n' Text.Whitespace |
| 26 | |
| 27 | ' ' Text.Whitespace |
| 28 | 'goto' Keyword |
| 29 | ' ' Text.Whitespace |
| 30 | 'foo' Name |
| 31 | ';' Punctuation |
| 32 | '\n' Text.Whitespace |
| 33 | |
| 34 | '}' Punctuation |
| 35 | '\n' Text.Whitespace |