othree / es.next.syntax.vim

ES.Next syntax for Vim
MIT License
125 stars 7 forks source link

keywords hilighted as error inside ternary operator #15

Closed last-partizan closed 6 years ago

last-partizan commented 6 years ago

Hello, i'm using es.next.syntax.vim with yajs, and sometimes it incorrectly hilights null as error. Like this:

screenshot from 2018-03-20 19-21-23

Here is minimal reproducible input:

'test' ? obj.a : null;

instead of null it will hight as error import() typeof and probably other keywords.

othree commented 6 years ago

Yes, I know this issue. Caused by 'Type Hint' rules. Still thinking about how to solve it.

othree commented 6 years ago

Not perfect solution but at least it is not marked as error now.

last-partizan commented 6 years ago

Thanks!