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

View File

@ -0,0 +1,28 @@
---input---
a//c1
//c2
label://c3
a // c4
label: implicit comment
---tokens---
'a' Name.Function
'//c1' Comment.Single
'\n' Text
' ' Text.Whitespace
'//c2' Comment.Single
'\n' Text.Whitespace
'label:' Name.Function
'//c3' Comment.Single
'\n' Text
'a' Name.Function
' ' Text.Whitespace
'// c4' Comment.Single
'\n' Text
'label:' Name.Label
' implicit comment' Comment.Single
'\n' Text.Whitespace

View File

@ -0,0 +1,28 @@
---input---
a 0x1AaAF
a 7777777777777777777777777777777777777777777777777774MSJUVU
a base32(aB/c23=)
a b64 aB/c23=
---tokens---
'a' Name.Function
' ' Text.Whitespace
'0x1AaAF' Literal.Number.Hex
'\n' Text
'a' Name.Function
' ' Text.Whitespace
'7777777777777777777777777777777777777777777777777774MSJUVU' Literal.Number
'\n' Text
'a' Name.Function
' ' Text.Whitespace
'base32' Literal.String.Affix
'(aB/c23=)' Literal.String.Other
'\n' Text
'a' Name.Function
' ' Text.Whitespace
'b64 ' Literal.String.Affix
'aB/c23=' Literal.String.Other
'\n' Text

View File

@ -0,0 +1,15 @@
---input---
a "abc\x123\n\"de//f"
---tokens---
'a' Name.Function
' ' Text.Whitespace
'"' Literal.String
'abc' Literal.String
'\\x12' Literal.String.Escape
'3' Literal.String
'\\n' Literal.String.Escape
'\\"' Literal.String.Escape
'de//f' Literal.String
'"' Literal.String
'\n' Text