Debian Codegraph @

tests/snippets/tablegen/test_strings.txt

raw
1 ---input---
2 string woof = "woof";
3 string escaped = "a \"woof\" and \'woof\',a \\, and a \tand not a \b...\n";
4 let s = "
5
6 ---tokens---
7 'string' Keyword.Type
8 ' ' Text.Whitespace
9 'woof' Name
10 ' ' Text.Whitespace
11 '=' Punctuation
12 ' ' Text.Whitespace
13 '"' Literal.String
14 'woof' Literal.String
15 '"' Literal.String
16 ';' Punctuation
17 '\n' Text.Whitespace
18
19 'string' Keyword.Type
20 ' ' Text.Whitespace
21 'escaped' Name
22 ' ' Text.Whitespace
23 '=' Punctuation
24 ' ' Text.Whitespace
25 '"' Literal.String
26 'a ' Literal.String
27 '\\"' Literal.String.Escape
28 'woof' Literal.String
29 '\\"' Literal.String.Escape
30 ' and ' Literal.String
31 "\\'" Literal.String.Escape
32 'woof' Literal.String
33 "\\'" Literal.String.Escape
34 ',a ' Literal.String
35 '\\\\' Literal.String.Escape
36 ', and a ' Literal.String
37 '\\t' Literal.String.Escape
38 'and not a ' Literal.String
39 '\\' Error
40 'b...' Literal.String
41 '\\n' Literal.String.Escape
42 '"' Literal.String
43 ';' Punctuation
44 '\n' Text.Whitespace
45
46 'let' Keyword
47 ' ' Text.Whitespace
48 's' Name
49 ' ' Text.Whitespace
50 '=' Punctuation
51 ' ' Text.Whitespace
52 '"' Literal.String
53 '\n' Literal.String