Skip to content

[+-].nan incorrectly supported? #546

@RedCMD

Description

@RedCMD

Describe the bug
+.nan and -.nan are parsed as .nan

To Reproduce

+.nan: +.nan 
+.nan: +.nan
-.NaN: -.NaN
-.NaN: -.NaN
.NAN: .NAN
.NAN: .NAN

(Github correctly ignores [+-].nan, but also seems to interpret - as seq)

Expected behaviour
[+-].nan should be parsed as type str

tag-resolution

  • Environment: VSCode 1.89
  • yaml: 2.4.2

Additional context
also no error is given when multiple keys are given with the same value of type .nan

image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions