| 1 |
---input--- |
| 2 |
func test() { |
| 3 |
let world = "world" |
| 4 |
let multi = """ |
| 5 |
hello |
| 6 |
\(world) |
| 7 |
! |
| 8 |
""" |
| 9 |
return multi |
| 10 |
} |
| 11 |
|
| 12 |
---tokens--- |
| 13 |
'func' Keyword.Declaration |
| 14 |
' ' Text.Whitespace |
| 15 |
'test' Name.Function |
| 16 |
'(' Punctuation |
| 17 |
')' Punctuation |
| 18 |
' ' Text.Whitespace |
| 19 |
'{' Punctuation |
| 20 |
'\n' Text |
| 21 |
|
| 22 |
' ' Text.Whitespace |
| 23 |
'let' Keyword.Declaration |
| 24 |
' ' Text.Whitespace |
| 25 |
'world' Name.Variable |
| 26 |
' ' Text.Whitespace |
| 27 |
'=' Punctuation |
| 28 |
' ' Text.Whitespace |
| 29 |
'"' Literal.String |
| 30 |
'world' Literal.String |
| 31 |
'"' Literal.String |
| 32 |
'\n' Text |
| 33 |
|
| 34 |
' ' Text.Whitespace |
| 35 |
'let' Keyword.Declaration |
| 36 |
' ' Text.Whitespace |
| 37 |
'multi' Name.Variable |
| 38 |
' ' Text.Whitespace |
| 39 |
'=' Punctuation |
| 40 |
' ' Text.Whitespace |
| 41 |
'"""' Literal.String |
| 42 |
'\n hello\n ' Literal.String |
| 43 |
'\\(' Literal.String.Interpol |
| 44 |
'world' Name |
| 45 |
')' Literal.String.Interpol |
| 46 |
'\n !\n ' Literal.String |
| 47 |
'"""' Literal.String |
| 48 |
'\n' Text |
| 49 |
|
| 50 |
' ' Text.Whitespace |
| 51 |
'return' Keyword |
| 52 |
' ' Text.Whitespace |
| 53 |
'multi' Name |
| 54 |
'\n' Text |
| 55 |
|
| 56 |
'}' Punctuation |
| 57 |
'\n' Text |