Skip to content

Error output display incorrect for files with windows-style line breaks #1

@misterflippy

Description

@misterflippy

The error location output is incorrect for files with windows-style line breaks. (\r\n)

Example file: test.zip

This file produces error output of:

Parse error on line 4, column 3:
} } "bar":
---------------------^
Unexpected token }

Expected output: The output should include the referenced bracket ("}") and the arrow should point to it like this:

Parse error on line 4, column 3:
...": {    "bar":  }}
-------------------^
Unexpected token }

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions