aboutsummaryrefslogtreecommitdiffstats
path: root/autoload.vim
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2010-11-20 09:41:56 +0100
committerPeter Odding <peter@peterodding.com>2010-11-20 09:41:56 +0100
commitae3eb31b705401d21f9f643924dc358a12658b61 (patch)
tree5ee230efb28f201319dabe073c5ca78f0f9ec40a /autoload.vim
parent8751e207fcaaba7ab0ceaafb657d29c2d8618a9e (diff)
downloadvim-easytags-ae3eb31b705401d21f9f643924dc358a12658b61.tar.gz
Don't highlight tags inside #include <...>
Diffstat (limited to 'autoload.vim')
-rw-r--r--autoload.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload.vim b/autoload.vim
index 397cada..746e894 100644
--- a/autoload.vim
+++ b/autoload.vim
@@ -1,6 +1,6 @@
" Vim script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: September 6, 2010
+" Last Change: October 23, 2010
" URL: http://peterodding.com/code/vim/easytags/
let s:script = expand('<sfile>:p:~')
@@ -227,7 +227,7 @@ function! easytags#highlight() " {{{2
if matches != []
call map(matches, 'xolox#escape#pattern(get(v:val, "name"))')
let pattern = tagkind.pattern_prefix . '\%(' . join(xolox#unique(matches), '\|') . '\)' . tagkind.pattern_suffix
- let template = 'syntax match %s /%s/ containedin=ALLBUT,.*String.*,.*Comment.*'
+ let template = 'syntax match %s /%s/ containedin=ALLBUT,.*String.*,.*Comment.*,cIncluded'
let command = printf(template, hlgroup_tagged, escape(pattern, '/'))
try
execute command