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,13 @@
# Bug #1528: This previously parsed 'token # innocent' as a tag
---input---
here: token # innocent: comment
---tokens---
'here' Name.Tag
':' Punctuation
' ' Text.Whitespace
'token' Literal.Scalar.Plain
' ' Text.Whitespace
'# innocent: comment' Comment.Single
'\n' Text.Whitespace

View File

@ -0,0 +1,11 @@
# Colon in the key name is accepted by the YAML specs too
---input---
foo:bar: value
---tokens---
'foo:bar' Name.Tag
':' Punctuation
' ' Text.Whitespace
'value' Literal.Scalar.Plain
'\n' Text.Whitespace

View File

@ -0,0 +1,11 @@
# Colons in the key name is accepted by the YAML specs too
---input---
foo::bar: value
---tokens---
'foo::bar' Name.Tag
':' Punctuation
' ' Text.Whitespace
'value' Literal.Scalar.Plain
'\n' Text.Whitespace

View File

@ -0,0 +1,11 @@
# Colon at the beginning of the key name is accepted by the YAML specs too
---input---
:foo: value
---tokens---
':foo' Name.Tag
':' Punctuation
' ' Text.Whitespace
'value' Literal.Scalar.Plain
'\n' Text.Whitespace