Improve regex highlighting in Python
See original GitHub issueDescribe what you want
The regex highlighting in Python in Dark+
is fancier than in One Dark Pro
.
Additional context
As you can see in the screenshots, Dark+
uses 3 colors for regex highlighting, while One Dark Pro
only uses 2.
Code from screenshots for reproducing:
import re
tag_pattern = re.compile(r"\[(id\d+?)\|.+?\]")
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Regular Expression: Simple Syntax Highlighting (Python)
If you're unfamiliar with regular expressions, sometimes a more straight-forward approach will do. First, search for the thing you're searching ...
Read more >How To Highlight Only Certain Part Of Matched Regex In Python
The solution is to use Python's raw string notation for regular expression Causes the resulting RE to match 1 or more repetitions of...
Read more >Tutorial: Python Regex (Regular Expressions) for Data Scientists
In this Python regex tutorial, learn how to use regular expressions and the pandas library to manage large data sets during data analysis....
Read more >Vim syntax pattern to highlight python keyword argument
I believe the regular expressions used for matching the function call and the keyword can be refined, but considering what's valid in Python...
Read more >re — Regular expression operations — Python 3.11.1 ...
The solution is to use Python's raw string notation for regular expression patterns; backslashes are not handled in any special way in a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Now there’s good old fountain-blue on escape characters 😃 Thanks!
plz check 3.13.19~