comparison runtime/syntax/mallard.vim @ 4119:61bcafd8c648

Update runtime files. Add missing test files.
author Bram Moolenaar <bram@vim.org>
date Wed, 13 Feb 2013 16:15:55 +0100
parents
children
comparison
equal deleted inserted replaced
4118:aa4f79097dd3 4119:61bcafd8c648
1 " 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
9 if exists("b:current_syntax")
10 finish
11 endif
12
13 do Syntax xml
14 syn cluster xmlTagHook add=mallardTagName
15 syn spell toplevel
16 syn case match
17
18 syn keyword mallardTagName app cite cmd code col colgroup comment contained
19 syn keyword mallardTagName credit desc em email example figure contained
20 syn keyword mallardTagName file gui guiseq info input item key contained
21 syn keyword mallardTagName keyseq license link links list listing contained
22 syn keyword mallardTagName media name note output p page quote contained
23 syn keyword mallardTagName revision screen section span steps contained
24 syn keyword mallardTagName subtitle synopsis sys table tbody td contained
25 syn keyword mallardTagName terms tfoot thead title tr tree var contained
26 syn keyword mallardTagName years contained
27
28 syn region mallardComment start="<comment\>" end="</comment>"me=e-10 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend
29 syn region mallardEmphasis start="<em\>" end="</em>"me=e-5 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend
30 syn region mallardTitle start="<title\>" end="</title>"me=e-8 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend
31
32 hi def link mallardComment Comment
33 hi def link mallardTagName Statement
34 hi def link mallardTitle Title
35 hi def mallardEmphasis term=italic cterm=italic gui=italic
36
37 let b:current_syntax = "mallard"