Spell check underline ignores tabs in text
beaswag opened this issue · comments
beaswag commented
Todor Imreorov commented
I think the problem is that the Tab offsets the word and the linter doesnt take that into account at all
Todor Imreorov commented
This is kind of a hard one to fix due to how tabs and spaces are treated as the same symbol there.
If anyone would like to try a pr, you would need to somehow keep tabs at
https://github.com/YarnSpinnerTool/YarnEditor/blob/master/src/js/libs/spellcheck_ace.js#L72
and account for them all the way to
https://github.com/YarnSpinnerTool/YarnEditor/blob/master/src/js/libs/spellcheck_ace.js#L126
ace editor kind of makes this extra funky too.I couldnt figure out a clean way to fix it, but would welcome one :)