annotate runtime/syntax/smcl.vim @ 33872:2c5ae1ce5af2 v9.0.2146

patch 9.0.2146: text-property without type errors when joining Commit: https://github.com/vim/vim/commit/0d0b3b19517c321b089d637919e88e49a07a3d85 Author: Christian Brabandt <cb@256bit.org> Date: Sun Dec 3 17:56:43 2023 +0100 patch 9.0.2146: text-property without type errors when joining Problem: text-property without type errors when joining Solution: count all text-properties, with or without type before joining lines Error when joining lines with text properties without a proper type When joining lines, we need to consider all text properties that are attached to a line, even when those text properties are invalid and do not have a type attached to them. However, since patch v9.0.0993 (commit: 89469d157aea01513bde826b4519dd6b5fbceae4) those text properties won't be counted when joining lines and therefore this will cause the adjustment for text properties on joining to go wrong (and may later cause SIGABRT with an invalid free pointer) I am not sure, why the condition to not count text properties with a valid type was added in patch v9.0.993, because no test fails if those condition is removed. So let's just remove this condition and add a test that verifies, that we are able to join lines, even when the text properties attached to it do not have a valid type. fixes: #13609 closes: #13614 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Dec 2023 15:16:11 +0100
parents 43efa4f5a8ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
844
d3bbb5dd3913 updated for version 7.0f02
vimboss
parents: 831
diff changeset
1 " smcl.vim -- Vim syntax file for smcl files.
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
2 " Language: SMCL -- Stata Markup and Control Language
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
3 " Maintainer: Jeff Pitblado <jpitblado@stata.com>
844
d3bbb5dd3913 updated for version 7.0f02
vimboss
parents: 831
diff changeset
4 " Last Change: 26apr2006
d3bbb5dd3913 updated for version 7.0f02
vimboss
parents: 831
diff changeset
5 " Version: 1.1.2
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
6
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
7 " Log:
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
8 " 20mar2003 updated the match definition for cmdab
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
9 " 14apr2006 'syntax clear' only under version control
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
10 " check for 'b:current_syntax', removed 'did_smcl_syntax_inits'
844
d3bbb5dd3913 updated for version 7.0f02
vimboss
parents: 831
diff changeset
11 " 26apr2006 changed 'stata_smcl' to 'smcl'
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
12
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 844
diff changeset
13 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 844
diff changeset
14 if exists("b:current_syntax")
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
15 finish
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
16 endif
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
17
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
18 syntax case match
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
19
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
20 syn keyword smclCCLword current_date contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
21 syn keyword smclCCLword current_time contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
22 syn keyword smclCCLword rmsg_time contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
23 syn keyword smclCCLword stata_version contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
24 syn keyword smclCCLword version contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
25 syn keyword smclCCLword born_date contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
26 syn keyword smclCCLword flavor contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
27 syn keyword smclCCLword SE contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
28 syn keyword smclCCLword mode contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
29 syn keyword smclCCLword console contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
30 syn keyword smclCCLword os contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
31 syn keyword smclCCLword osdtl contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
32 syn keyword smclCCLword machine_type contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
33 syn keyword smclCCLword byteorder contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
34 syn keyword smclCCLword sysdir_stata contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
35 syn keyword smclCCLword sysdir_updates contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
36 syn keyword smclCCLword sysdir_base contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
37 syn keyword smclCCLword sysdir_site contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
38 syn keyword smclCCLword sysdir_plus contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
39 syn keyword smclCCLword sysdir_personal contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
40 syn keyword smclCCLword sysdir_oldplace contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
41 syn keyword smclCCLword adopath contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
42 syn keyword smclCCLword pwd contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
43 syn keyword smclCCLword dirsep contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
44 syn keyword smclCCLword max_N_theory contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
45 syn keyword smclCCLword max_N_current contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
46 syn keyword smclCCLword max_k_theory contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
47 syn keyword smclCCLword max_k_current contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
48 syn keyword smclCCLword max_width_theory contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
49 syn keyword smclCCLword max_width_current contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
50 syn keyword smclCCLword max_matsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
51 syn keyword smclCCLword min_matsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
52 syn keyword smclCCLword max_macrolen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
53 syn keyword smclCCLword macrolen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
54 syn keyword smclCCLword max_cmdlen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
55 syn keyword smclCCLword cmdlen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
56 syn keyword smclCCLword namelen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
57 syn keyword smclCCLword mindouble contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
58 syn keyword smclCCLword maxdouble contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
59 syn keyword smclCCLword epsdouble contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
60 syn keyword smclCCLword minfloat contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
61 syn keyword smclCCLword maxfloat contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
62 syn keyword smclCCLword epsfloat contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
63 syn keyword smclCCLword minlong contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
64 syn keyword smclCCLword maxlong contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
65 syn keyword smclCCLword minint contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
66 syn keyword smclCCLword maxint contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
67 syn keyword smclCCLword minbyte contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
68 syn keyword smclCCLword maxbyte contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
69 syn keyword smclCCLword maxstrvarlen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
70 syn keyword smclCCLword memory contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
71 syn keyword smclCCLword maxvar contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
72 syn keyword smclCCLword matsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
73 syn keyword smclCCLword N contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
74 syn keyword smclCCLword k contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
75 syn keyword smclCCLword width contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
76 syn keyword smclCCLword changed contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
77 syn keyword smclCCLword filename contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
78 syn keyword smclCCLword filedate contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
79 syn keyword smclCCLword more contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
80 syn keyword smclCCLword rmsg contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
81 syn keyword smclCCLword dp contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
82 syn keyword smclCCLword linesize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
83 syn keyword smclCCLword pagesize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
84 syn keyword smclCCLword logtype contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
85 syn keyword smclCCLword linegap contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
86 syn keyword smclCCLword scrollbufsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
87 syn keyword smclCCLword varlabelpos contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
88 syn keyword smclCCLword reventries contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
89 syn keyword smclCCLword graphics contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
90 syn keyword smclCCLword scheme contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
91 syn keyword smclCCLword printcolor contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
92 syn keyword smclCCLword adosize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
93 syn keyword smclCCLword maxdb contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
94 syn keyword smclCCLword virtual contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
95 syn keyword smclCCLword checksum contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
96 syn keyword smclCCLword timeout1 contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
97 syn keyword smclCCLword timeout2 contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
98 syn keyword smclCCLword httpproxy contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
99 syn keyword smclCCLword h_current contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
100 syn keyword smclCCLword max_matsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
101 syn keyword smclCCLword min_matsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
102 syn keyword smclCCLword max_macrolen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
103 syn keyword smclCCLword macrolen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
104 syn keyword smclCCLword max_cmdlen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
105 syn keyword smclCCLword cmdlen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
106 syn keyword smclCCLword namelen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
107 syn keyword smclCCLword mindouble contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
108 syn keyword smclCCLword maxdouble contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
109 syn keyword smclCCLword epsdouble contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
110 syn keyword smclCCLword minfloat contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
111 syn keyword smclCCLword maxfloat contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
112 syn keyword smclCCLword epsfloat contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
113 syn keyword smclCCLword minlong contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
114 syn keyword smclCCLword maxlong contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
115 syn keyword smclCCLword minint contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
116 syn keyword smclCCLword maxint contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
117 syn keyword smclCCLword minbyte contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
118 syn keyword smclCCLword maxbyte contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
119 syn keyword smclCCLword maxstrvarlen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
120 syn keyword smclCCLword memory contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
121 syn keyword smclCCLword maxvar contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
122 syn keyword smclCCLword matsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
123 syn keyword smclCCLword N contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
124 syn keyword smclCCLword k contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
125 syn keyword smclCCLword width contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
126 syn keyword smclCCLword changed contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
127 syn keyword smclCCLword filename contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
128 syn keyword smclCCLword filedate contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
129 syn keyword smclCCLword more contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
130 syn keyword smclCCLword rmsg contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
131 syn keyword smclCCLword dp contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
132 syn keyword smclCCLword linesize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
133 syn keyword smclCCLword pagesize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
134 syn keyword smclCCLword logtype contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
135 syn keyword smclCCLword linegap contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
136 syn keyword smclCCLword scrollbufsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
137 syn keyword smclCCLword varlabelpos contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
138 syn keyword smclCCLword reventries contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
139 syn keyword smclCCLword graphics contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
140 syn keyword smclCCLword scheme contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
141 syn keyword smclCCLword printcolor contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
142 syn keyword smclCCLword adosize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
143 syn keyword smclCCLword maxdb contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
144 syn keyword smclCCLword virtual contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
145 syn keyword smclCCLword checksum contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
146 syn keyword smclCCLword timeout1 contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
147 syn keyword smclCCLword timeout2 contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
148 syn keyword smclCCLword httpproxy contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
149 syn keyword smclCCLword httpproxyhost contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
150 syn keyword smclCCLword httpproxyport contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
151 syn keyword smclCCLword httpproxyauth contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
152 syn keyword smclCCLword httpproxyuser contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
153 syn keyword smclCCLword httpproxypw contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
154 syn keyword smclCCLword trace contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
155 syn keyword smclCCLword tracedepth contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
156 syn keyword smclCCLword tracesep contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
157 syn keyword smclCCLword traceindent contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
158 syn keyword smclCCLword traceexapnd contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
159 syn keyword smclCCLword tracenumber contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
160 syn keyword smclCCLword type contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
161 syn keyword smclCCLword level contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
162 syn keyword smclCCLword seed contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
163 syn keyword smclCCLword searchdefault contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
164 syn keyword smclCCLword pi contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
165 syn keyword smclCCLword rc contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
166
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
167 " Directive for the contant and current-value class
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
168 syn region smclCCL start=/{ccl / end=/}/ oneline contains=smclCCLword
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
169
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
170 " The order of the following syntax definitions is roughly that of the on-line
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
171 " documentation for smcl in Stata, from within Stata see help smcl.
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
172
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
173 " Format directives for line and paragraph modes
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
174 syn match smclFormat /{smcl}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
175 syn match smclFormat /{sf\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
176 syn match smclFormat /{it\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
177 syn match smclFormat /{bf\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
178 syn match smclFormat /{inp\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
179 syn match smclFormat /{input\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
180 syn match smclFormat /{err\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
181 syn match smclFormat /{error\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
182 syn match smclFormat /{res\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
183 syn match smclFormat /{result\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
184 syn match smclFormat /{txt\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
185 syn match smclFormat /{text\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
186 syn match smclFormat /{com\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
187 syn match smclFormat /{cmd\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
188 syn match smclFormat /{cmdab:[^:}]\+:[^:}()]*\(\|:\|:(\|:()\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
189 syn match smclFormat /{hi\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
190 syn match smclFormat /{hilite\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
191 syn match smclFormat /{ul \(on\|off\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
192 syn match smclFormat /{ul:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
193 syn match smclFormat /{hline\(\| \d\+\| -\d\+\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
194 syn match smclFormat /{dup \d\+:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
195 syn match smclFormat /{c [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
196 syn match smclFormat /{char [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
197 syn match smclFormat /{reset}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
198
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
199 " Formatting directives for line mode
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
200 syn match smclFormat /{title:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
201 syn match smclFormat /{center:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
202 syn match smclFormat /{centre:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
203 syn match smclFormat /{center \d\+:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
204 syn match smclFormat /{centre \d\+:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
205 syn match smclFormat /{right:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
206 syn match smclFormat /{lalign \d\+:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
207 syn match smclFormat /{ralign \d\+:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
208 syn match smclFormat /{\.\.\.}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
209 syn match smclFormat /{col \d\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
210 syn match smclFormat /{space \d\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
211 syn match smclFormat /{tab}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
212
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
213 " Formatting directives for paragraph mode
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
214 syn match smclFormat /{bind:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
215 syn match smclFormat /{break}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
216
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
217 syn match smclFormat /{p}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
218 syn match smclFormat /{p \d\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
219 syn match smclFormat /{p \d\+ \d\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
220 syn match smclFormat /{p \d\+ \d\+ \d\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
221 syn match smclFormat /{pstd}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
222 syn match smclFormat /{psee}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
223 syn match smclFormat /{phang\(\|2\|3\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
224 syn match smclFormat /{pmore\(\|2\|3\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
225 syn match smclFormat /{pin\(\|2\|3\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
226 syn match smclFormat /{p_end}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
227
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
228 syn match smclFormat /{opt \w\+\(\|:\w\+\)\(\|([^)}]*)\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
229
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
230 syn match smclFormat /{opth \w*\(\|:\w\+\)(\w*)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
231 syn match smclFormat /{opth "\w\+\((\w\+:[^)}]\+)\)"}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
232 syn match smclFormat /{opth \w\+:\w\+(\w\+:[^)}]\+)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
233
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
234 syn match smclFormat /{dlgtab\s*\(\|\d\+\|\d\+\s\+\d\+\):[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
235
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
236 syn match smclFormat /{p2colset\s\+\d\+\s\+\d\+\s\+\d\+\s\+\d\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
237 syn match smclFormat /{p2col\s\+:[^{}]*}.*{p_end}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
238 syn match smclFormat /{p2col\s\+:{[^{}]*}}.*{p_end}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
239 syn match smclFormat /{p2coldent\s*:[^{}]*}.*{p_end}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
240 syn match smclFormat /{p2coldent\s*:{[^{}]*}}.*{p_end}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
241 syn match smclFormat /{p2line\s*\(\|\d\+\s\+\d\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
242 syn match smclFormat /{p2colreset}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
243
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
244 syn match smclFormat /{synoptset\s\+\d\+\s\+\w\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
245 syn match smclFormat /{synopt\s*:[^{}]*}.*{p_end}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
246 syn match smclFormat /{synopt\s*:{[^{}]*}}.*{p_end}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
247 syn match smclFormat /{syntab\s*:[^{}]*}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
248 syn match smclFormat /{synopthdr}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
249 syn match smclFormat /{synoptline}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
250
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
251 " Link directive for line and paragraph modes
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
252 syn match smclLink /{help [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
253 syn match smclLink /{helpb [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
254 syn match smclLink /{help_d:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
255 syn match smclLink /{search [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
256 syn match smclLink /{search_d:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
257 syn match smclLink /{browse [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
258 syn match smclLink /{view [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
259 syn match smclLink /{view_d:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
260 syn match smclLink /{news:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
261 syn match smclLink /{net [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
262 syn match smclLink /{net_d:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
263 syn match smclLink /{netfrom_d:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
264 syn match smclLink /{ado [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
265 syn match smclLink /{ado_d:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
266 syn match smclLink /{update [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
267 syn match smclLink /{update_d:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
268 syn match smclLink /{dialog [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
269 syn match smclLink /{back:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
270 syn match smclLink /{clearmore:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
271 syn match smclLink /{stata [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
272
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
273 syn match smclLink /{newvar\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
274 syn match smclLink /{var\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
275 syn match smclLink /{varname\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
276 syn match smclLink /{vars\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
277 syn match smclLink /{varlist\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
278 syn match smclLink /{depvar\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
279 syn match smclLink /{depvars\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
280 syn match smclLink /{depvarlist\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
281 syn match smclLink /{indepvars\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
282
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
283 syn match smclLink /{dtype}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
284 syn match smclLink /{ifin}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
285 syn match smclLink /{weight}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
286
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
287 " Comment
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
288 syn region smclComment start=/{\*/ end=/}/ oneline
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
289
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
290 " Strings
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
291 syn region smclString matchgroup=Nothing start=/"/ end=/"/ oneline
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
292 syn region smclEString matchgroup=Nothing start=/`"/ end=/"'/ oneline contains=smclEString
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
293
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
294 " assign highlight groups
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
295
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
296 hi def link smclEString smclString
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
297
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
298 hi def link smclCCLword Statement
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
299 hi def link smclCCL Type
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
300 hi def link smclFormat Statement
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
301 hi def link smclLink Underlined
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
302 hi def link smclComment Comment
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
303 hi def link smclString String
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
304
844
d3bbb5dd3913 updated for version 7.0f02
vimboss
parents: 831
diff changeset
305 let b:current_syntax = "smcl"
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
306
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
307 " vim: ts=8