blob: b2a77b00668be952f8c15e07b68f2811865102fb [file] [log] [blame]
Bram Moolenaar00154502013-02-13 16:15:55 +01001" Vim syntax file
2" Language: Mallard
3" Maintainer: Jaromir Hradilek <jhradilek@gmail.com>
4" URL: https://github.com/jhradilek/vim-syntax
5" Last Change: 11 February 2013
6" Description: A syntax file for the Mallard markup language according to
7" Mallard 1.0 DRAFT as of 2013-02-11.
8
9if exists("b:current_syntax")
10 finish
11endif
12
13do Syntax xml
14syn cluster xmlTagHook add=mallardTagName
15syn spell toplevel
16syn case match
17
18syn keyword mallardTagName app cite cmd code col colgroup comment contained
19syn keyword mallardTagName credit desc em email example figure contained
20syn keyword mallardTagName file gui guiseq info input item key contained
21syn keyword mallardTagName keyseq license link links list listing contained
22syn keyword mallardTagName media name note output p page quote contained
23syn keyword mallardTagName revision screen section span steps contained
24syn keyword mallardTagName subtitle synopsis sys table tbody td contained
25syn keyword mallardTagName terms tfoot thead title tr tree var contained
26syn keyword mallardTagName years contained
27
28syn region mallardComment start="<comment\>" end="</comment>"me=e-10 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend
29syn region mallardEmphasis start="<em\>" end="</em>"me=e-5 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend
30syn region mallardTitle start="<title\>" end="</title>"me=e-8 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend
31
32hi def link mallardComment Comment
33hi def link mallardTagName Statement
34hi def link mallardTitle Title
35hi def mallardEmphasis term=italic cterm=italic gui=italic
36
37let b:current_syntax = "mallard"