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

Parse triple dot in a string #313

Closed
OndrejSpanel opened this issue Jul 13, 2024 · 1 comment · Fixed by #318
Closed

Parse triple dot in a string #313

OndrejSpanel opened this issue Jul 13, 2024 · 1 comment · Fixed by #318
Labels
bug Something isn't working has-pr

Comments

@OndrejSpanel
Copy link

OndrejSpanel commented Jul 13, 2024

Following returns error:

import org.virtuslab.yaml.*

val yaml = """
P:
  e: S...
  c: N
"""

yaml.asNode

Error is:

org.virtuslab.yaml.ScannerError: Obtained Not found expected key for value but expected got MappingValue
c: N
^

See https://scastie.scala-lang.org/OndrejSpanel/jfavH3u2Sq29Gs5nQHmXKQ/23

@lbialy lbialy added the bug Something isn't working label Jul 17, 2024
@lbialy
Copy link
Contributor

lbialy commented Jul 17, 2024

Hi @OndrejSpanel, ellipsis is used as a document end marker in yaml. Arguably, it should not be parsed as document end marker in this position and this is probably a bug. This works with e: "S..." btw.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working has-pr
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants