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

Syntax highliting for individual queries in multiline strings (abstracted from language-specific strings) #78

Open
barklan opened this issue Jun 23, 2022 · 0 comments
Labels
feat New feature or request

Comments

@barklan
Copy link
Owner

barklan commented Jun 23, 2022

Example:

query = """
    SELECT * FROM book;
    SELECT id FROM user;
"""

Two queries should be highlighted separately (starting token is SELECT , ending is semicolon (;).

The thing I'm worried about here is false positives like this one:

query = """
    THIS IS SOME CAPS TEXT. WHO KNOWS WHY IT'S CAPS, but the next line is highlighted as SQL.
    SELECT COMMITTEE .. SOME GIBBERISH FROM SOMETHING. 
"""
@barklan barklan added the feat New feature or request label Jun 23, 2022
@barklan barklan changed the title Syntax highliting for individual queries (abstracted from language-specific strings) Syntax highliting for individual queries in multiline strings (abstracted from language-specific strings) Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant