felipeochoa / rjsx-mode

A JSX major mode for Emacs
https://github.com/felipeochoa/rjsx-mode
MIT License
641 stars 32 forks source link

Any love for decorators #95

Closed tavurth closed 5 years ago

tavurth commented 5 years ago

I really want to use js2 or rjsx mode, but since my company uses decorators pretty heavily it's hard. Any way I could create a workaround for decorator styling?

screenshot 2019-02-13 at 10 42 02 am
felipeochoa commented 5 years ago

Your best bet would be to add them to the js2 parser. I can't imagine it's terribly hard given there's already support for the get/set keywords.

On Tue, Feb 12, 2019, 10:43 PM Will <notifications@github.com wrote:

I really want to use js2 or rjsx mode, but since my company uses decorators pretty heavily it's hard. Any way I could create a workaround for decorator styling?

[image: screenshot 2019-02-13 at 10 42 02 am] https://user-images.githubusercontent.com/100964/52685395-25509900-2f7c-11e9-825e-56d1bb8809d5.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/felipeochoa/rjsx-mode/issues/95, or mute the thread https://github.com/notifications/unsubscribe-auth/ACnMcLNxcY1VCKp5hL3px9fPlL_0QuWCks5vM4nUgaJpZM4a4ism .