aboutsummaryrefslogtreecommitdiffstats
path: root/misc/easytags
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2014-06-16 21:38:55 +0200
committerPeter Odding <peter@peterodding.com>2014-06-16 21:38:55 +0200
commit110673aeb7b401f942c31154e013c19c684fcc11 (patch)
tree5691558fd76621a9f08f969cc551a1a0a4769801 /misc/easytags
parent9713f0a284921dc9782ae1c24dae03ce0c3f9901 (diff)
parented295020ae557161868208fe443fd7e6089639aa (diff)
downloadvim-easytags-110673aeb7b401f942c31154e013c19c684fcc11.tar.gz
Merge pull request #78: Bug fix for accelerated highlighting using Python
Diffstat (limited to 'misc/easytags')
-rw-r--r--misc/easytags/highlight.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/easytags/highlight.py b/misc/easytags/highlight.py
index 6053726..1c391a3 100644
--- a/misc/easytags/highlight.py
+++ b/misc/easytags/highlight.py
@@ -5,7 +5,7 @@ syntax highlighting by reimplementing tag file reading and :syntax command
generation in Python with a focus on doing the least amount of work.
Author: Peter Odding <peter@peterodding.com>
-Last Change: August 31, 2013
+Last Change: March 8, 2014
URL: http://peterodding.com/code/vim/easytags
'''
@@ -39,7 +39,7 @@ def easytags_gensyncmd(tagsfiles, filetype, tagkinds, syntaxgroup, prefix, suffi
counter, limit = 0, 1024 * 20
to_escape = re.compile(r'[.*^$/\\~\[\]]')
for ident in matches.keys():
- escaped = to_escape.sub(r'\\\0', ident)
+ escaped = to_escape.sub(r'\\\g<0>', ident)
patterns.append(escaped)
counter += len(escaped)
if counter > limit: