diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-08-27 13:08:05 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-08-27 13:08:05 +0200 |
commit | e79da3eff3ee3c8af0953052dfa58b4aee96fd15 (patch) | |
tree | 6f0ba281adec6fc03f7522ac2ccae2c1bddd8cd4 /misc/easytags | |
parent | eae3e06cbbf8a2fd8e8818c53f964e68e76f3171 (diff) | |
download | vim-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/easytags')
-rw-r--r-- | misc/easytags/highlight.py | 2 |
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: |