-
Notifications
You must be signed in to change notification settings - Fork 23
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
Every single word in a JSX block is colored in js2-jsx-mode #62
Comments
So, FYI, while working on something else, I took a short stub at it, and the reason you see this turned out to be
As result, every list for every major mode contain Per my understanding, this cannot result in proper colorizing, what you see should in fact happen with every mode. Maybe @ankurdave could tell more about it…? |
To be more specific about how |
@thblt Yeah, and as a workaround, removing the nil should work. |
`scan-identifiers` isn't the best scan-fn (see also ankurdave#94) as it moves not just through changed properties. Let's use the cc-mode one, which goes exclusively through face changes while searching for declared identifiers. Fixes: ankurdave#62
It isn't actually specific to cc-mode, and works in a way similar to the previous default `scan-identifiers`, except that because it only goes through places with properties set, it is: 1. more performant due to less motion 2. less likely to introduce wrong coloring as in ankurdave#40 or ankurdave#62 We also rename the function to remove infix `cc-mode` as it isn't (and never really have been) specific to c-mode. Fixes: ankurdave#94
It isn't actually specific to cc-mode, and works in a way similar to the previous default `scan-identifiers`, except that because it only goes through places with properties set, it is: 1. more performant due to less motion 2. less likely to introduce wrong coloring as in ankurdave#40 or ankurdave#62 We also rename the function to remove infix `cc-mode` as it isn't (and never really have been) specific to c-mode. Fixes: ankurdave#94
It isn't actually specific to cc-mode, and works in a way similar to the previous default `scan-identifiers`, except that because it only goes through places with properties set, it is: 1. more performant due to less motion 2. less likely to introduce wrong coloring as in ankurdave#40 or ankurdave#62 We also rename the function to remove infix `cc-mode` as it isn't (and never really have been) specific to c-mode. Fixes: ankurdave#94
It isn't actually specific to cc-mode, and works in a way similar to the previous default `scan-identifiers`, except that because it only goes through places with properties set, it is: 1. more performant due to less motion 2. less likely to introduce wrong coloring as in #40 or #62 We also rename the function to remove infix `cc-mode` as it isn't (and never really have been) specific to c-mode. Fixes: #94
The title says it all, really. JSX blocks are completely colorized, including regular HTML text.
The same issue appears in
js-jsx-mode
Thanks!
The text was updated successfully, but these errors were encountered: