mxw / vim-jsx

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

leading underscore disables syntax highlighting for the line... #157

Open busticated opened 6 years ago

busticated commented 6 years ago

hi there -

thanks for the helpful lib! i ran into a minor thing - not sure if it's a bug or intentional behavior. what i'm seeing is that syntax highlighting is disabled when the jsx tagname starts w/ an underscore _ for example:

<_foo onClick={this.handleClick} /> // <== no hightlighting

<foo onClick={this.handleClick} /> // <== hightlighting works!

is that expected? if so, would you be interested in supporting an option to disable it (so leading underscores do not impact highlighting)?