Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tokenize tags and mapping keys with proper order #96

Closed
kpodsiad opened this issue Nov 12, 2021 · 0 comments · Fixed by #97
Closed

Tokenize tags and mapping keys with proper order #96

kpodsiad opened this issue Nov 12, 2021 · 0 comments · Fixed by #97
Assignees

Comments

@kpodsiad
Copy link
Contributor

Similar to the #87.

See related testcase:

// todo Tag token should be placed after MappingKey
test("verbatim tag".ignore) {
val yaml = """|---
|!<tag:yaml.org,2002:str> foo :
| !<!bar> baz""".stripMargin
val tokens = List(
DocumentStart,
MappingStart,
MappingKey,
Tag(TagValue.Verbatim("!<tag:yaml.org,2002:str>")),
Scalar("foo"),
MappingValue,
Tag(TagValue.Verbatim("!<!bar>")),
Scalar("baz"),
BlockEnd
)
assertTokenEquals(yaml.tokens, tokens)
}

@lwronski lwronski linked a pull request Nov 13, 2021 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants