Reorganize tests into a real spec suite

This commit is contained in:
2024-08-04 19:18:43 -03:00
parent 57c160173c
commit e7c2053222
693 changed files with 136 additions and 116 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