Debian Codegraph @

tests/snippets/tex/test_basic.txt

raw
1 ---input---
2 \documentclass{article}
3
4 % Comment
5
6 \ExplSyntaxOn
7 \@@_command:nTF { a } { b } { c }
8 \ExplSyntaxOff
9
10 \makeatletter
11 \def\example@command{example}
12 \makeatother
13
14 \begin{document}
15
16 text \LaTeX: text \
17
18 text \example{}[] text \\
19
20 text \example text. ``quote''; \123\% and: text.
21
22 $\alpha_i\in\{\alpha:\alpha\leq3\}\ \text{something}$
23
24 \end{document}
25
26 ---tokens---
27 '\\documentclass' Keyword
28 '{' Name.Builtin
29 'article' Text
30 '}' Name.Builtin
31 '\n\n' Text
32
33 '% Comment\n' Comment
34
35 '\n' Text
36
37 '\\ExplSyntaxOn' Keyword
38 '\n ' Text
39 '\\@@_command:nTF' Keyword
40 ' ' Text
41 '{' Name.Builtin
42 ' a ' Text
43 '}' Name.Builtin
44 ' ' Text
45 '{' Name.Builtin
46 ' b ' Text
47 '}' Name.Builtin
48 ' ' Text
49 '{' Name.Builtin
50 ' c ' Text
51 '}' Name.Builtin
52 '\n' Text
53
54 '\\ExplSyntaxOff' Keyword
55 '\n\n' Text
56
57 '\\makeatletter' Keyword
58 '\n' Text
59
60 '\\def' Keyword
61 '\\example@command' Keyword
62 '{' Name.Builtin
63 'example' Text
64 '}' Name.Builtin
65 '\n' Text
66
67 '\\makeatother' Keyword
68 '\n\n' Text
69
70 '\\begin' Keyword
71 '{' Name.Builtin
72 'document' Text
73 '}' Name.Builtin
74 '\n\ntext ' Text
75 '\\LaTeX:' Keyword
76 ' text ' Text
77 '\\' Keyword
78 '\n\ntext ' Text
79 '\\example' Keyword
80 '{' Name.Builtin
81 '}' Name.Builtin
82 '[] text ' Text
83 '\\\\' Keyword
84 '\n\ntext ' Text
85 '\\example' Keyword
86 " text. ``quote''; " Text
87 '\\1' Keyword
88 '23' Text
89 '\\%' Keyword
90 ' and: text.\n\n' Text
91
92 '$' Literal.String
93 '\\alpha' Name.Variable
94 '_' Name.Builtin
95 'i' Name.Builtin
96 '\\in' Name.Variable
97 '\\{' Name.Variable
98 '\\alpha' Name.Variable
99 ':' Name.Builtin
100 '\\alpha' Name.Variable
101 '\\leq' Name.Variable
102 '3' Literal.Number
103 '\\}' Name.Variable
104 '\\' Name.Variable
105 ' ' Name.Builtin
106 '\\text' Name.Variable
107 '{' Name.Builtin
108 'something' Name.Builtin
109 '}' Name.Builtin
110 '$' Literal.String
111 '\n\n' Text
112
113 '\\end' Keyword
114 '{' Name.Builtin
115 'document' Text
116 '}' Name.Builtin
117 '\n' Text