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,6 @@
---input---
# Comment
---tokens---
'# Comment' Comment.Single
'\n' Text.Whitespace

View File

@ -0,0 +1,17 @@
---input---
export (Array, AudioStream) var streams
---tokens---
'export' Keyword
' ' Text.Whitespace
'(' Punctuation
'Array' Name.Builtin.Type
',' Punctuation
' ' Text.Whitespace
'AudioStream' Name
')' Punctuation
' ' Text.Whitespace
'var' Keyword
' ' Text.Whitespace
'streams' Name
'\n' Text.Whitespace

View File

@ -0,0 +1,33 @@
---input---
func abc(arg: String) -> void:
print("Hello", arg)
---tokens---
'func' Keyword
' ' Text.Whitespace
'abc' Name
'(' Punctuation
'arg' Name
':' Punctuation
' ' Text.Whitespace
'String' Name.Builtin.Type
')' Punctuation
' ' Text.Whitespace
'-' Operator
'>' Operator
' ' Text.Whitespace
'void' Name.Builtin.Type
':' Punctuation
'\n' Text.Whitespace
'\t' Text.Whitespace
'print' Name.Builtin
'(' Punctuation
'"' Literal.String.Double
'Hello' Literal.String.Double
'"' Literal.String.Double
',' Punctuation
' ' Text.Whitespace
'arg' Name
')' Punctuation
'\n' Text.Whitespace

View File

@ -0,0 +1,20 @@
---input---
class InnerClass:
var a = 5
---tokens---
'class' Keyword
' ' Text.Whitespace
'InnerClass' Name
':' Punctuation
'\n' Text.Whitespace
'\t' Text.Whitespace
'var' Keyword
' ' Text.Whitespace
'a' Name
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'5' Literal.Number.Integer
'\n' Text.Whitespace

View File

@ -0,0 +1,8 @@
---input---
"""
Multiline
"""
---tokens---
'"""\nMultiline\n"""' Literal.String.Doc
'\n' Text.Whitespace

View File

@ -0,0 +1,15 @@
---input---
signal sig (arg1, arg2)
---tokens---
'signal' Keyword
' ' Text.Whitespace
'sig' Name
' ' Text.Whitespace
'(' Punctuation
'arg1' Name
',' Punctuation
' ' Text.Whitespace
'arg2' Name
')' Punctuation
'\n' Text.Whitespace

View File

@ -0,0 +1,22 @@
---input---
func abc(arg):
print("Hello, World!")
---tokens---
'func' Keyword
' ' Text.Whitespace
'abc' Name
'(' Punctuation
'arg' Name
')' Punctuation
':' Punctuation
'\n' Text.Whitespace
'\t' Text.Whitespace
'print' Name.Builtin
'(' Punctuation
'"' Literal.String.Double
'Hello, World!' Literal.String.Double
'"' Literal.String.Double
')' Punctuation
'\n' Text.Whitespace

View File

@ -0,0 +1,12 @@
---input---
var abc = 5.4
---tokens---
'var' Keyword
' ' Text.Whitespace
'abc' Name
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'5.4' Literal.Number.Float
'\n' Text.Whitespace