Debian Codegraph @

tests/snippets/c/test_string_resembling_decl_end.txt

raw
1 ---input---
2 // This should not be recognized as a function declaration followed by
3 // garbage.
4 string xyz(");");
5
6 // This should not be recognized as a function definition.
7
8 string xyz("){ }");
9
10 ---tokens---
11 '// This should not be recognized as a function declaration followed by\n' Comment.Single
12
13 '// garbage.\n' Comment.Single
14
15 'string' Name
16 ' ' Text.Whitespace
17 'xyz' Name
18 '(' Punctuation
19 '"' Literal.String
20 ');' Literal.String
21 '"' Literal.String
22 ')' Punctuation
23 ';' Punctuation
24 '\n' Text.Whitespace
25
26 '\n' Text.Whitespace
27
28 '// This should not be recognized as a function definition.\n' Comment.Single
29
30 '\n' Text.Whitespace
31
32 'string' Name
33 ' ' Text.Whitespace
34 'xyz' Name
35 '(' Punctuation
36 '"' Literal.String
37 '){ }' Literal.String
38 '"' Literal.String
39 ')' Punctuation
40 ';' Punctuation
41 '\n' Text.Whitespace