diff options
author | Ilya Zorin <geraltencore@gmail.com> | 2021-02-06 15:49:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-06 16:49:48 +0100 |
commit | 627123cf397c2f277f12bbbda7544b59d40013a6 (patch) | |
tree | 558b39055e92e1925678dd39faa69ca59bf2fb49 /tests/snippets/kotlin/test_string_interpolation.txt | |
parent | 5a4af5dc6e4005162ba09c177f29288ebaabd4cc (diff) | |
download | pygments-git-627123cf397c2f277f12bbbda7544b59d40013a6.tar.gz |
Improve Kotlin lexer (#1699)
Diffstat (limited to 'tests/snippets/kotlin/test_string_interpolation.txt')
-rw-r--r-- | tests/snippets/kotlin/test_string_interpolation.txt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/snippets/kotlin/test_string_interpolation.txt b/tests/snippets/kotlin/test_string_interpolation.txt new file mode 100644 index 00000000..c254f112 --- /dev/null +++ b/tests/snippets/kotlin/test_string_interpolation.txt @@ -0,0 +1,35 @@ +---input--- +val something = "something" +"Here is $something" +"Here is ${something.toUpperList()}" + +---tokens--- +'val' Keyword.Declaration +' ' Text +'something' Name.Variable +' ' Text +'=' Operator +' ' Text +'"' Literal.String +'something' Literal.String +'"' Literal.String +'\n' Text + +'"' Literal.String +'Here is ' Literal.String +'$' Literal.String.Interpol +'something' Name +'"' Literal.String +'\n' Text + +'"' Literal.String +'Here is ' Literal.String +'${' Literal.String.Interpol +'something' Name +'.' Punctuation +'toUpperList' Name.Attribute +'(' Punctuation +')' Punctuation +'}' Literal.String.Interpol +'"' Literal.String +'\n' Text |