tests/snippets/c/test_switch.txt
raw| 1 | ---input--- |
| 2 | int main() |
| 3 | { |
| 4 | switch (0) |
| 5 | { |
| 6 | case 0: |
| 7 | default: |
| 8 | ; |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | ---tokens--- |
| 13 | 'int' Keyword.Type |
| 14 | ' ' Text.Whitespace |
| 15 | 'main' Name.Function |
| 16 | '(' Punctuation |
| 17 | ')' Punctuation |
| 18 | '\n' Text.Whitespace |
| 19 | |
| 20 | '{' Punctuation |
| 21 | '\n' Text.Whitespace |
| 22 | |
| 23 | ' ' Text.Whitespace |
| 24 | 'switch' Keyword |
| 25 | ' ' Text.Whitespace |
| 26 | '(' Punctuation |
| 27 | '0' Literal.Number.Integer |
| 28 | ')' Punctuation |
| 29 | '\n' Text.Whitespace |
| 30 | |
| 31 | ' ' Text.Whitespace |
| 32 | '{' Punctuation |
| 33 | '\n' Text.Whitespace |
| 34 | |
| 35 | ' ' Text.Whitespace |
| 36 | 'case' Keyword |
| 37 | ' ' Text.Whitespace |
| 38 | '0' Literal.Number.Integer |
| 39 | ':' Punctuation |
| 40 | '\n' Text.Whitespace |
| 41 | |
| 42 | ' ' Text.Whitespace |
| 43 | 'default' Keyword |
| 44 | ':' Operator |
| 45 | '\n' Text.Whitespace |
| 46 | |
| 47 | ' ' Text.Whitespace |
| 48 | ';' Punctuation |
| 49 | '\n' Text.Whitespace |
| 50 | |
| 51 | ' ' Text.Whitespace |
| 52 | '}' Punctuation |
| 53 | '\n' Text.Whitespace |
| 54 | |
| 55 | '}' Punctuation |
| 56 | '\n' Text.Whitespace |