aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2011-10-29 17:32:33 +0200
committerPeter Odding <peter@peterodding.com>2011-10-29 17:32:33 +0200
commite3290ab006edf7c262a0bd117577043ce33435c6 (patch)
treea67768ae63c5b8005ca4d290e00ce3a7c26c208d /plugin
parent3d7e09100e74d84a94996447e79594d3911a4c9a (diff)
downloadvim-easytags-e3290ab006edf7c262a0bd117577043ce33435c6.tar.gz
Make list of ignored syntax groups configurable
While trying to fix issue #20 I decided to refactor the code that handles ignored syntax groups: Previously the list of excluded groups was hard coded in two places, now it's a configuration option. Then it turned out that including shFunction* in the list of excluded syntax groups didn't fix the reported issue...
Diffstat (limited to 'plugin')
-rw-r--r--plugin/easytags.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin/easytags.vim b/plugin/easytags.vim
index d3624a5..344413e 100644
--- a/plugin/easytags.vim
+++ b/plugin/easytags.vim
@@ -1,6 +1,6 @@
" Vim plug-in
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: September 26, 2011
+" Last Change: October 29, 2011
" URL: http://peterodding.com/code/vim/easytags/
" Requires: Exuberant Ctags (http://ctags.sf.net)
@@ -40,6 +40,10 @@ if !exists('g:easytags_ignored_filetypes')
let g:easytags_ignored_filetypes = '^tex$'
endif
+if !exists('g:easytags_ignored_syntax_groups')
+ let g:easytags_ignored_syntax_groups = '.*String.*,.*Comment.*,cIncluded'
+endif
+
if !exists('g:easytags_python_script')
let g:easytags_python_script = expand('<sfile>:p:h') . '/../misc/easytags/highlight.py'
endif