mxw / vim-jsx

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

Incorrect highlight in arrow-functions without body #118

Closed axlebedev closed 8 years ago

axlebedev commented 8 years ago

There is an arrow-function without body. Highlight is broken when we don't conclude jsx to parens:

With parens (correct highlight): image

Without parens (incorrect highlight): image

mxw commented 8 years ago

I can't repro, and you didn't read the README.

axlebedev commented 8 years ago

Example vimrc: vimrc.txt

Example source file: testfile.jsx.txt

Got this: image