othree / es.next.syntax.vim

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

Highlighting of expressions in else part of ternary operation #19

Open rishitank opened 5 years ago

rishitank commented 5 years ago

Hi, I'm not sure if this is intended, however the else part of a ternary conditional is highlighted. This is whether it is a function, variable or string. If I remove es.next.syntax.vim then the highlighting does not occur. I tried various color schemes and can reproduce the results. Is this highlighting intentional or some side effect of another bug? Thanks.

image

othree commented 5 years ago

This might be an issue caused by simple type hint. I have some idea about how to solve it. But it requires some fundamental change of yajs.vim