| 1 |
---input--- |
| 2 |
#{ |
| 3 |
let a = 42 |
| 4 |
let my-fn(arg: none, arg2: "foo") = { |
| 5 |
[#arg - #arg2] |
| 6 |
} |
| 7 |
do-smth(my-fn(arg: a)) |
| 8 |
do-smth({ |
| 9 |
set text(red) |
| 10 |
my-fn(arg: a * 4) |
| 11 |
|
| 12 |
[My number is #{40 + 2}] |
| 13 |
}) |
| 14 |
} |
| 15 |
|
| 16 |
== My Heading |
| 17 |
|
| 18 |
*Foo* |
| 19 |
|
| 20 |
---tokens--- |
| 21 |
'#{' Punctuation |
| 22 |
'\n ' Text.Whitespace |
| 23 |
'let' Keyword.Declaration |
| 24 |
' ' Text.Whitespace |
| 25 |
'a' Name.Variable |
| 26 |
' ' Text.Whitespace |
| 27 |
'=' Operator |
| 28 |
' ' Text.Whitespace |
| 29 |
'42' Literal.Number.Integer |
| 30 |
'\n ' Text.Whitespace |
| 31 |
'let' Keyword.Declaration |
| 32 |
' ' Text.Whitespace |
| 33 |
'my-fn' Name.Function |
| 34 |
'(' Punctuation |
| 35 |
'arg' Name.Variable |
| 36 |
':' Punctuation |
| 37 |
' ' Text.Whitespace |
| 38 |
'none' Keyword.Constant |
| 39 |
',' Punctuation |
| 40 |
' ' Text.Whitespace |
| 41 |
'arg2' Name.Variable |
| 42 |
':' Punctuation |
| 43 |
' ' Text.Whitespace |
| 44 |
'"foo"' Literal.String.Double |
| 45 |
')' Punctuation |
| 46 |
' ' Text.Whitespace |
| 47 |
'=' Operator |
| 48 |
' ' Text.Whitespace |
| 49 |
'{' Punctuation |
| 50 |
'\n ' Text.Whitespace |
| 51 |
'[' Punctuation |
| 52 |
'#arg' Name.Variable |
| 53 |
' ' Text.Whitespace |
| 54 |
'-' Text |
| 55 |
' ' Text.Whitespace |
| 56 |
'#arg2' Name.Variable |
| 57 |
']' Punctuation |
| 58 |
'\n ' Text.Whitespace |
| 59 |
'}' Punctuation |
| 60 |
'\n ' Text.Whitespace |
| 61 |
'do-smth' Name.Function |
| 62 |
'(' Punctuation |
| 63 |
'my-fn' Name.Function |
| 64 |
'(' Punctuation |
| 65 |
'arg' Name.Variable |
| 66 |
':' Punctuation |
| 67 |
' ' Text.Whitespace |
| 68 |
'a' Name.Variable |
| 69 |
')' Punctuation |
| 70 |
')' Punctuation |
| 71 |
'\n ' Text.Whitespace |
| 72 |
'do-smth' Name.Function |
| 73 |
'(' Punctuation |
| 74 |
'{' Punctuation |
| 75 |
'\n ' Text.Whitespace |
| 76 |
'set' Keyword.Declaration |
| 77 |
' ' Text.Whitespace |
| 78 |
'text' Name.Function |
| 79 |
'(' Punctuation |
| 80 |
'red' Name.Variable |
| 81 |
')' Punctuation |
| 82 |
'\n ' Text.Whitespace |
| 83 |
'my-fn' Name.Function |
| 84 |
'(' Punctuation |
| 85 |
'arg' Name.Variable |
| 86 |
':' Punctuation |
| 87 |
' ' Text.Whitespace |
| 88 |
'a' Name.Variable |
| 89 |
' ' Text.Whitespace |
| 90 |
'*' Operator |
| 91 |
' ' Text.Whitespace |
| 92 |
'4' Literal.Number.Integer |
| 93 |
')' Punctuation |
| 94 |
'\n\n ' Text.Whitespace |
| 95 |
'[' Punctuation |
| 96 |
'My' Text |
| 97 |
' ' Text.Whitespace |
| 98 |
'number' Text |
| 99 |
' ' Text.Whitespace |
| 100 |
'is' Text |
| 101 |
' ' Text.Whitespace |
| 102 |
'#{' Punctuation |
| 103 |
'40' Literal.Number.Integer |
| 104 |
' ' Text.Whitespace |
| 105 |
'+' Operator |
| 106 |
' ' Text.Whitespace |
| 107 |
'2' Literal.Number.Integer |
| 108 |
'}' Punctuation |
| 109 |
']' Punctuation |
| 110 |
'\n ' Text.Whitespace |
| 111 |
'}' Punctuation |
| 112 |
')' Punctuation |
| 113 |
'\n' Text.Whitespace |
| 114 |
|
| 115 |
'}' Punctuation |
| 116 |
'\n' Text.Whitespace |
| 117 |
|
| 118 |
'\n== My Heading' Generic.Heading |
| 119 |
'\n' Text.Whitespace |
| 120 |
|
| 121 |
'\n' Text.Whitespace |
| 122 |
|
| 123 |
'*Foo*' Generic.Strong |
| 124 |
'\n' Text.Whitespace |