-
Notifications
You must be signed in to change notification settings - Fork 21
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
Syntax Highlighter breaks if multiple blocks have the same color #2
Comments
A hacky way to do it while observing the user defaults would be to ensure that all colors are unique, even if the defaults specify the same color for multiple text types. For example, change the R value by one bit, or brightness, or something not really noticeable. |
Now you have the issue of tracking which bits you add, otherwise we'll end up creating duplicates of the manipulated color. |
Do you have sample text that causes this failure? |
I'm already looking into it and added some infrastructure for fixing this in defe94c. Any text will do, the problem is that some syntax coloring passes look at the color added in previous passes. The issue is that if some passes assign the same color, this code will get confused and will probably produce incorrect results. The passes which do this are mainly the ones that can do multiline coloring. |
Also, I assigned myself to this... :-) |
The syntax highlighter reads in various places on the existing coloring to:
The text was updated successfully, but these errors were encountered: