Skip to content

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

Open
@barklan

Description

@barklan

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. 
"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions