annotate runtime/syntax/texinfo.vim @ 5680:4d12112c5efa v7.4.186

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