Permalink
Browse files

Merge pull request #63: fix 'multiple repeat' error from regex for c+…

…+ filetypes

See pull request #63 on GitHub:
  #63
  • Loading branch information...
2 parents eae3e06 + e79da3e commit 330ec57f84b46268ef5b5ddb21ec2d9a660750d2 @xolox committed Aug 31, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 autoload/xolox/easytags.vim
  2. +2 −2 misc/easytags/highlight.py
@@ -1,9 +1,9 @@
" Vim script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: August 19, 2013
+" Last Change: August 31, 2013
" URL: http://peterodding.com/code/vim/easytags/
-let g:xolox#easytags#version = '3.4.1'
+let g:xolox#easytags#version = '3.4.2'
" Plug-in initialization. {{{1
@@ -5,7 +5,7 @@
generation in Python with a focus on doing the least amount of work.
Author: Peter Odding <peter@peterodding.com>
-Last Change: October 29, 2011
+Last Change: August 31, 2013
URL: http://peterodding.com/code/vim/easytags
'''
@@ -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:' + re.escape(filetype)
compiled_pattern = re.compile(pattern, re.IGNORECASE)
matches = {}
for fname in tagsfiles:

0 comments on commit 330ec57

Please sign in to comment.