jsx / jsx-mode.el

Emacs major mode for JSX, an altJS
72 stars 13 forks source link

An alternate approach, something like web-mode or mmm-mode #10

Closed jaseemabid closed 9 years ago

jaseemabid commented 9 years ago

I could not find your email, so filing an issue here. I guess public discussions will help.

A good jsx mode will need a good js mode (js2) and a good html mode. Re implementing both of them will be a difficult task, and would be a waste of effort.

Have you considered an approach like multi major mode to detect jsx blocks, and highlight them specifically with html mode and rest of the buffer with js2-mode? I guess that will be the best of both worlds. This should be possible, as org-mode, mmm and web-mode do this to varying levels already.

jaseemabid commented 9 years ago

Sorry, I assumed that this is the facebook jsx. Closing the issue as its not relevant.