1[
2 {"type":"Keyword","value":"fn"},
3 {"type":"Text","value":" "},
4 {"type":"NameFunction","value":"main"},
5 {"type":"Punctuation","value":"()"},
6 {"type":"TextWhitespace","value":" "},
7 {"type":"Punctuation","value":"{"},
8 {"type":"TextWhitespace","value":"\n "},
9 {"type":"KeywordDeclaration","value":"let"},
10 {"type":"TextWhitespace","value":" "},
11 {"type":"Name","value":"foo"},
12 {"type":"TextWhitespace","value":" "},
13 {"type":"Operator","value":"="},
14 {"type":"TextWhitespace","value":" "},
15 {"type":"LiteralStringChar","value":"'x'"},
16 {"type":"Punctuation","value":";"},
17 {"type":"TextWhitespace","value":"\n\n "},
18 {"type":"NameFunctionMagic","value":"println!"},
19 {"type":"Punctuation","value":"("},
20 {"type":"TextWhitespace","value":"\n "},
21 {"type":"LiteralString","value":"\"\n Kitchen sink\n "},
22 {"type":"LiteralStringEscape","value":"{{"},
23 {"type":"LiteralString","value":" "},
24 {"type":"LiteralStringEscape","value":"}}"},
25 {"type":"LiteralString","value":" - Escaped\n "},
26 {"type":"LiteralStringEscape","value":"{{"},
27 {"type":"LiteralStringInterpol","value":"{}"},
28 {"type":"LiteralStringEscape","value":"}}"},
29 {"type":"LiteralString","value":" - Escaped with inner interpol\n "},
30 {"type":"LiteralStringInterpol","value":"{foo:#?}"},
31 {"type":"LiteralString","value":" - Ident with pretty debug format\n "},
32 {"type":"LiteralStringInterpol","value":"{0:-\u003c5}"},
33 {"type":"LiteralString","value":" - Positional with complex fill/alignment\n \""},
34 {"type":"Punctuation","value":","},
35 {"type":"TextWhitespace","value":"\n "},
36 {"type":"Name","value":"foo"},
37 {"type":"Punctuation","value":","},
38 {"type":"TextWhitespace","value":"\n "},
39 {"type":"Punctuation","value":");"},
40 {"type":"TextWhitespace","value":"\n\n "},
41 {"type":"CommentSingle","value":"// Unconventional formatting\n"},
42 {"type":"TextWhitespace","value":" "},
43 {"type":"NameFunctionMagic","value":"println!"},
44 {"type":"TextWhitespace","value":"\t"},
45 {"type":"Punctuation","value":"("},
46 {"type":"TextWhitespace","value":"\t"},
47 {"type":"LiteralString","value":"\"Hello, "},
48 {"type":"LiteralStringInterpol","value":"{foo}"},
49 {"type":"LiteralString","value":"!\""},
50 {"type":"Punctuation","value":");"},
51 {"type":"TextWhitespace","value":"\n\n "},
52 {"type":"CommentSingle","value":"// Exhausting the supported macros\n"},
53 {"type":"TextWhitespace","value":" "},
54 {"type":"NameFunctionMagic","value":"eprintln!"},
55 {"type":"Punctuation","value":"("},
56 {"type":"LiteralString","value":"\""},
57 {"type":"LiteralStringInterpol","value":"{foo}"},
58 {"type":"LiteralString","value":"\""},
59 {"type":"Punctuation","value":");"},
60 {"type":"TextWhitespace","value":"\n "},
61 {"type":"NameFunctionMagic","value":"eprint!"},
62 {"type":"Punctuation","value":"("},
63 {"type":"LiteralString","value":"\""},
64 {"type":"LiteralStringInterpol","value":"{foo}"},
65 {"type":"LiteralString","value":"\""},
66 {"type":"Punctuation","value":");"},
67 {"type":"TextWhitespace","value":"\n "},
68 {"type":"NameFunctionMagic","value":"println!"},
69 {"type":"Punctuation","value":"("},
70 {"type":"LiteralString","value":"\""},
71 {"type":"LiteralStringInterpol","value":"{foo}"},
72 {"type":"LiteralString","value":"\""},
73 {"type":"Punctuation","value":");"},
74 {"type":"TextWhitespace","value":"\n "},
75 {"type":"NameFunctionMagic","value":"print!"},
76 {"type":"Punctuation","value":"("},
77 {"type":"LiteralString","value":"\""},
78 {"type":"LiteralStringInterpol","value":"{foo}"},
79 {"type":"LiteralString","value":"\""},
80 {"type":"Punctuation","value":");"},
81 {"type":"TextWhitespace","value":"\n "},
82 {"type":"NameFunctionMagic","value":"format!"},
83 {"type":"Punctuation","value":"("},
84 {"type":"LiteralString","value":"\""},
85 {"type":"LiteralStringInterpol","value":"{foo}"},
86 {"type":"LiteralString","value":"\""},
87 {"type":"Punctuation","value":");"},
88 {"type":"TextWhitespace","value":"\n "},
89 {"type":"NameFunctionMagic","value":"format_args!"},
90 {"type":"Punctuation","value":"("},
91 {"type":"LiteralString","value":"\""},
92 {"type":"LiteralStringInterpol","value":"{foo}"},
93 {"type":"LiteralString","value":"\""},
94 {"type":"Punctuation","value":");"},
95 {"type":"TextWhitespace","value":"\n "},
96 {"type":"NameFunctionMagic","value":"panic!"},
97 {"type":"Punctuation","value":"("},
98 {"type":"LiteralString","value":"\""},
99 {"type":"LiteralStringInterpol","value":"{foo}"},
100 {"type":"LiteralString","value":"\""},
101 {"type":"Punctuation","value":");"},
102 {"type":"TextWhitespace","value":"\n "},
103 {"type":"NameFunctionMagic","value":"todo!"},
104 {"type":"Punctuation","value":"("},
105 {"type":"LiteralString","value":"\""},
106 {"type":"LiteralStringInterpol","value":"{foo}"},
107 {"type":"LiteralString","value":"\""},
108 {"type":"Punctuation","value":");"},
109 {"type":"TextWhitespace","value":"\n "},
110 {"type":"NameFunctionMagic","value":"unreachable!"},
111 {"type":"Punctuation","value":"("},
112 {"type":"LiteralString","value":"\""},
113 {"type":"LiteralStringInterpol","value":"{foo}"},
114 {"type":"LiteralString","value":"\""},
115 {"type":"Punctuation","value":");"},
116 {"type":"TextWhitespace","value":"\n "},
117 {"type":"NameFunctionMagic","value":"unimplemented!"},
118 {"type":"Punctuation","value":"("},
119 {"type":"LiteralString","value":"\""},
120 {"type":"LiteralStringInterpol","value":"{foo}"},
121 {"type":"LiteralString","value":"\""},
122 {"type":"Punctuation","value":");"},
123 {"type":"TextWhitespace","value":"\n"},
124 {"type":"Punctuation","value":"}"},
125 {"type":"TextWhitespace","value":"\n"}
126]
View as plain text