-
Notifications
You must be signed in to change notification settings - Fork 44
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
Lots of random "red dots" showing up in the gutter. #93
Comments
It happens because the "red" word inside "featured". Red is a color. |
I don't think that's true, the regex shouldn't be picking that up? |
Yeah I don't think it's true either. That logic doesn't explain why they are showing up on brackets, white, white space, and comment lines, etc. |
Look at this: |
My bad. I didn't see the red dot in empty lines. |
That'll be the web colors highlighting. https://github.com/ggordan/GutterColor/blob/master/line.py#L207 |
Probably a colon is missing here but cannot figure where! |
Hah, and to answer my own comment, it seem to pick up the "tan" colour from "important" 😄 |
Ok, this seems to work for me (from line.py, lines 204-214):
Note that because the regular expression is changed to match blank characters at the start and end of the named colour, you have to change line 214 as well to read |
In retrospect the regex can be improved a little bit more like this:
But by now you get the point 😄 |
Fixes issue #93 [Lots of random "red dots" showing up in the gutter]
@digeomel it doesn't work without semicolon. In *.sass for example |
Its been a minute, and its kind of hacky, but in case this helps anyone else: If you try to stay away from using color names (and mainly use HEX or RGBA, etc.), just remove the list of web safe colors 👍 |
Noticed recently that there are a lot of red color circles showing up in my gutter where there is no red color defined in the adjacent line of code. Even happens on blank lines for that matter.
Any ideas?
The text was updated successfully, but these errors were encountered: