Imported test cases from pygments

This commit is contained in:
2024-08-03 07:36:47 -03:00
parent c9df4be879
commit 99e1e2b0cb
692 changed files with 37403 additions and 0 deletions

57
tests/swift/strings.txt Normal file
View File

@ -0,0 +1,57 @@
---input---
func test() {
let world = "world"
let multi = """
hello
\(world)
!
"""
return multi
}
---tokens---
'func' Keyword.Declaration
' ' Text
'test' Name.Function
'(' Punctuation
')' Punctuation
' ' Text
'{' Punctuation
'\n' Text
' ' Text
'let' Keyword.Declaration
' ' Text
'world' Name.Variable
' ' Text
'=' Punctuation
' ' Text
'"' Literal.String
'world' Literal.String
'"' Literal.String
'\n' Text
' ' Text
'let' Keyword.Declaration
' ' Text
'multi' Name.Variable
' ' Text
'=' Punctuation
' ' Text
'"""' Literal.String
'\n hello\n ' Literal.String
'\\(' Literal.String.Interpol
'world' Name
')' Literal.String.Interpol
'\n !\n ' Literal.String
'"""' Literal.String
'\n' Text
' ' Text
'return' Keyword
' ' Text
'multi' Name
'\n' Text
'}' Punctuation
'\n' Text