question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve regex highlighting in Python

See original GitHub issue

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

Dark+ One Dark Pro

Code from screenshots for reproducing:

import re
tag_pattern = re.compile(r"\[(id\d+?)\|.+?\]")

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tomaciazekcommented, Feb 21, 2022

Now there’s good old fountain-blue on escape characters 😃 Thanks!

1reaction
Binaryifycommented, Feb 8, 2022

plz check 3.13.19~

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found