This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/snippets/kotlin/test_string_interpolation.txt
2022-01-06 18:34:29 +01:00

35 lines
899 B
Text

---input---
val something = "something"
"Here is $something"
"Here is ${something.toUpperList()}"
---tokens---
'val' Keyword.Declaration
' ' Text.Whitespace
'something' Name.Variable
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'"' Literal.String
'something' Literal.String
'"' Literal.String
'\n' Text.Whitespace
'"' Literal.String
'Here is ' Literal.String
'$' Literal.String.Interpol
'something' Name
'"' Literal.String
'\n' Text.Whitespace
'"' Literal.String
'Here is ' Literal.String
'${' Literal.String.Interpol
'something' Name
'.' Punctuation
'toUpperList' Name.Attribute
'(' Punctuation
')' Punctuation
'}' Literal.String.Interpol
'"' Literal.String
'\n' Text.Whitespace