jsx / jsx-mode.el

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

Indentation not work for JSX code #8

Open tmtxt opened 10 years ago

tmtxt commented 10 years ago

indentation for javascript code works well but for jsx code, all lines are at the same indentation level screen shot 2014-06-05 at 8 38 23 pm

swoopserver commented 8 years ago

Yes, this doesn't seem to indent jsx at all. I see it's already been raised as an issue.

victorquinn commented 8 years ago

FYI for anyone else who comes across this issue, this is because this jsx-mode.el project is not made to edit Facebook's React JSX templates but rather this other compiled javascript language also called JSX. That having the same name as the React templates is entirely coincidental.

This is why the first commits to this repo were 4 years (pre-dating Facebook's JSX and React by years) and the last commit in this repo was back in 2013 (also pre-dating React).