diff options
| author | Georg Brandl <georg@python.org> | 2022-10-27 07:18:16 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2022-10-27 12:15:22 +0200 |
| commit | 629c448bdcbd7ca9f5d530c0ef10fa3bcd7ccbff (patch) | |
| tree | 0d16b78a78b188e1f3ef28746b87ada37bdd804e /scripts/vim2pygments.py | |
| parent | cffc5df62c258ca39fc7474f7197f2df33ab014f (diff) | |
| download | pygments-git-regex.tar.gz | |
all: convert "re" to "regex"regex
Diffstat (limited to 'scripts/vim2pygments.py')
| -rwxr-xr-x | scripts/vim2pygments.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vim2pygments.py b/scripts/vim2pygments.py index ec9b63b7..42d7d52d 100755 --- a/scripts/vim2pygments.py +++ b/scripts/vim2pygments.py @@ -11,10 +11,11 @@ """ import sys -import re from os import path from io import StringIO +import regex as re + split_re = re.compile(r'(?<!\\)\s+') SCRIPT_NAME = 'Vim Colorscheme Converter' |
