annotate runtime/syntax/texinfo.vim @ 17029:959f0016be06

Added tag v8.1.1514 for changeset 70933f7b5de46580e5e854dc5c51f914fa2fd421
author Bram Moolenaar <Bram@vim.org>
date Mon, 10 Jun 2019 15:00:07 +0200
parents 46763b01cd9a
children 3a63b1e4a6f4
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: Texinfo (macro package for TeX)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Sandor Kopanyi <sandor.kopanyi@mailbox.hu>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: <->
10
4e2284e71352 updated for version 7.0002
vimboss
parents: 7
diff changeset
5 " Last Change: 2004 Jun 23
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " the file follows the Texinfo manual structure; this file is based
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " on manual for Texinfo version 4.0, 28 September 1999
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " since @ can have special meanings, everything is 'match'-ed and 'region'-ed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " (including @ in 'iskeyword' option has unexpected effects)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 10
diff changeset
12 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 10
diff changeset
13 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 if !exists("main_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 let main_syntax = 'texinfo'
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 "in Texinfo can be real big things, like tables; sync for that
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn sync lines=200
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 "some general stuff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 "syn match texinfoError "\S" contained TODO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match texinfoIdent "\k\+" contained "IDENTifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match texinfoAssignment "\k\+\s*=\s*\k\+\s*$" contained "assigment statement ( var = val )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match texinfoSinglePar "\k\+\s*$" contained "single parameter (used for several @-commands)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match texinfoIndexPar "\k\k\s*$" contained "param. used for different *index commands (+ @documentlanguage command)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 "marking words and phrases (chap. 9 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 "(almost) everything appears as 'contained' too; is for tables (@table)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 "this chapter is at the beginning of this file to avoid overwritings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match texinfoSpecialChar "@acronym" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@acronym{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match texinfoSpecialChar "@b" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@b{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match texinfoSpecialChar "@cite" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@cite{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match texinfoSpecialChar "@code" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@code{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match texinfoSpecialChar "@command" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@command{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match texinfoSpecialChar "@dfn" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@dfn{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match texinfoSpecialChar "@email" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@email{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match texinfoSpecialChar "@emph" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@emph{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match texinfoSpecialChar "@env" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@env{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match texinfoSpecialChar "@file" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@file{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match texinfoSpecialChar "@i" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@i{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn match texinfoSpecialChar "@kbd" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@kbd{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match texinfoSpecialChar "@key" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@key{" end="}" contains=texinfoSpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match texinfoSpecialChar "@option" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@option{" end="}" contains=texinfoSpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn match texinfoSpecialChar "@r" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@r{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn match texinfoSpecialChar "@samp" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@samp{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn match texinfoSpecialChar "@sc" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@sc{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn match texinfoSpecialChar "@strong" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@strong{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn match texinfoSpecialChar "@t" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@t{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn match texinfoSpecialChar "@url" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@url{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn match texinfoSpecialChar "@var" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@var{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn match texinfoAtCmd "^@kbdinputstyle" nextgroup=texinfoSinglePar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 "overview of Texinfo (chap. 1 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn match texinfoComment "@c .*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn match texinfoComment "@c$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn match texinfoComment "@comment .*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn region texinfoMltlnAtCmd matchgroup=texinfoComment start="^@ignore\s*$" end="^@end ignore\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 "beginning a Texinfo file (chap. 3 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="@center " skip="\\$" end="$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn region texinfoMltlnDMAtCmd matchgroup=texinfoAtCmd start="^@detailmenu\s*$" end="^@end detailmenu\s*$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@setfilename " skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@settitle " skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@shorttitlepage " skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@title " skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@titlefont{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@titlepage\s*$" end="^@end titlepage\s*$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd,texinfoMltlnDMAtCmd,texinfoAtCmd,texinfoPrmAtCmd,texinfoMltlnAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@vskip " skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn match texinfoAtCmd "^@exampleindent" nextgroup=texinfoSinglePar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn match texinfoAtCmd "^@headings" nextgroup=texinfoSinglePar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn match texinfoAtCmd "^\\input" nextgroup=texinfoSinglePar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn match texinfoAtCmd "^@paragraphindent" nextgroup=texinfoSinglePar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn match texinfoAtCmd "^@setchapternewpage" nextgroup=texinfoSinglePar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 "ending a Texinfo file (chap. 4 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="@author " skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 "all below @bye should be comment TODO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn match texinfoAtCmd "^@bye\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn match texinfoAtCmd "^@contents\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn match texinfoAtCmd "^@printindex" nextgroup=texinfoIndexPar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn match texinfoAtCmd "^@setcontentsaftertitlepage\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn match texinfoAtCmd "^@setshortcontentsaftertitlepage\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn match texinfoAtCmd "^@shortcontents\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn match texinfoAtCmd "^@summarycontents\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 "chapter structuring (chap. 5 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@appendix" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@appendixsec" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@appendixsection" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@appendixsubsec" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@appendixsubsubsec" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@centerchap" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@chapheading" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@chapter" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@heading" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@majorheading" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@section" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@subheading " skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@subsection" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@subsubheading" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@subsubsection" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@subtitle" skip="\\$" end="$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@unnumbered" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@unnumberedsec" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@unnumberedsubsec" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@unnumberedsubsubsec" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn match texinfoAtCmd "^@lowersections\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn match texinfoAtCmd "^@raisesections\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 "nodes (chap. 6 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@anchor{" end="}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@top" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@node" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 "menus (chap. 7 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@menu\s*$" end="^@end menu\s*$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd,texinfoMltlnDMAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 "cross references (chap. 8 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@inforef{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@pxref{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@ref{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@uref{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@xref{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 "marking words and phrases (chap. 9 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 "(almost) everything appears as 'contained' too; is for tables (@table)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 "this chapter is at the beginning of this file to avoid overwritings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 "quotations and examples (chap. 10 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@cartouche\s*$" end="^@end cartouche\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@display\s*$" end="^@end display\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@example\s*$" end="^@end example\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@flushleft\s*$" end="^@end flushleft\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@flushright\s*$" end="^@end flushright\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@format\s*$" end="^@end format\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@lisp\s*$" end="^@end lisp\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@quotation\s*$" end="^@end quotation\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@smalldisplay\s*$" end="^@end smalldisplay\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@smallexample\s*$" end="^@end smallexample\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@smallformat\s*$" end="^@end smallformat\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@smalllisp\s*$" end="^@end smalllisp\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@exdent" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syn match texinfoAtCmd "^@noindent\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn match texinfoAtCmd "^@smallbook\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 "lists and tables (chap. 11 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 syn match texinfoAtCmd "@asis" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 syn match texinfoAtCmd "@columnfractions" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 syn match texinfoAtCmd "@item" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 syn match texinfoAtCmd "@itemx" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 syn match texinfoAtCmd "@tab" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@enumerate" end="^@end enumerate\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ftable" end="^@end ftable\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 syn region texinfoMltlnNAtCmd matchgroup=texinfoAtCmd start="^@itemize" end="^@end itemize\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 syn region texinfoMltlnNAtCmd matchgroup=texinfoAtCmd start="^@multitable" end="^@end multitable\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 syn region texinfoMltlnNAtCmd matchgroup=texinfoAtCmd start="^@table" end="^@end table\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@vtable" end="^@end vtable\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 "indices (chap. 12 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@\(c\|f\|k\|p\|t\|v\)index" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@..index" skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 "@defcodeindex and @defindex is defined after chap. 15's @def* commands (otherwise those ones will overwrite these ones)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 syn match texinfoSIPar "\k\k\s*\k\k\s*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 syn match texinfoAtCmd "^@syncodeindex" nextgroup=texinfoSIPar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 syn match texinfoAtCmd "^@synindex" nextgroup=texinfoSIPar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 "special insertions (chap. 13 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 syn match texinfoSpecialChar "@\(!\|?\|@\|\s\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 syn match texinfoSpecialChar "@{"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 syn match texinfoSpecialChar "@}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 "accents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 syn match texinfoSpecialChar "@=."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 syn match texinfoSpecialChar "@\('\|\"\|\^\|`\)[aeiouyAEIOUY]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 syn match texinfoSpecialChar "@\~[aeinouyAEINOUY]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 syn match texinfoSpecialChar "@dotaccent{.}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 syn match texinfoSpecialChar "@H{.}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 syn match texinfoSpecialChar "@,{[cC]}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 syn match texinfoSpecialChar "@AA{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 syn match texinfoSpecialChar "@aa{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 syn match texinfoSpecialChar "@L{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 syn match texinfoSpecialChar "@l{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 syn match texinfoSpecialChar "@O{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 syn match texinfoSpecialChar "@o{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 syn match texinfoSpecialChar "@ringaccent{.}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 syn match texinfoSpecialChar "@tieaccent{..}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 syn match texinfoSpecialChar "@u{.}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 syn match texinfoSpecialChar "@ubaraccent{.}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 syn match texinfoSpecialChar "@udotaccent{.}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 syn match texinfoSpecialChar "@v{.}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 "ligatures
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 syn match texinfoSpecialChar "@AE{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 syn match texinfoSpecialChar "@ae{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 syn match texinfoSpecialChar "@copyright{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 syn match texinfoSpecialChar "@bullet" contained "for tables and lists
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 syn match texinfoSpecialChar "@bullet{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 syn match texinfoSpecialChar "@dotless{i}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 syn match texinfoSpecialChar "@dotless{j}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 syn match texinfoSpecialChar "@dots{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 syn match texinfoSpecialChar "@enddots{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 syn match texinfoSpecialChar "@equiv" contained "for tables and lists
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 syn match texinfoSpecialChar "@equiv{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 syn match texinfoSpecialChar "@error{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 syn match texinfoSpecialChar "@exclamdown{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 syn match texinfoSpecialChar "@expansion{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 syn match texinfoSpecialChar "@minus" contained "for tables and lists
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 syn match texinfoSpecialChar "@minus{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 syn match texinfoSpecialChar "@OE{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 syn match texinfoSpecialChar "@oe{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 syn match texinfoSpecialChar "@point" contained "for tables and lists
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 syn match texinfoSpecialChar "@point{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 syn match texinfoSpecialChar "@pounds{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 syn match texinfoSpecialChar "@print{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 syn match texinfoSpecialChar "@questiondown{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 syn match texinfoSpecialChar "@result" contained "for tables and lists
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 syn match texinfoSpecialChar "@result{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 syn match texinfoSpecialChar "@ss{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 syn match texinfoSpecialChar "@TeX{}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 "other
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@dmn{" end="}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@footnote{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@image{" end="}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@math{" end="}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 syn match texinfoAtCmd "@footnotestyle" nextgroup=texinfoSinglePar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 "making and preventing breaks (chap. 14 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 syn match texinfoSpecialChar "@\(\*\|-\|\.\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 syn match texinfoAtCmd "^@need" nextgroup=texinfoSinglePar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 syn match texinfoAtCmd "^@page\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 syn match texinfoAtCmd "^@sp" nextgroup=texinfoSinglePar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@group\s*$" end="^@end group\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@hyphenation{" end="}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@w{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 "definition commands (chap. 15 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 syn match texinfoMltlnAtCmdFLine "^@def\k\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@def\k\+" end="^@end def\k\+$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 "next 2 commands are from chap. 12; must be defined after @def* commands above to overwrite them
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 syn match texinfoAtCmd "@defcodeindex" nextgroup=texinfoIndexPar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 syn match texinfoAtCmd "@defindex" nextgroup=texinfoIndexPar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 "conditionally visible text (chap. 16 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 syn match texinfoAtCmd "^@clear" nextgroup=texinfoSinglePar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 syn region texinfoMltln2AtCmd matchgroup=texinfoAtCmd start="^@html\s*$" end="^@end html\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ifclear" end="^@end ifclear\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ifhtml" end="^@end ifhtml\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ifinfo" end="^@end ifinfo\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ifnothtml" end="^@end ifnothtml\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ifnotinfo" end="^@end ifnotinfo\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ifnottex" end="^@end ifnottex\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@ifset" end="^@end ifset\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@iftex" end="^@end iftex\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@set " skip="\\$" end="$" contains=texinfoSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 syn region texinfoTexCmd start="\$\$" end="\$\$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@tex" end="^@end tex\s*$" contains=texinfoTexCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 syn region texinfoBrcPrmAtCmd matchgroup=texinfoAtCmd start="@value{" end="}" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 "internationalization (chap. 17 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 syn match texinfoAtCmd "@documentencoding" nextgroup=texinfoSinglePar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304 syn match texinfoAtCmd "@documentlanguage" nextgroup=texinfoIndexPar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 "defining new texinfo commands (chap. 18 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 syn match texinfoAtCmd "@alias" nextgroup=texinfoAssignment skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 syn match texinfoDIEPar "\S*\s*,\s*\S*\s*,\s*\S*\s*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 syn match texinfoAtCmd "@definfoenclose" nextgroup=texinfoDIEPar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@macro" end="^@end macro\s*$" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 "formatting hardcopy (chap. 19 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 syn match texinfoAtCmd "^@afourlatex\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 syn match texinfoAtCmd "^@afourpaper\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 syn match texinfoAtCmd "^@afourwide\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 syn match texinfoAtCmd "^@finalout\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@pagesizes" end="$" oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 "creating and installing Info Files (chap. 20 in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@dircategory" skip="\\$" end="$" oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324 syn region texinfoMltlnAtCmd matchgroup=texinfoAtCmd start="^@direntry\s*$" end="^@end direntry\s*$" contains=texinfoSpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325 syn match texinfoAtCmd "^@novalidate\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 "include files (appendix E in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329 syn match texinfoAtCmd "^@include" nextgroup=texinfoSinglePar skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332 "page headings (appendix F in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 syn match texinfoHFSpecialChar "@|" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 syn match texinfoThisAtCmd "@thischapter" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 syn match texinfoThisAtCmd "@thischaptername" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336 syn match texinfoThisAtCmd "@thisfile" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 syn match texinfoThisAtCmd "@thispage" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 syn match texinfoThisAtCmd "@thistitle" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339 syn match texinfoThisAtCmd "@today{}" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@evenfooting" skip="\\$" end="$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd,texinfoThisAtCmd,texinfoHFSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@evenheading" skip="\\$" end="$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd,texinfoThisAtCmd,texinfoHFSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@everyfooting" skip="\\$" end="$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd,texinfoThisAtCmd,texinfoHFSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@everyheading" skip="\\$" end="$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd,texinfoThisAtCmd,texinfoHFSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@oddfooting" skip="\\$" end="$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd,texinfoThisAtCmd,texinfoHFSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 syn region texinfoPrmAtCmd matchgroup=texinfoAtCmd start="^@oddheading" skip="\\$" end="$" contains=texinfoSpecialChar,texinfoBrcPrmAtCmd,texinfoThisAtCmd,texinfoHFSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 "refilling paragraphs (appendix H in Texinfo manual)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 syn match texinfoAtCmd "@refill"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351
10
4e2284e71352 updated for version 7.0002
vimboss
parents: 7
diff changeset
352 syn cluster texinfoAll contains=ALLBUT,texinfoThisAtCmd,texinfoHFSpecialChar
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353 syn cluster texinfoReducedAll contains=texinfoSpecialChar,texinfoBrcPrmAtCmd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 "==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355 " highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 10
diff changeset
357 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
359 hi def link texinfoSpecialChar Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
360 hi def link texinfoHFSpecialChar Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
362 hi def link texinfoError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
363 hi def link texinfoIdent Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
364 hi def link texinfoAssignment Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
365 hi def link texinfoSinglePar Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
366 hi def link texinfoIndexPar Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
367 hi def link texinfoSIPar Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
368 hi def link texinfoDIEPar Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
369 hi def link texinfoTexCmd PreProc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
372 hi def link texinfoAtCmd Statement "@-command
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
373 hi def link texinfoPrmAtCmd String "@-command in one line with unknown nr. of parameters
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 10
diff changeset
374 "is String because is found as a region and is 'matchgroup'-ed
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 10
diff changeset
375 "to texinfoAtCmd
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
376 hi def link texinfoBrcPrmAtCmd String "@-command with parameter(s) in braces ({})
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 10
diff changeset
377 "is String because is found as a region and is 'matchgroup'-ed to texinfoAtCmd
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
378 hi def link texinfoMltlnAtCmdFLine texinfoAtCmd "repeated embedded First lines in @-commands
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
379 hi def link texinfoMltlnAtCmd String "@-command in multiple lines
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 10
diff changeset
380 "is String because is found as a region and is 'matchgroup'-ed to texinfoAtCmd
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
381 hi def link texinfoMltln2AtCmd PreProc "@-command in multiple lines (same as texinfoMltlnAtCmd, just with other colors)
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
382 hi def link texinfoMltlnDMAtCmd PreProc "@-command in multiple lines (same as texinfoMltlnAtCmd, just with other colors; used for @detailmenu, which can be included in @menu)
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
383 hi def link texinfoMltlnNAtCmd Normal "@-command in multiple lines (same as texinfoMltlnAtCmd, just with other colors)
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
384 hi def link texinfoThisAtCmd Statement "@-command used in headers and footers (@this... series)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
386 hi def link texinfoComment Comment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
390 let b:current_syntax = "texinfo"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392 if main_syntax == 'texinfo'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393 unlet main_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 " vim: ts=8