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

Fix JSX highlight in parens after a keyword. #148 #149

Closed
wants to merge 2 commits into from

Conversation

sompylasar
Copy link

The match proposed in c267e8e somehow prevents the lines inside a pair of following parentheses from being parsed as JSX; the parser falls back to plain JS where angle brackets are highlighted as operators. This causes #148

The match in this fix embraces the whole expression and instructs to parse its contents with nested patterns which include JSX.

The match proposed in orktes@c267e8e somehow prevents the lines inside a pair of following parentheses from being parsed as JSX; the parser falls back to plain JS where angle brackets are highlighted as operators. This causes orktes#148

The match in this fix embraces the whole expression and instructs to parse its contents with nested patterns which include JSX.
Fix tests to pass on types of numeric constants.
@orktes
Copy link
Owner

orktes commented Mar 20, 2016

Hi! I made a more generic fix to the latest version to resolve the issue. Closing this one. Thanks for the effort.

@orktes orktes closed this Mar 20, 2016
@sompylasar
Copy link
Author

The more generic fix is in this commit, in case someone is interested, like me.

@orktes thanks!

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

Successfully merging this pull request may close these issues.

2 participants