Skip to content

Syntax for class decorators #590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tobiasandersen opened this issue Aug 5, 2016 · 1 comment
Closed

Syntax for class decorators #590

tobiasandersen opened this issue Aug 5, 2016 · 1 comment

Comments

@tobiasandersen
Copy link

There's currently support for function decorators, e.g.:

@computed // jsDecoratorFunction
get title () { ... } 

But not for class decorators, e.g.:

@observer // nothing
class MyClass { ... }
@felix-d
Copy link

felix-d commented Aug 13, 2016

In the meantime, a simple hack

au FileType javascript syn match jsDecorator '@[a-zA-Z_][0-9a-zA-Z_$]*'
au FileType javascript hi link jsDecorator Function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants