robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
e59684318e
master
1" Vim syntax file 2" Language: XSLT 3" Maintainer: Christian Brabandt <cb@256bit.org> 4" Repository: https://github.com/chrisbra/vim-xml-ftplugin 5" Previous Maintainer: Johannes Zellner <johannes@zellner.org>, 6" Bogdan Barbu <l4b.bogdan.barbu@gmail.com> 7" Last Change: 21 Jun 2026 8" Filenames: *.xsl 9 10" REFERENCES: 11" [1] http://www.w3.org/TR/xslt 12" [2] http://www.w3.org/TR/xslt20 13 14" Quit when a syntax file was already loaded 15if exists ( "b:current_syntax" ) 16finish 17endif 18 19runtime ! syntax/xml.vim 20 21syn cluster xmlTagHook add = xslElement 22syn case match 23 24for s: element in [ 25 \'analyze-string' , 'apply-imports' , 'apply-templates' , 'attribute' , 26 \'attribute-set' , 'call-template' , 'character-map' , 'choose' , 'comment' , 27 \'copy' , 'copy-of' , 'decimal-format' , 'document' , 'element' , 'fallback' , 28 \'for-each' , 'for-each-group' , 'function' , 'if' , 'include' , 'import' , 29 \'import-schema' , 'key' , 'message' , 'namespace' , 'namespace-alias' , 30 \'number' , 'otherwise' , 'output' , 'param' , 'perform-sort' , 31 \'processing-instruction' , 'preserve-space' , 'script' , 'sequence' , 'sort' , 32 \'strip-space' , 'stylesheet' , 'template' , 'transform' , 'text' , 'value-of' , 33 \'variable' , 'when' , 'with-param' , 34 \] 35execute 'syn match xslElement contained /\%#=1\%([</]xsl:\)\@5<=' . s: element . '[^ /!?<>"'']\@!/' 36endfor 37unlet s: element 38 39hi def link xslElement Statement 40 41let b: current_syntax = 'xslt' 42 43" vim: ts=8