annotate runtime/syntax/mallard.vim @ 15077:cd6daebf47ae v8.1.0549

patch 8.1.0549: netbeans test depends on README.txt contents commit https://github.com/vim/vim/commit/10efcd5b0259659cd9a152a7a342deb5d56a8eb5 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 26 21:22:07 2018 +0100 patch 8.1.0549: netbeans test depends on README.txt contents Problem: Netbeans test depends on README.txt contents. Solution: Use a generated file instead.
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Nov 2018 21:30:08 +0100
parents 61bcafd8c648
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4119
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 " Language: Mallard
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 " Maintainer: Jaromir Hradilek <jhradilek@gmail.com>
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 " URL: https://github.com/jhradilek/vim-syntax
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 " Last Change: 11 February 2013
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 " Description: A syntax file for the Mallard markup language according to
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 " Mallard 1.0 DRAFT as of 2013-02-11.
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 if exists("b:current_syntax")
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 finish
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 endif
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 do Syntax xml
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 syn cluster xmlTagHook add=mallardTagName
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 syn spell toplevel
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 syn case match
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 syn keyword mallardTagName app cite cmd code col colgroup comment contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 syn keyword mallardTagName credit desc em email example figure contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 syn keyword mallardTagName file gui guiseq info input item key contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 syn keyword mallardTagName keyseq license link links list listing contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 syn keyword mallardTagName media name note output p page quote contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 syn keyword mallardTagName revision screen section span steps contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 syn keyword mallardTagName subtitle synopsis sys table tbody td contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 syn keyword mallardTagName terms tfoot thead title tr tree var contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 syn keyword mallardTagName years contained
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 syn region mallardComment start="<comment\>" end="</comment>"me=e-10 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 syn region mallardEmphasis start="<em\>" end="</em>"me=e-5 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 syn region mallardTitle start="<title\>" end="</title>"me=e-8 contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell keepend
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 hi def link mallardComment Comment
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 hi def link mallardTagName Statement
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 hi def link mallardTitle Title
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 hi def mallardEmphasis term=italic cterm=italic gui=italic
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 let b:current_syntax = "mallard"