vim-jsx icon indicating copy to clipboard operation
vim-jsx copied to clipboard

leading underscore disables syntax highlighting for the line...

Open busticated opened this issue 8 years ago • 0 comments

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)?

busticated avatar Feb 01 '18 22:02 busticated