mxw / vim-jsx

React JSX syntax highlighting and indenting for vim.
1.59k stars 95 forks source link

Wrong es6/es7 decorators indent #70

Open stigmat4j opened 8 years ago

stigmat4j commented 8 years ago

Before Image

After Image

mxw commented 8 years ago

@stigmat4j—Are you sure this isn't an issue with this short lambda syntax? (Is that what the (x) => (y)) thing is?) What happens when you replace @connect(...) with, e.g., {...}?

stigmat4j commented 8 years ago

@mxw, so... my code is working. https://github.com/rackt/react-redux/issues/1

mxw commented 8 years ago

Er, by "issue with the short lambda syntax", I meant, "an issue with vim-jsx re: short lambda syntax".

In other words, are you sure the issue you're seeing with JSX indentation has anything to do with decorators? Are you sure it's not just short lambdas?

mxw commented 8 years ago

@stigmat4j—Sorry for the delay. Today's a "fix bugs in my vim projects" day; could you re-post your code and/or images?