othree / es.next.syntax.vim

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

Async class methods not highlighted #4

Closed ar-nelson closed 7 years ago

ar-nelson commented 8 years ago

The async keyword is currently not highlighted when it precedes a class method name. (I'm not sure if async methods are part of the official spec, but I know that Babel at least supports using async in this context.)

othree commented 8 years ago

Do you mean codes like

class Foo {
  async Method1() {}
}
ar-nelson commented 8 years ago

Yes, that. Oddly enough, it works for object methods ({async foo(bar) {return baz;}}), just not classes.

othree commented 7 years ago

2017-03-07 4 02 03

It works now, maybe I just fixed in recent commits.