diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-02-13 16:15:55 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-02-13 16:15:55 +0100 |
commit | 00154508de442a1ffa19ab217484f4a50e7536f0 (patch) | |
tree | 0eec4c1be834150eefade1b7104b6e6984fe6742 /runtime/syntax | |
parent | 8fe8d9ed064d1a7c41fc43a565513dc41fd3aaed (diff) | |
download | vim-00154508de442a1ffa19ab217484f4a50e7536f0.zip |
Update runtime files.
Add missing test files.
Diffstat (limited to 'runtime/syntax')
-rw-r--r-- | runtime/syntax/mallard.vim | 37 | ||||
-rw-r--r-- | runtime/syntax/pine.vim | 4 |
2 files changed, 39 insertions, 2 deletions
diff --git a/runtime/syntax/mallard.vim b/runtime/syntax/mallard.vim new file mode 100644 index 000000000..b2a77b006 --- /dev/null +++ b/runtime/syntax/mallard.vim @@ -0,0 +1,37 @@ +" Vim syntax file +" Language: Mallard +" Maintainer: Jaromir Hradilek <jhradilek@gmail.com> +" URL: https://github.com/jhradilek/vim-syntax +" Last Change: 11 February 2013 +" Description: A syntax file for the Mallard markup language according to +" Mallard 1.0 DRAFT as of 2013-02-11. + +if exists("b:current_syntax") + finish +endif + +do Syntax xml +syn cluster xmlTagHook add=mallardTagName +syn spell toplevel +syn case match + +syn keyword mallardTagName app cite cmd code col colgroup comment contained +syn keyword mallardTagName credit desc em email example figure contained +syn keyword mallardTagName file gui guiseq info input item key contained +syn keyword mallardTagName keyseq license link links list listing contained +syn keyword mallardTagName media name note output p page quote contained +syn keyword mallardTagName revision screen section span steps contained +syn keyword mallardTagName subtitle synopsis sys table tbody td contained +syn keyword mallardTagName terms tfoot thead title tr tree var contained +syn keyword mallardTagName years contained + +syn region mallardComment start="<comment\>" end="</comment>"me=e-10 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend +syn region mallardEmphasis start="<em\>" end="</em>"me=e-5 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend +syn region mallardTitle start="<title\>" end="</title>"me=e-8 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend + +hi def link mallardComment Comment +hi def link mallardTagName Statement +hi def link mallardTitle Title +hi def mallardEmphasis term=italic cterm=italic gui=italic + +let b:current_syntax = "mallard" diff --git a/runtime/syntax/pine.vim b/runtime/syntax/pine.vim index 749535e1a..4c64b9bbc 100644 --- a/runtime/syntax/pine.vim +++ b/runtime/syntax/pine.vim @@ -12,9 +12,9 @@ elseif exists("b:current_syntax") endif if version >= 600 - setlocal iskeyword=@,48-57,_,128-167,224-235,-, + setlocal iskeyword=@,48-57,_,128-167,224-235,- else - set iskeyword=@,48-57,_,128-167,224-235,-, + set iskeyword=@,48-57,_,128-167,224-235,- endif syn keyword pineConfig addrbook-sort-rule |