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

Comments at end of a line disable highlighting of next keyword #3

Open
DrakeProvost opened this issue Jul 9, 2021 · 1 comment
Open

Comments

@DrakeProvost
Copy link

Hello! Thanks for making this plug-in, I use it at work almost everyday and it's a huge help.

I ran into a minor visual bug, and wanted to report it. Whenever I make comments at the end of a line with text proceeding it, the next keyword is unhighlighted instead of its normal color. If the comment is on a line by itself, the highlighting works as expected.

Regardless of whether the highlighting is altered or not, kivy still accepts the code correctly. Only the highlighting is affected, no syntax errors arise from this (so I don't think this is expected behavior).

Here is a screenshot demonstrating the issue:

2021-07-08-213858_1920x1080_scrot

@DrakeProvost
Copy link
Author

This could be related to the fact that class kivy.lang.Parser(**kwargs) says in strip_comments(lines):

Remove all comments from all lines in-place. Comments need to be on a single line and not at the end of a line. i.e. a comment line’s first non-whitespace character must be a #.

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