go-yaml
go-yaml copied to clipboard
Incorrect line & column reported
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.