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

13
tests/yaml/test_yaml.txt Normal file
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