| 1 |
---input--- |
| 2 |
#let song( |
| 3 |
header_display: (number, title, singer) => grid( |
| 4 |
inset: 0b10, |
| 5 |
grid.cell(fill: rgb(0xd0, 0xd0, 0xd0)), |
| 6 |
[ |
| 7 |
#heading(title) |
| 8 |
#if singer != none { |
| 9 |
strong(singer) + "\n" |
| 10 |
} else { |
| 11 |
number |
| 12 |
} |
| 13 |
], |
| 14 |
), |
| 15 |
// comment |
| 16 |
doc, |
| 17 |
) |
| 18 |
|
| 19 |
---tokens--- |
| 20 |
'#let' Keyword.Declaration |
| 21 |
' ' Text.Whitespace |
| 22 |
'song' Name.Function |
| 23 |
'(' Punctuation |
| 24 |
'\n ' Text.Whitespace |
| 25 |
'header_display' Name.Variable |
| 26 |
':' Punctuation |
| 27 |
' ' Text.Whitespace |
| 28 |
'(' Punctuation |
| 29 |
'number' Name.Variable |
| 30 |
',' Punctuation |
| 31 |
' ' Text.Whitespace |
| 32 |
'title' Name.Variable |
| 33 |
',' Punctuation |
| 34 |
' ' Text.Whitespace |
| 35 |
'singer' Name.Variable |
| 36 |
')' Punctuation |
| 37 |
' ' Text.Whitespace |
| 38 |
'=' Operator |
| 39 |
'>' Operator |
| 40 |
' ' Text.Whitespace |
| 41 |
'grid' Name.Function |
| 42 |
'(' Punctuation |
| 43 |
'\n ' Text.Whitespace |
| 44 |
'inset' Name.Variable |
| 45 |
':' Punctuation |
| 46 |
' ' Text.Whitespace |
| 47 |
'0b10' Literal.Number.Bin |
| 48 |
',' Punctuation |
| 49 |
'\n ' Text.Whitespace |
| 50 |
'grid' Name.Variable |
| 51 |
'.' Punctuation |
| 52 |
'cell' Name.Function |
| 53 |
'(' Punctuation |
| 54 |
'fill' Name.Variable |
| 55 |
':' Punctuation |
| 56 |
' ' Text.Whitespace |
| 57 |
'rgb' Name.Function |
| 58 |
'(' Punctuation |
| 59 |
'0xd0' Literal.Number.Hex |
| 60 |
',' Punctuation |
| 61 |
' ' Text.Whitespace |
| 62 |
'0xd0' Literal.Number.Hex |
| 63 |
',' Punctuation |
| 64 |
' ' Text.Whitespace |
| 65 |
'0xd0' Literal.Number.Hex |
| 66 |
')' Punctuation |
| 67 |
')' Punctuation |
| 68 |
',' Punctuation |
| 69 |
'\n ' Text.Whitespace |
| 70 |
'[' Punctuation |
| 71 |
'\n' Text.Whitespace |
| 72 |
|
| 73 |
' ' Text.Whitespace |
| 74 |
'#heading' Name.Function |
| 75 |
'(' Punctuation |
| 76 |
'title' Name.Variable |
| 77 |
')' Punctuation |
| 78 |
'\n' Text.Whitespace |
| 79 |
|
| 80 |
' ' Text.Whitespace |
| 81 |
'#if' Keyword.Reserved |
| 82 |
' ' Text.Whitespace |
| 83 |
'singer' Name.Variable |
| 84 |
' ' Text.Whitespace |
| 85 |
'!=' Operator |
| 86 |
' ' Text.Whitespace |
| 87 |
'none' Keyword.Constant |
| 88 |
' ' Text.Whitespace |
| 89 |
'{' Punctuation |
| 90 |
'\n ' Text.Whitespace |
| 91 |
'strong' Name.Function |
| 92 |
'(' Punctuation |
| 93 |
'singer' Name.Variable |
| 94 |
')' Punctuation |
| 95 |
' ' Text.Whitespace |
| 96 |
'+' Operator |
| 97 |
' ' Text.Whitespace |
| 98 |
'"\\n"' Literal.String.Double |
| 99 |
'\n ' Text.Whitespace |
| 100 |
'}' Punctuation |
| 101 |
' ' Text.Whitespace |
| 102 |
'else' Keyword.Reserved |
| 103 |
' ' Text.Whitespace |
| 104 |
'{' Punctuation |
| 105 |
'\n ' Text.Whitespace |
| 106 |
'number' Name.Variable |
| 107 |
'\n ' Text.Whitespace |
| 108 |
'}' Punctuation |
| 109 |
'\n' Text.Whitespace |
| 110 |
|
| 111 |
' ' Text.Whitespace |
| 112 |
']' Punctuation |
| 113 |
',' Punctuation |
| 114 |
'\n ' Text.Whitespace |
| 115 |
')' Punctuation |
| 116 |
',' Punctuation |
| 117 |
'\n ' Text.Whitespace |
| 118 |
'// comment' Comment.Single |
| 119 |
'\n ' Text.Whitespace |
| 120 |
'doc' Name.Variable |
| 121 |
',' Punctuation |
| 122 |
'\n' Text.Whitespace |
| 123 |
|
| 124 |
')' Punctuation |
| 125 |
'\n' Text.Whitespace |