From e79da3eff3ee3c8af0953052dfa58b4aee96fd15 Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Tue, 27 Aug 2013 13:08:05 +0200 Subject: 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. --- misc/easytags/highlight.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/easytags') 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: -- cgit v1.2.3