Skip to content

Commit 330ec57

Browse files
committed
Merge pull request #63: fix 'multiple repeat' error from regex for c++ filetypes
See pull request #63 on GitHub: #63
2 parents eae3e06 + e79da3e commit 330ec57

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

autoload/xolox/easytags.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" Vim script
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: August 19, 2013
3+
" Last Change: August 31, 2013
44
" URL: http://peterodding.com/code/vim/easytags/
55

6-
let g:xolox#easytags#version = '3.4.1'
6+
let g:xolox#easytags#version = '3.4.2'
77

88
" Plug-in initialization. {{{1
99

misc/easytags/highlight.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
generation in Python with a focus on doing the least amount of work.
66
77
Author: Peter Odding <peter@peterodding.com>
8-
Last Change: October 29, 2011
8+
Last Change: August 31, 2013
99
URL: http://peterodding.com/code/vim/easytags
1010
'''
1111

@@ -23,7 +23,7 @@ def easytags_gensyncmd(tagsfiles, filetype, tagkinds, syntaxgroup, prefix, suffi
2323
if filters:
2424
tagkinds = filters['kind']
2525
# Shallow parse tags files for matching identifiers.
26-
pattern = '^([^\t]+)\t[^\t]+\t[^\t]+\t' + tagkinds + '\tlanguage:' + filetype
26+
pattern = '^([^\t]+)\t[^\t]+\t[^\t]+\t' + tagkinds + '\tlanguage:' + re.escape(filetype)
2727
compiled_pattern = re.compile(pattern, re.IGNORECASE)
2828
matches = {}
2929
for fname in tagsfiles:

0 commit comments

Comments
 (0)