Author: glen Date: Mon Apr 19 15:36:31 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- match specTodo also in shComment
---- Files affected:
packages/vim-syntax-spec:
spec.vim (1.113 -> 1.114)
---- Diffs:
================================================================
Index: packages/vim-syntax-spec/spec.vim
diff -u packages/vim-syntax-spec/spec.vim:1.113
packages/vim-syntax-spec/spec.vim:1.114
--- packages/vim-syntax-spec/spec.vim:1.113 Mon Apr 19 17:30:48 2010
+++ packages/vim-syntax-spec/spec.vim Mon Apr 19 17:36:26 2010
@@ -43,10 +43,12 @@
syn match specSpecialVariables contained '\$[0-9]\|\${[0-9]}'
syn match specCommandOpts contained
'\(\s\|:\)\@<=\(-\w\+\|--\w[a-zA-Z0-9_-]\+\)'
-syn match specComment '^\s*#.*$' contains=specTodo
+syn match specComment '^\s*#.*$' contai...@speccommentgroup
" specTodo: contains common special-notices for comments
+" Use the specCommentGroup cluster to add your own in vimrc
syn keyword specTodo contained FIXME TODO XXX
+syn cluster specCommentGroup contains=specTodo,@Spell
" matches with no highlight
syn match specNoNumberHilite 'X11\|X11R6\|[a-zA-Z]*\.\d\|[a-zA-Z][-/]\d'
@@ -223,7 +225,7 @@
" here's the shell syntax for all the Script Sections
" sh-like comment style, only valid in script part
-syn match shComment contained '#.*$'
+syn match shComment contained '#.*$' contai...@speccommentgroup
syn region shQuote1 contained matchgroup=shQuoteDelim start=+'+ skip=+\\'+
end=+'+ contains=specMacroIdentifier
syn region shQuote2 contained matchgroup=shQuoteDelim start=+"+ skip=+\\"+
end=+"+ contains=specVariables,specMacroIdentifier,specSectionMacroBcondArea
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/vim-syntax-spec/spec.vim?r1=1.113&r2=1.114&f=u
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit