othree / es.next.syntax.vim

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

keywords highlighted as errors within typed method #13

Closed tkmct closed 6 years ago

tkmct commented 6 years ago

Hi, I'm using yajs and es.next.syntax.vim together. I'm using flowtype but keywords like const, if, return, etc are highlighted as errors in typed method body. And also some flow keywords like implements, void, boolean are highlighted as errors.

Are there any workaround for this?

2017-10-17 12 56 26
othree commented 6 years ago

Can you provide full code snippets can show this issue

othree commented 6 years ago

Maybe the void cause these issue, can you change void to other word(non reserved word) to test?

tkmct commented 6 years ago

@othree Hi, thanks for the comment. I tried both void and others like this. When trying other than void as type, for example string, that type keywords showed properly but inside the method, keywords are still highlighted as error. But strangely, the keywords inside nested scope, it highlighted properly like return shown inside if statement in this code.

2017-10-19 13 12 53
othree commented 6 years ago

Sorry, I forgot about this issue. I mean, change the first method's void.

I think, After the first void. The definition is broken.