Debian Codegraph @

tests/snippets/typst/numbers.txt

raw
1 ---input---
2 #(
3 1234567890,
4 0b10100,
5 0o01234567,
6 0x0123456789abcdef,
7 0x0123456789ABCDEF,
8 1e5,
9 -0.4,
10 0.123456789
11 )
12 #1234567890
13 #0b10100
14 #0o01234567
15 #0x0123456789abcdef
16 #0x0123456789ABCDEF
17 #1e5
18 #0.4
19 $ #1234567890 $
20 $ #0b10100 $
21 $ #0o01234567 $
22 $ #0x0123456789abcdef $
23 $ #0x0123456789ABCDEF $
24 $ #1e5 $
25 $ #0.4 $
26
27 ---tokens---
28 '#(' Punctuation
29 '\n ' Text.Whitespace
30 '1234567890' Literal.Number.Integer
31 ',' Punctuation
32 '\n ' Text.Whitespace
33 '0b10100' Literal.Number.Bin
34 ',' Punctuation
35 '\n ' Text.Whitespace
36 '0o01234567' Literal.Number.Oct
37 ',' Punctuation
38 '\n ' Text.Whitespace
39 '0x0123456789abcdef' Literal.Number.Hex
40 ',' Punctuation
41 '\n ' Text.Whitespace
42 '0x0123456789ABCDEF' Literal.Number.Hex
43 ',' Punctuation
44 '\n ' Text.Whitespace
45 '1e5' Literal.Number.Float
46 ',' Punctuation
47 '\n ' Text.Whitespace
48 '-' Operator
49 '0.4' Literal.Number.Float
50 ',' Punctuation
51 '\n ' Text.Whitespace
52 '0.123456789' Literal.Number.Float
53 '\n' Text.Whitespace
54
55 ')' Punctuation
56 '\n' Text.Whitespace
57
58 '#1234567890' Literal.Number.Integer
59 '\n' Text.Whitespace
60
61 '#0b10100' Literal.Number.Bin
62 '\n' Text.Whitespace
63
64 '#0o01234567' Literal.Number.Oct
65 '\n' Text.Whitespace
66
67 '#0x0123456789abcdef' Literal.Number.Hex
68 '\n' Text.Whitespace
69
70 '#0x0123456789ABCDEF' Literal.Number.Hex
71 '\n' Text.Whitespace
72
73 '#1e5' Literal.Number.Float
74 '\n' Text.Whitespace
75
76 '#0.4' Literal.Number.Float
77 '\n' Text.Whitespace
78
79 '$' Punctuation
80 ' ' Text.Whitespace
81 '#1234567890' Literal.Number.Integer
82 ' ' Text.Whitespace
83 '$' Punctuation
84 '\n' Text.Whitespace
85
86 '$' Punctuation
87 ' ' Text.Whitespace
88 '#0b10100' Literal.Number.Bin
89 ' ' Text.Whitespace
90 '$' Punctuation
91 '\n' Text.Whitespace
92
93 '$' Punctuation
94 ' ' Text.Whitespace
95 '#0o01234567' Literal.Number.Oct
96 ' ' Text.Whitespace
97 '$' Punctuation
98 '\n' Text.Whitespace
99
100 '$' Punctuation
101 ' ' Text.Whitespace
102 '#0x0123456789abcdef' Literal.Number.Hex
103 ' ' Text.Whitespace
104 '$' Punctuation
105 '\n' Text.Whitespace
106
107 '$' Punctuation
108 ' ' Text.Whitespace
109 '#0x0123456789ABCDEF' Literal.Number.Hex
110 ' ' Text.Whitespace
111 '$' Punctuation
112 '\n' Text.Whitespace
113
114 '$' Punctuation
115 ' ' Text.Whitespace
116 '#1e5' Literal.Number.Float
117 ' ' Text.Whitespace
118 '$' Punctuation
119 '\n' Text.Whitespace
120
121 '$' Punctuation
122 ' ' Text.Whitespace
123 '#0.4' Literal.Number.Float
124 ' ' Text.Whitespace
125 '$' Punctuation
126 '\n' Text.Whitespace