Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
busticated opened this issue Feb 1, 2018 · 0 comments
Open

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

busticated opened this issue Feb 1, 2018 · 0 comments

Comments

@busticated
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant