annotate runtime/syntax/smcl.vim @ 9246:6ee88fa405b3 v7.4.1906

commit https://github.com/vim/vim/commit/5f1032d2a55b9417a0a6fa225e35089c98a5a419 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 7 22:16:36 2016 +0200 patch 7.4.1906 Problem: Collapsing channel buffers and searching for NL does not work properly. (Xavier de Gary, Ramel Eshed) Solution: Do not assume the buffer contains a NUL or not. Change NUL bytes to NL to avoid the string is truncated.
author Christian Brabandt <cb@256bit.org>
date Tue, 07 Jun 2016 22:30:06 +0200
parents d3bbb5dd3913
children 43efa4f5a8ea
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
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
13 if version < 600
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
14 syntax clear
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
15 elseif exists("b:current_syntax")
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
16 finish
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
17 endif
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
18
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
19 syntax case match
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
20
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
21 syn keyword smclCCLword current_date contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
22 syn keyword smclCCLword current_time contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
23 syn keyword smclCCLword rmsg_time contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
24 syn keyword smclCCLword stata_version contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
25 syn keyword smclCCLword version contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
26 syn keyword smclCCLword born_date contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
27 syn keyword smclCCLword flavor contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
28 syn keyword smclCCLword SE contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
29 syn keyword smclCCLword mode contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
30 syn keyword smclCCLword console contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
31 syn keyword smclCCLword os contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
32 syn keyword smclCCLword osdtl contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
33 syn keyword smclCCLword machine_type contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
34 syn keyword smclCCLword byteorder contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
35 syn keyword smclCCLword sysdir_stata contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
36 syn keyword smclCCLword sysdir_updates contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
37 syn keyword smclCCLword sysdir_base contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
38 syn keyword smclCCLword sysdir_site contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
39 syn keyword smclCCLword sysdir_plus contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
40 syn keyword smclCCLword sysdir_personal contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
41 syn keyword smclCCLword sysdir_oldplace contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
42 syn keyword smclCCLword adopath contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
43 syn keyword smclCCLword pwd contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
44 syn keyword smclCCLword dirsep contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
45 syn keyword smclCCLword max_N_theory contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
46 syn keyword smclCCLword max_N_current contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
47 syn keyword smclCCLword max_k_theory contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
48 syn keyword smclCCLword max_k_current contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
49 syn keyword smclCCLword max_width_theory contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
50 syn keyword smclCCLword max_width_current contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
51 syn keyword smclCCLword max_matsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
52 syn keyword smclCCLword min_matsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
53 syn keyword smclCCLword max_macrolen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
54 syn keyword smclCCLword macrolen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
55 syn keyword smclCCLword max_cmdlen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
56 syn keyword smclCCLword cmdlen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
57 syn keyword smclCCLword namelen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
58 syn keyword smclCCLword mindouble contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
59 syn keyword smclCCLword maxdouble contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
60 syn keyword smclCCLword epsdouble contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
61 syn keyword smclCCLword minfloat contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
62 syn keyword smclCCLword maxfloat contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
63 syn keyword smclCCLword epsfloat contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
64 syn keyword smclCCLword minlong contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
65 syn keyword smclCCLword maxlong contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
66 syn keyword smclCCLword minint contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
67 syn keyword smclCCLword maxint contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
68 syn keyword smclCCLword minbyte contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
69 syn keyword smclCCLword maxbyte contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
70 syn keyword smclCCLword maxstrvarlen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
71 syn keyword smclCCLword memory contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
72 syn keyword smclCCLword maxvar contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
73 syn keyword smclCCLword matsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
74 syn keyword smclCCLword N contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
75 syn keyword smclCCLword k contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
76 syn keyword smclCCLword width contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
77 syn keyword smclCCLword changed contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
78 syn keyword smclCCLword filename contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
79 syn keyword smclCCLword filedate contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
80 syn keyword smclCCLword more contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
81 syn keyword smclCCLword rmsg contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
82 syn keyword smclCCLword dp contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
83 syn keyword smclCCLword linesize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
84 syn keyword smclCCLword pagesize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
85 syn keyword smclCCLword logtype contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
86 syn keyword smclCCLword linegap contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
87 syn keyword smclCCLword scrollbufsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
88 syn keyword smclCCLword varlabelpos contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
89 syn keyword smclCCLword reventries contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
90 syn keyword smclCCLword graphics contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
91 syn keyword smclCCLword scheme contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
92 syn keyword smclCCLword printcolor contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
93 syn keyword smclCCLword adosize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
94 syn keyword smclCCLword maxdb contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
95 syn keyword smclCCLword virtual contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
96 syn keyword smclCCLword checksum contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
97 syn keyword smclCCLword timeout1 contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
98 syn keyword smclCCLword timeout2 contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
99 syn keyword smclCCLword httpproxy contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
100 syn keyword smclCCLword h_current contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
101 syn keyword smclCCLword max_matsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
102 syn keyword smclCCLword min_matsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
103 syn keyword smclCCLword max_macrolen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
104 syn keyword smclCCLword macrolen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
105 syn keyword smclCCLword max_cmdlen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
106 syn keyword smclCCLword cmdlen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
107 syn keyword smclCCLword namelen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
108 syn keyword smclCCLword mindouble contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
109 syn keyword smclCCLword maxdouble contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
110 syn keyword smclCCLword epsdouble contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
111 syn keyword smclCCLword minfloat contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
112 syn keyword smclCCLword maxfloat contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
113 syn keyword smclCCLword epsfloat contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
114 syn keyword smclCCLword minlong contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
115 syn keyword smclCCLword maxlong contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
116 syn keyword smclCCLword minint contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
117 syn keyword smclCCLword maxint contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
118 syn keyword smclCCLword minbyte contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
119 syn keyword smclCCLword maxbyte contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
120 syn keyword smclCCLword maxstrvarlen contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
121 syn keyword smclCCLword memory contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
122 syn keyword smclCCLword maxvar contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
123 syn keyword smclCCLword matsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
124 syn keyword smclCCLword N contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
125 syn keyword smclCCLword k contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
126 syn keyword smclCCLword width contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
127 syn keyword smclCCLword changed contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
128 syn keyword smclCCLword filename contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
129 syn keyword smclCCLword filedate contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
130 syn keyword smclCCLword more contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
131 syn keyword smclCCLword rmsg contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
132 syn keyword smclCCLword dp contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
133 syn keyword smclCCLword linesize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
134 syn keyword smclCCLword pagesize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
135 syn keyword smclCCLword logtype contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
136 syn keyword smclCCLword linegap contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
137 syn keyword smclCCLword scrollbufsize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
138 syn keyword smclCCLword varlabelpos contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
139 syn keyword smclCCLword reventries contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
140 syn keyword smclCCLword graphics contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
141 syn keyword smclCCLword scheme contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
142 syn keyword smclCCLword printcolor contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
143 syn keyword smclCCLword adosize contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
144 syn keyword smclCCLword maxdb contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
145 syn keyword smclCCLword virtual contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
146 syn keyword smclCCLword checksum contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
147 syn keyword smclCCLword timeout1 contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
148 syn keyword smclCCLword timeout2 contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
149 syn keyword smclCCLword httpproxy contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
150 syn keyword smclCCLword httpproxyhost contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
151 syn keyword smclCCLword httpproxyport contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
152 syn keyword smclCCLword httpproxyauth contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
153 syn keyword smclCCLword httpproxyuser contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
154 syn keyword smclCCLword httpproxypw contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
155 syn keyword smclCCLword trace contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
156 syn keyword smclCCLword tracedepth contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
157 syn keyword smclCCLword tracesep contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
158 syn keyword smclCCLword traceindent contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
159 syn keyword smclCCLword traceexapnd contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
160 syn keyword smclCCLword tracenumber contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
161 syn keyword smclCCLword type contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
162 syn keyword smclCCLword level contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
163 syn keyword smclCCLword seed contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
164 syn keyword smclCCLword searchdefault contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
165 syn keyword smclCCLword pi contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
166 syn keyword smclCCLword rc contained
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
167
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
168 " Directive for the contant and current-value class
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
169 syn region smclCCL start=/{ccl / end=/}/ oneline contains=smclCCLword
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
170
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
171 " The order of the following syntax definitions is roughly that of the on-line
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
172 " documentation for smcl in Stata, from within Stata see help smcl.
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
173
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
174 " Format directives for line and paragraph modes
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
175 syn match smclFormat /{smcl}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
176 syn match smclFormat /{sf\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
177 syn match smclFormat /{it\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
178 syn match smclFormat /{bf\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
179 syn match smclFormat /{inp\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
180 syn match smclFormat /{input\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
181 syn match smclFormat /{err\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
182 syn match smclFormat /{error\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
183 syn match smclFormat /{res\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
184 syn match smclFormat /{result\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
185 syn match smclFormat /{txt\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
186 syn match smclFormat /{text\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
187 syn match smclFormat /{com\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
188 syn match smclFormat /{cmd\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
189 syn match smclFormat /{cmdab:[^:}]\+:[^:}()]*\(\|:\|:(\|:()\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
190 syn match smclFormat /{hi\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
191 syn match smclFormat /{hilite\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
192 syn match smclFormat /{ul \(on\|off\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
193 syn match smclFormat /{ul:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
194 syn match smclFormat /{hline\(\| \d\+\| -\d\+\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
195 syn match smclFormat /{dup \d\+:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
196 syn match smclFormat /{c [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
197 syn match smclFormat /{char [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
198 syn match smclFormat /{reset}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
199
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
200 " Formatting directives for line mode
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
201 syn match smclFormat /{title:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
202 syn match smclFormat /{center:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
203 syn match smclFormat /{centre:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
204 syn match smclFormat /{center \d\+:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
205 syn match smclFormat /{centre \d\+:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
206 syn match smclFormat /{right:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
207 syn match smclFormat /{lalign \d\+:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
208 syn match smclFormat /{ralign \d\+:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
209 syn match smclFormat /{\.\.\.}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
210 syn match smclFormat /{col \d\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
211 syn match smclFormat /{space \d\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
212 syn match smclFormat /{tab}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
213
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
214 " Formatting directives for paragraph mode
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
215 syn match smclFormat /{bind:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
216 syn match smclFormat /{break}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
217
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
218 syn match smclFormat /{p}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
219 syn match smclFormat /{p \d\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
220 syn match smclFormat /{p \d\+ \d\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
221 syn match smclFormat /{p \d\+ \d\+ \d\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
222 syn match smclFormat /{pstd}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
223 syn match smclFormat /{psee}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
224 syn match smclFormat /{phang\(\|2\|3\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
225 syn match smclFormat /{pmore\(\|2\|3\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
226 syn match smclFormat /{pin\(\|2\|3\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
227 syn match smclFormat /{p_end}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
228
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
229 syn match smclFormat /{opt \w\+\(\|:\w\+\)\(\|([^)}]*)\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
230
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
231 syn match smclFormat /{opth \w*\(\|:\w\+\)(\w*)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
232 syn match smclFormat /{opth "\w\+\((\w\+:[^)}]\+)\)"}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
233 syn match smclFormat /{opth \w\+:\w\+(\w\+:[^)}]\+)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
234
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
235 syn match smclFormat /{dlgtab\s*\(\|\d\+\|\d\+\s\+\d\+\):[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
236
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
237 syn match smclFormat /{p2colset\s\+\d\+\s\+\d\+\s\+\d\+\s\+\d\+}/
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 /{p2col\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 /{p2coldent\s*:{[^{}]*}}.*{p_end}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
242 syn match smclFormat /{p2line\s*\(\|\d\+\s\+\d\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
243 syn match smclFormat /{p2colreset}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
244
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
245 syn match smclFormat /{synoptset\s\+\d\+\s\+\w\+}/
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 /{synopt\s*:{[^{}]*}}.*{p_end}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
248 syn match smclFormat /{syntab\s*:[^{}]*}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
249 syn match smclFormat /{synopthdr}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
250 syn match smclFormat /{synoptline}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
251
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
252 " Link directive for line and paragraph modes
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
253 syn match smclLink /{help [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
254 syn match smclLink /{helpb [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
255 syn match smclLink /{help_d:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
256 syn match smclLink /{search [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
257 syn match smclLink /{search_d:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
258 syn match smclLink /{browse [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
259 syn match smclLink /{view [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
260 syn match smclLink /{view_d:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
261 syn match smclLink /{news:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
262 syn match smclLink /{net [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
263 syn match smclLink /{net_d:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
264 syn match smclLink /{netfrom_d:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
265 syn match smclLink /{ado [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
266 syn match smclLink /{ado_d:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
267 syn match smclLink /{update [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
268 syn match smclLink /{update_d:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
269 syn match smclLink /{dialog [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
270 syn match smclLink /{back:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
271 syn match smclLink /{clearmore:[^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
272 syn match smclLink /{stata [^}]\+}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
273
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
274 syn match smclLink /{newvar\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
275 syn match smclLink /{var\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
276 syn match smclLink /{varname\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
277 syn match smclLink /{vars\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
278 syn match smclLink /{varlist\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
279 syn match smclLink /{depvar\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
280 syn match smclLink /{depvars\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
281 syn match smclLink /{depvarlist\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
282 syn match smclLink /{indepvars\(\|:[^}]\+\)}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
283
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
284 syn match smclLink /{dtype}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
285 syn match smclLink /{ifin}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
286 syn match smclLink /{weight}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
287
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
288 " Comment
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
289 syn region smclComment start=/{\*/ end=/}/ oneline
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
290
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
291 " Strings
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
292 syn region smclString matchgroup=Nothing start=/"/ end=/"/ oneline
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
293 syn region smclEString matchgroup=Nothing start=/`"/ end=/"'/ oneline contains=smclEString
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
294
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
295 " assign highlight groups
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
296
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
297 hi def link smclEString smclString
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
298
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
299 hi def link smclCCLword Statement
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
300 hi def link smclCCL Type
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
301 hi def link smclFormat Statement
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
302 hi def link smclLink Underlined
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
303 hi def link smclComment Comment
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
304 hi def link smclString String
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
305
844
d3bbb5dd3913 updated for version 7.0f02
vimboss
parents: 831
diff changeset
306 let b:current_syntax = "smcl"
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
307
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
308 " vim: ts=8