go-yaml icon indicating copy to clipboard operation
go-yaml copied to clipboard

Incorrect line & column reported

Open prymitive opened this issue 5 years ago • 0 comments

When parsing YAML content I see that lines & columns are not always accurate. Demo here: https://play.golang.org/p/RIVqEbM61KU

Example:

- key1: val1
  key2: |
    val2
[...]

val2 ends up with line line 4 and column -2. Same for val3.

This value:

val7a
/
val7b > 1

is reported as line 17, which is more than 1 line off.

prymitive avatar Apr 06 '21 14:04 prymitive