Permalink
Browse files

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.
  • Loading branch information...
1 parent eae3e06 commit e79da3eff3ee3c8af0953052dfa58b4aee96fd15 @juliantaylor juliantaylor committed Aug 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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:

0 comments on commit e79da3e

Please sign in to comment.