mxw / vim-jsx

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

Syntax broken for onClick #57

Closed fedemp closed 9 years ago

fedemp commented 9 years ago

For the following code, the closing brace is highlighted in a different way. It also breaks indentation when inside a conditional, as the closing brace is seen as closing the conditional.

<div onClick={this.props.onClick}>

2015-08-07-114618_403x54_scrot

mxw commented 9 years ago

I am unable to repro. Please ensure that your file has JSX syntax enabled (the default requires you to use the .jsx extension) and that you have installed the pangloss/vim-javascript dependency, without conflicts with other JS packages.