annotate runtime/syntax/docbk.vim @ 18900:a9c47c623f4a v8.2.0011

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