-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxsltxt.vim
34 lines (30 loc) · 1.14 KB
/
xsltxt.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
" Vim syntax file
" Language: XSLTXT
" Maintainer: Mark Watts
" Latest Revision: 16 Dec 2014
if exists("b:current_syntax")
finish
else
syntax clear
endif
setlocal iskeyword+=-
syn include @xmlSyn $VIMRUNTIME/syntax/xml.vim
" Keywords
syn keyword xslElementKeyword param tpl for-each val when otherwise var if apply call attribute tx-no-esc choose import number tx msg copy-of copy
syn keyword xslHeaderKeyword namespace output stylesheet
"" Matches
"syn match syntaxElementMatch 'regexp' contains=syntaxElement1 nextgroup=syntaxElement2 skipwhite
syn match xmlElement '<[^>]\+>' contains=@xmlSyn
syn match xslComment '#.*' contains=xmlTodo
syn match xslAttribute '\.[^ ]*' contains=xmlAttrib
syn region xslString start=+"+ end=+"+
syn keyword xmlTodo contained TODO FIXME XXX
"" Regions
"syn region syntaxElementRegion start='x' end='y'
hi def link xslElementKeyword Statement
hi def link xslHeaderKeyword PreProc
hi def link xmlElement Constant
hi def link xslComment Comment
hi def link xmlTodo TODO
hi def link xslString String
hi def link xslAttribute Statement