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,12 @@
# Assures lines lead by either # or ! are recognized as a comment
---input---
! a comment
# also a comment
---tokens---
'! a comment' Comment.Single
'\n' Text.Whitespace
'# also a comment' Comment.Single
'\n' Text.Whitespace

View File

@ -0,0 +1,10 @@
---input---
key = value
---tokens---
'key' Name.Attribute
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'value' Literal.String
'\n' Text.Whitespace

View File

@ -0,0 +1,12 @@
---input---
key = doubleword\ value
---tokens---
'key' Name.Attribute
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'doubleword' Literal.String
'\\ ' Literal.String.Escape
'value' Literal.String
'\n' Text.Whitespace

View File

@ -0,0 +1,6 @@
---input---
justkey
---tokens---
'justkey' Name.Attribute
'\n' Text.Whitespace

View File

@ -0,0 +1,8 @@
---input---
just\ key
---tokens---
'just' Name.Attribute
'\\ ' Literal.String.Escape
'key' Name.Attribute
'\n' Text.Whitespace

View File

@ -0,0 +1,6 @@
---input---
# comment
---tokens---
'# comment' Comment.Single
'\n' Text.Whitespace

View File

@ -0,0 +1,8 @@
---input---
key value
---tokens---
'key' Name.Attribute
' ' Text.Whitespace
'value' Literal.String
'\n' Text.Whitespace