othree / yajs.vim

YAJS.vim: Yet Another JavaScript Syntax for Vim
http://www.vim.org/scripts/script.php?script_id=4974
Vim License
688 stars 41 forks source link

async/await not highlight #152

Closed zhaochy1990 closed 6 years ago

zhaochy1990 commented 6 years ago

for async/await method in class, it works. but for functions, it doesn't image

othree commented 6 years ago

Hi, this is what I see:

2017-12-15 11 32 33

I will need code snippets to reproduce your issue.

jonashaag commented 6 years ago

Not highlighted:

foo()
(async () => ...)

Highlighted:

foo();
(async () => ...)

Not highlighted:

var spam = async function () {
}
zhaochy1990 commented 6 years ago

maybe some other plugin has conflict with this. After I delete all other plugins, this works good. Maybe I should try to find which plugin conflict with this. Thanks for your quick response and hard work.