Skip to content

Prevent invalid SQL detection when keyword is part of something else #2

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Jenselme
Copy link

This could happen for instance when a string contained attachedField: attach was incorrectly detected as the start of some SQL. This resulted in a random word being highlighted and the Python syntax highlighting to be messed up.

This could happen for instance when a string contained attachedField:
attach was incorrectly detected as the start of some SQL. This resulted
in a random word being highlighted and the Python syntax highlighting to
be messed up.
@RadoslawDeska
Copy link

RadoslawDeska commented Oct 30, 2024

This single quote part of regex causes improper highlighting of parentheses when 'somestring' is used inside """ """ code:
WITHOUT the single quote option:
obraz

WITH the single quote option:
obraz

@RadoslawDeska
Copy link

I forked the project to improve on the thing as well as in Python print()

https://github.com/RadoslawDeska/better-python-string-sql-refined/

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