aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2013-08-27 13:08:05 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2013-08-27 13:08:05 +0200
commite79da3eff3ee3c8af0953052dfa58b4aee96fd15 (patch)
tree6f0ba281adec6fc03f7522ac2ccae2c1bddd8cd4 /misc
parenteae3e06cbbf8a2fd8e8818c53f964e68e76f3171 (diff)
downloadvim-easytags-e79da3eff3ee3c8af0953052dfa58b4aee96fd15.tar.gz
fix 'multiple repeat' error from regex for c++ filetypes
unescaped ++ is invalid regex causing easytag to fall back to the vimscript highlighting which does not split the regex into small chunks that vim can handle.
Diffstat (limited to 'misc')
-rw-r--r--misc/easytags/highlight.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/easytags/highlight.py b/misc/easytags/highlight.py
index 154854e..446770b 100644
--- a/misc/easytags/highlight.py
+++ b/misc/easytags/highlight.py
@@ -23,7 +23,7 @@ def easytags_gensyncmd(tagsfiles, filetype, tagkinds, syntaxgroup, prefix, suffi
if filters:
tagkinds = filters['kind']
# Shallow parse tags files for matching identifiers.
- pattern = '^([^\t]+)\t[^\t]+\t[^\t]+\t' + tagkinds + '\tlanguage:' + filetype
+ pattern = '^([^\t]+)\t[^\t]+\t[^\t]+\t' + tagkinds + '\tlanguage:' + filetype.replace('+', '\+')
compiled_pattern = re.compile(pattern, re.IGNORECASE)
matches = {}
for fname in tagsfiles: