glayzzle / codemirror-linter

PHP linter for CodeMirror
https://glayzzle.github.io/codemirror-linter/
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

Location of error token #1

Closed ichiriac closed 6 years ago

ichiriac commented 6 years ago

I need to retrieve the token location that raised the error, actually got only line and column that started it.

ichiriac commented 6 years ago

the suppressErrors: true mode on parser with withPositions: true gives me the list of node with an error, so no more need to retrieve them from the error object