codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: Mallard3" Maintainer: Jaromir Hradilek <jhradilek@gmail.com>4" URL: https://github.com/jhradilek/vim-syntax5" Last Change: 11 February 20136" Description: A syntax file for the Mallard markup language according to7" Mallard 1.0 DRAFT as of 2013-02-11.8 9if exists("b:current_syntax")10 finish11endif12 13do Syntax xml14syn cluster xmlTagHook add=mallardTagName15syn spell toplevel16syn case match17 18syn keyword mallardTagName app cite cmd code col colgroup comment contained19syn keyword mallardTagName credit desc em email example figure contained20syn keyword mallardTagName file gui guiseq info input item key contained21syn keyword mallardTagName keyseq license link links list listing contained22syn keyword mallardTagName media name note output p page quote contained23syn keyword mallardTagName revision screen section span steps contained24syn keyword mallardTagName subtitle synopsis sys table tbody td contained25syn keyword mallardTagName terms tfoot thead title tr tree var contained26syn keyword mallardTagName years contained27 28syn region mallardComment start="<comment\>" end="</comment>"me=e-10 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend29syn region mallardEmphasis start="<em\>" end="</em>"me=e-5 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend30syn region mallardTitle start="<title\>" end="</title>"me=e-8 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend31 32hi def link mallardComment Comment33hi def link mallardTagName Statement34hi def link mallardTitle Title35hi def mallardEmphasis term=italic cterm=italic gui=italic36 37let b:current_syntax = "mallard"38 