annotate runtime/syntax/docbk.vim @ 5586:505cf1943dc2 v7.4.140

updated for version 7.4.140 Problem: Crash when wiping out buffer triggers autocommand that wipes out only other buffer. Solution: Do not delete the last buffer, make it empty. (Hirohito Higashi)
author Bram Moolenaar <bram@vim.org>
date Fri, 10 Jan 2014 16:43:14 +0100
parents fdb8a9c7bd91
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: DocBook
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Devin Weaver <vim@tritarget.com>
3967
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
4 " Last Updated By: Shlomi Fish
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " URL: http://tritarget.com/pub/vim/syntax/docbk.vim
3967
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
6 " Last Change: 2012 Nov 28
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
7 " Version: 1.2 (and modified after that)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Thanks to Johannes Zellner <johannes@zellner.org> for the default to XML
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " suggestion.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " REFERENCES:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " http://docbook.org/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " http://www.open-oasis.org/docbook/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " Auto detect added by Bram Moolenaar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 if !exists('b:docbk_type')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 if expand('%:e') == "sgml"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 let b:docbk_type = 'sgml'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 let b:docbk_type = 'xml'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 endif
3967
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
32
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
33 if !exists('b:docbk_ver')
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
34 if exists('docbk_ver')
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
35 let b:docbk_ver = docbk_ver
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
36 else
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
37 let b:docbk_ver = 4
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
38 endif
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
39 end
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
40
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 if 'xml' == b:docbk_type
352
e5f0dd64a9c6 updated for version 7.0091
vimboss
parents: 7
diff changeset
42 doau Syntax xml
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn cluster xmlTagHook add=docbkKeyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn cluster xmlRegionHook add=docbkRegion,docbkTitle,docbkRemark,docbkCite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 elseif 'sgml' == b:docbk_type
352
e5f0dd64a9c6 updated for version 7.0091
vimboss
parents: 7
diff changeset
47 doau Syntax sgml
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn cluster sgmlTagHook add=docbkKeyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn cluster sgmlRegionHook add=docbkRegion,docbkTitle,docbkRemark,docbkCite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3967
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
53 syn keyword docbkKeyword abbrev abstract accel acronym address contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
54 syn keyword docbkKeyword affiliation alt anchor answer appendix contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
55 syn keyword docbkKeyword application area areaset areaspec arg contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
56 syn keyword docbkKeyword article artpagenums attribution audiodata contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
57 syn keyword docbkKeyword audioobject author authorgroup contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
58 syn keyword docbkKeyword authorinitials bibliocoverage bibliodiv contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
59 syn keyword docbkKeyword biblioentry bibliography biblioid contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
60 syn keyword docbkKeyword bibliolist bibliomisc bibliomixed contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
61 syn keyword docbkKeyword bibliomset biblioref bibliorelation contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
62 syn keyword docbkKeyword biblioset bibliosource blockquote book contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
63 syn keyword docbkKeyword bridgehead callout calloutlist caption contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
64 syn keyword docbkKeyword caution chapter citation citebiblioid contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
65 syn keyword docbkKeyword citerefentry citetitle city classname contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
66 syn keyword docbkKeyword classsynopsis classsynopsisinfo cmdsynopsis contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
67 syn keyword docbkKeyword co code col colgroup collab colophon contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
68 syn keyword docbkKeyword colspec command computeroutput confdates contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
69 syn keyword docbkKeyword confgroup confnum confsponsor conftitle contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
70 syn keyword docbkKeyword constant constructorsynopsis contractnum contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
71 syn keyword docbkKeyword contractsponsor contrib copyright coref contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
72 syn keyword docbkKeyword country database date dedication contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
73 syn keyword docbkKeyword destructorsynopsis edition editor email contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
74 syn keyword docbkKeyword emphasis entry entrytbl envar epigraph contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
75 syn keyword docbkKeyword equation errorcode errorname errortext contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
76 syn keyword docbkKeyword errortype example exceptionname fax contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
77 syn keyword docbkKeyword fieldsynopsis figure filename firstname contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
78 syn keyword docbkKeyword firstterm footnote footnoteref contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword docbkKeyword foreignphrase formalpara funcdef funcparams contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword docbkKeyword funcprototype funcsynopsis funcsynopsisinfo contained
3967
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
81 syn keyword docbkKeyword function glossary glossdef glossdiv contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
82 syn keyword docbkKeyword glossentry glosslist glosssee glossseealso contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
83 syn keyword docbkKeyword glossterm group guibutton guiicon guilabel contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword docbkKeyword guimenu guimenuitem guisubmenu hardware contained
3967
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
85 syn keyword docbkKeyword holder honorific imagedata imageobject contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
86 syn keyword docbkKeyword imageobjectco important index indexdiv contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
87 syn keyword docbkKeyword indexentry indexterm informalequation contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
88 syn keyword docbkKeyword informalexample informalfigure contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
89 syn keyword docbkKeyword informaltable initializer inlineequation contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
90 syn keyword docbkKeyword inlinemediaobject interfacename issuenum contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
91 syn keyword docbkKeyword itemizedlist itermset jobtitle keycap contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
92 syn keyword docbkKeyword keycode keycombo keysym keyword keywordset contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
93 syn keyword docbkKeyword label legalnotice lineage lineannotation contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
94 syn keyword docbkKeyword link listitem literal literallayout contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
95 syn keyword docbkKeyword manvolnum markup mathphrase mediaobject contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
96 syn keyword docbkKeyword member menuchoice methodname methodparam contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
97 syn keyword docbkKeyword methodsynopsis modifier mousebutton msg contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
98 syn keyword docbkKeyword msgaud msgentry msgexplan msginfo msglevel contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
99 syn keyword docbkKeyword msgmain msgorig msgrel msgset msgsub contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
100 syn keyword docbkKeyword msgtext note olink ooclass ooexception contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
101 syn keyword docbkKeyword oointerface option optional orderedlist contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
102 syn keyword docbkKeyword orgdiv orgname otheraddr othercredit contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
103 syn keyword docbkKeyword othername package pagenums para paramdef contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
104 syn keyword docbkKeyword parameter part partintro personblurb contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
105 syn keyword docbkKeyword personname phone phrase pob postcode contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
106 syn keyword docbkKeyword preface primary primaryie printhistory contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
107 syn keyword docbkKeyword procedure productname productnumber contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
108 syn keyword docbkKeyword programlisting programlistingco prompt contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
109 syn keyword docbkKeyword property pubdate publisher publishername contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
110 syn keyword docbkKeyword qandadiv qandaentry qandaset question quote contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
111 syn keyword docbkKeyword refclass refdescriptor refentry contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn keyword docbkKeyword refentrytitle reference refmeta refmiscinfo contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn keyword docbkKeyword refname refnamediv refpurpose refsect1 contained
3967
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
114 syn keyword docbkKeyword refsect2 refsect3 refsection refsynopsisdiv contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
115 syn keyword docbkKeyword releaseinfo remark replaceable returnvalue contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
116 syn keyword docbkKeyword revdescription revhistory revision contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
117 syn keyword docbkKeyword revnumber revremark row sbr screen screenco contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
118 syn keyword docbkKeyword screenshot secondary secondaryie sect1 contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
119 syn keyword docbkKeyword sect2 sect3 sect4 sect5 section see seealso contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
120 syn keyword docbkKeyword seealsoie seeie seg seglistitem contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
121 syn keyword docbkKeyword segmentedlist segtitle seriesvolnums set contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
122 syn keyword docbkKeyword setindex shortaffil shortcut sidebar contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
123 syn keyword docbkKeyword simpara simplelist simplemsgentry contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
124 syn keyword docbkKeyword simplesect spanspec state step contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
125 syn keyword docbkKeyword stepalternatives street subject subjectset contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
126 syn keyword docbkKeyword subjectterm subscript substeps subtitle contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
127 syn keyword docbkKeyword superscript surname symbol synopfragment contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
128 syn keyword docbkKeyword synopfragmentref synopsis systemitem table contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
129 syn keyword docbkKeyword task taskprerequisites taskrelated contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
130 syn keyword docbkKeyword tasksummary tbody td term termdef tertiary contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
131 syn keyword docbkKeyword tertiaryie textdata textobject tfoot tgroup contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
132 syn keyword docbkKeyword th thead tip title titleabbrev toc tocentry contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
133 syn keyword docbkKeyword token tr trademark type uri userinput contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn keyword docbkKeyword varargs variablelist varlistentry varname contained
3967
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
135 syn keyword docbkKeyword videodata videoobject void volumenum contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
136 syn keyword docbkKeyword warning wordasword xref year contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
137
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
138 if b:docbk_ver == 4
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
139 syn keyword docbkKeyword ackno action appendixinfo articleinfo contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
140 syn keyword docbkKeyword authorblurb beginpage bibliographyinfo contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
141 syn keyword docbkKeyword blockinfo bookinfo chapterinfo contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
142 syn keyword docbkKeyword collabname corpauthor corpcredit contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
143 syn keyword docbkKeyword corpname glossaryinfo graphic graphicco contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
144 syn keyword docbkKeyword highlights indexinfo inlinegraphic contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
145 syn keyword docbkKeyword interface invpartnumber isbn issn lot contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
146 syn keyword docbkKeyword lotentry medialabel mediaobjectco contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
147 syn keyword docbkKeyword modespec objectinfo partinfo contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
148 syn keyword docbkKeyword prefaceinfo pubsnumber refentryinfo contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
149 syn keyword docbkKeyword referenceinfo refsect1info refsect2info contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
150 syn keyword docbkKeyword refsect3info refsectioninfo contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
151 syn keyword docbkKeyword refsynopsisdivinfo screeninfo sect1info contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
152 syn keyword docbkKeyword sect2info sect3info sect4info sect5info contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
153 syn keyword docbkKeyword sectioninfo setindexinfo setinfo contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
154 syn keyword docbkKeyword sgmltag sidebarinfo structfield contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
155 syn keyword docbkKeyword structname tocback tocchap tocfront contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
156 syn keyword docbkKeyword toclevel1 toclevel2 toclevel3 toclevel4 contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
157 syn keyword docbkKeyword toclevel5 tocpart ulink contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
158
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
159 else
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
160 syn keyword docbkKeyword acknowledgements annotation arc contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
161 syn keyword docbkKeyword constraint constraintdef cover contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
162 syn keyword docbkKeyword extendedlink givenname info lhs locator contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
163 syn keyword docbkKeyword multimediaparam nonterminal org person contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
164 syn keyword docbkKeyword production productionrecap contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
165 syn keyword docbkKeyword productionset rhs tag tocdiv topic contained
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
166
fdb8a9c7bd91 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
167 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 " Add special emphasis on some regions. Thanks to Rory Hunter <roryh@dcs.ed.ac.uk> for these ideas.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 syn region docbkRegion start="<emphasis>"lc=10 end="</emphasis>"me=e-11 contains=xmlRegion,xmlEntity,sgmlRegion,sgmlEntity keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 syn region docbkTitle start="<title>"lc=7 end="</title>"me=e-8 contains=xmlRegion,xmlEntity,sgmlRegion,sgmlEntity keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 syn region docbkRemark start="<remark>"lc=8 end="</remark>"me=e-9 contains=xmlRegion,xmlEntity,sgmlRegion,sgmlEntity keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 syn region docbkRemark start="<comment>"lc=9 end="</comment>"me=e-10 contains=xmlRegion,xmlEntity,sgmlRegion,sgmlEntity keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 syn region docbkCite start="<citation>"lc=10 end="</citation>"me=e-11 contains=xmlRegion,xmlEntity,sgmlRegion,sgmlEntity keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 if version >= 508 || !exists("did_docbk_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 let did_docbk_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 hi DocbkBold term=bold cterm=bold gui=bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 hi def DocbkBold term=bold cterm=bold gui=bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 HiLink docbkKeyword Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 HiLink docbkRegion DocbkBold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 HiLink docbkTitle Title
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 HiLink docbkRemark Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 HiLink docbkCite Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 let b:current_syntax = "docbk"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 " vim: ts=8