Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

SQL syntax coloring for string literals in Python #251

Open
lpietrobon opened this issue Apr 12, 2018 · 0 comments
Open

SQL syntax coloring for string literals in Python #251

lpietrobon opened this issue Apr 12, 2018 · 0 comments

Comments

@lpietrobon
Copy link

Prerequisites

Description

I am loving the Python module for syntax coloring, It's working like a charm. The only bit that I am missing from the older MagicPython is syntax coloring of string literals (which come in handy when you have a bunch of regex code).
Attaching here 2 snapshot to illustrate the difference between syntax coloring as a default and on string literals.

screen shot 2018-04-12 at 11 04 44 am
screen shot 2018-04-12 at 11 04 31 am

The older module Magic Python had the ability to recognize syntax in the literals, too, and it would simply use a different palette for the colors.
Would it be possible to have syntax recognition on string literals for the new Python module, too?

Steps to Reproduce

See screenshots attached

Expected behavior:
SQL syntax recognized (and properly colored) in string literals

Actual behavior:
SQL syntax recognized (and properly colored) only in strings, not in string literals

Reproduces how often:
Every time I turn a string into a string literal (eg by pre-pending an r to the """-block

Versions

Atom : 1.25.1
Electron: 1.7.11
Chrome : 58.0.3029.110
Node : 7.9.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant