annotate runtime/syntax/stata.vim @ 831:f24a95dae8ee

updated for version 7.0d05
author vimboss
date Sat, 15 Apr 2006 20:25:09 +0000
parents
children 8bebcabccc2c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
1 " stata.vim -- Vim syntax file for Stata do, ado, and class files.
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
2 " Language: Stata and/or Mata
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
3 " Maintainer: Jeff Pitblado <jpitblado@stata.com>
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
4 " Last Change: 14apr2006
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
5 " Version: 1.1.1
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
6 " Location: http://www.stata.com/users/jpitblado/files/vimfiles/syntax/stata.vim
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
7
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
8 " Log:
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
9 " 14apr2006 renamed syntax groups st* to stata*
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
10 " 'syntax clear' only under version control
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
11 " check for 'b:current_syntax', removed 'did_stat_syntax_inits'
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 " comments - single line
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
22 " note that the triple slash continuing line comment comes free
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
23 syn region stataStarComment start=/^\s*\*/ end=/$/ contains=stataComment oneline
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
24 syn region stataSlashComment start="\s//" end=/$/ contains=stataComment oneline
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
25 syn region stataSlashComment start="^//" end=/$/ contains=stataComment oneline
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
26 " comments - multiple line
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
27 syn region stataComment start="/\*" end="\*/" contains=stataComment
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
28
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
29 " global macros - simple case
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
30 syn match stataGlobal /\$\a\w*/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
31 " global macros - general case
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
32 syn region stataGlobal start=/\${/ end=/}/ oneline contains=@stataMacroGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
33 " local macros - general case
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
34 syn region stataLocal start=/`/ end=/'/ oneline contains=@stataMacroGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
35
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
36 " numeric formats
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
37 syn match stataFormat /%-\=\d\+\.\d\+[efg]c\=/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
38 " numeric hex format
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
39 syn match stataFormat /%-\=21x/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
40 " string format
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
41 syn match stataFormat /%\(\|-\|\~\)\d\+s/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
42
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
43 " Statements
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
44 syn keyword stataConditional else if
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
45 syn keyword stataRepeat foreach
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
46 syn keyword stataRepeat forv[alues]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
47 syn keyword stataRepeat while
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
48
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
49 " Common programming commands
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
50 syn keyword stataCommand about
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
51 syn keyword stataCommand adopath
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
52 syn keyword stataCommand adoupdate
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
53 syn keyword stataCommand assert
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
54 syn keyword stataCommand break
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
55 syn keyword stataCommand by
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
56 syn keyword stataCommand cap[ture]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
57 syn keyword stataCommand cd
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
58 syn keyword stataCommand chdir
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
59 syn keyword stataCommand checksum
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
60 syn keyword stataCommand class
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
61 syn keyword stataCommand classutil
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
62 syn keyword stataCommand compress
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
63 syn keyword stataCommand conf[irm]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
64 syn keyword stataCommand conren
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
65 syn keyword stataCommand continue
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
66 syn keyword stataCommand cou[nt]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
67 syn keyword stataCommand cscript
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
68 syn keyword stataCommand cscript_log
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
69 syn keyword stataCommand #delimit
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
70 syn keyword stataCommand d[escribe]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
71 syn keyword stataCommand dir
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
72 syn keyword stataCommand discard
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
73 syn keyword stataCommand di[splay]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
74 syn keyword stataCommand do
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
75 syn keyword stataCommand doedit
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
76 syn keyword stataCommand drop
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
77 syn keyword stataCommand edit
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
78 syn keyword stataCommand end
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
79 syn keyword stataCommand erase
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
80 syn keyword stataCommand eret[urn]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
81 syn keyword stataCommand err[or]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
82 syn keyword stataCommand e[xit]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
83 syn keyword stataCommand expand
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
84 syn keyword stataCommand expandcl
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
85 syn keyword stataCommand file
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
86 syn keyword stataCommand findfile
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
87 syn keyword stataCommand format
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
88 syn keyword stataCommand g[enerate]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
89 syn keyword stataCommand gettoken
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
90 syn keyword stataCommand gl[obal]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
91 syn keyword stataCommand help
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
92 syn keyword stataCommand hexdump
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
93 syn keyword stataCommand include
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
94 syn keyword stataCommand infile
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
95 syn keyword stataCommand infix
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
96 syn keyword stataCommand input
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
97 syn keyword stataCommand insheet
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
98 syn keyword stataCommand joinby
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
99 syn keyword stataCommand la[bel]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
100 syn keyword stataCommand levelsof
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
101 syn keyword stataCommand list
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
102 syn keyword stataCommand loc[al]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
103 syn keyword stataCommand log
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
104 syn keyword stataCommand ma[cro]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
105 syn keyword stataCommand mark
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
106 syn keyword stataCommand markout
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
107 syn keyword stataCommand marksample
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
108 syn keyword stataCommand mata
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
109 syn keyword stataCommand matrix
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
110 syn keyword stataCommand memory
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
111 syn keyword stataCommand merge
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
112 syn keyword stataCommand mkdir
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
113 syn keyword stataCommand more
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
114 syn keyword stataCommand net
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
115 syn keyword stataCommand nobreak
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
116 syn keyword stataCommand n[oisily]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
117 syn keyword stataCommand note[s]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
118 syn keyword stataCommand numlist
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
119 syn keyword stataCommand outfile
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
120 syn keyword stataCommand outsheet
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
121 syn keyword stataCommand _parse
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
122 syn keyword stataCommand pause
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
123 syn keyword stataCommand plugin
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
124 syn keyword stataCommand post
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
125 syn keyword stataCommand postclose
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
126 syn keyword stataCommand postfile
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
127 syn keyword stataCommand preserve
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
128 syn keyword stataCommand print
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
129 syn keyword stataCommand printer
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
130 syn keyword stataCommand profiler
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
131 syn keyword stataCommand pr[ogram]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
132 syn keyword stataCommand q[uery]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
133 syn keyword stataCommand qui[etly]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
134 syn keyword stataCommand rcof
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
135 syn keyword stataCommand reg[ress]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
136 syn keyword stataCommand rename
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
137 syn keyword stataCommand repeat
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
138 syn keyword stataCommand replace
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
139 syn keyword stataCommand reshape
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
140 syn keyword stataCommand ret[urn]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
141 syn keyword stataCommand _rmcoll
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
142 syn keyword stataCommand _rmcoll
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
143 syn keyword stataCommand _rmcollright
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
144 syn keyword stataCommand rmdir
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
145 syn keyword stataCommand _robust
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
146 syn keyword stataCommand save
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
147 syn keyword stataCommand sca[lar]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
148 syn keyword stataCommand search
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
149 syn keyword stataCommand serset
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
150 syn keyword stataCommand set
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
151 syn keyword stataCommand shell
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
152 syn keyword stataCommand sleep
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
153 syn keyword stataCommand sort
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
154 syn keyword stataCommand split
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
155 syn keyword stataCommand sret[urn]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
156 syn keyword stataCommand ssc
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
157 syn keyword stataCommand su[mmarize]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
158 syn keyword stataCommand syntax
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
159 syn keyword stataCommand sysdescribe
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
160 syn keyword stataCommand sysdir
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
161 syn keyword stataCommand sysuse
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
162 syn keyword stataCommand token[ize]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
163 syn keyword stataCommand translate
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
164 syn keyword stataCommand type
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
165 syn keyword stataCommand unab
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
166 syn keyword stataCommand unabcmd
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
167 syn keyword stataCommand update
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
168 syn keyword stataCommand use
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
169 syn keyword stataCommand vers[ion]
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
170 syn keyword stataCommand view
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
171 syn keyword stataCommand viewsource
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
172 syn keyword stataCommand webdescribe
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
173 syn keyword stataCommand webseek
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
174 syn keyword stataCommand webuse
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
175 syn keyword stataCommand which
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
176 syn keyword stataCommand who
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
177 syn keyword stataCommand window
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
178
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
179 " Literals
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
180 syn match stataQuote /"/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
181 syn region stataEString matchgroup=Nothing start=/`"/ end=/"'/ oneline contains=@stataMacroGroup,stataQuote,stataString,stataEString
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
182 syn region stataString matchgroup=Nothing start=/"/ end=/"/ oneline contains=@stataMacroGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
183
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
184 " define clusters
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
185 syn cluster stataFuncGroup contains=@stataMacroGroup,stataFunc,stataString,stataEstring
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
186 syn cluster stataMacroGroup contains=stataGlobal,stataLocal
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
187 syn cluster stataParenGroup contains=stataParenError,stataBracketError,stataBraceError,stataSpecial,stataFormat
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
188
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
189 " Stata functions
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
190 " Math
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
191 syn region stataFunc matchgroup=Function start=/abs(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
192 syn region stataFunc matchgroup=Function start=/acos(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
193 syn region stataFunc matchgroup=Function start=/asin(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
194 syn region stataFunc matchgroup=Function start=/atan(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
195 syn region stataFunc matchgroup=Function start=/atan2(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
196 syn region stataFunc matchgroup=Function start=/atanh(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
197 syn region stataFunc matchgroup=Function start=/ceil(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
198 syn region stataFunc matchgroup=Function start=/cloglog(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
199 syn region stataFunc matchgroup=Function start=/comb(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
200 syn region stataFunc matchgroup=Function start=/cos(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
201 syn region stataFunc matchgroup=Function start=/digamma(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
202 syn region stataFunc matchgroup=Function start=/exp(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
203 syn region stataFunc matchgroup=Function start=/floor(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
204 syn region stataFunc matchgroup=Function start=/int(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
205 syn region stataFunc matchgroup=Function start=/invcloglog(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
206 syn region stataFunc matchgroup=Function start=/invlogit(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
207 syn region stataFunc matchgroup=Function start=/ln(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
208 syn region stataFunc matchgroup=Function start=/lnfact(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
209 syn region stataFunc matchgroup=Function start=/lnfactorial(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
210 syn region stataFunc matchgroup=Function start=/lngamma(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
211 syn region stataFunc matchgroup=Function start=/log(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
212 syn region stataFunc matchgroup=Function start=/log10(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
213 syn region stataFunc matchgroup=Function start=/logit(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
214 syn region stataFunc matchgroup=Function start=/max(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
215 syn region stataFunc matchgroup=Function start=/mod(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
216 syn region stataFunc matchgroup=Function start=/reldif(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
217 syn region stataFunc matchgroup=Function start=/round(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
218 syn region stataFunc matchgroup=Function start=/sign(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
219 syn region stataFunc matchgroup=Function start=/sin(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
220 syn region stataFunc matchgroup=Function start=/sqrt(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
221 syn region stataFunc matchgroup=Function start=/sum(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
222 syn region stataFunc matchgroup=Function start=/tan(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
223 syn region stataFunc matchgroup=Function start=/tanh(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
224 syn region stataFunc matchgroup=Function start=/trigamma(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
225 syn region stataFunc matchgroup=Function start=/trunc(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
226 " Probability distriubtions and density functions
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
227 syn region stataFunc matchgroup=Function start=/betaden(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
228 syn region stataFunc matchgroup=Function start=/Binomial(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
229 syn region stataFunc matchgroup=Function start=/binorm(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
230 syn region stataFunc matchgroup=Function start=/binormal(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
231 syn region stataFunc matchgroup=Function start=/chi2(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
232 syn region stataFunc matchgroup=Function start=/chi2tail(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
233 syn region stataFunc matchgroup=Function start=/dgammapda(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
234 syn region stataFunc matchgroup=Function start=/dgammapdada(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
235 syn region stataFunc matchgroup=Function start=/dgammapdadx(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
236 syn region stataFunc matchgroup=Function start=/dgammapdx(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
237 syn region stataFunc matchgroup=Function start=/dgammapdxdx(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
238 syn region stataFunc matchgroup=Function start=/F(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
239 syn region stataFunc matchgroup=Function start=/Fden(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
240 syn region stataFunc matchgroup=Function start=/Ftail(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
241 syn region stataFunc matchgroup=Function start=/gammaden(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
242 syn region stataFunc matchgroup=Function start=/gammap(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
243 syn region stataFunc matchgroup=Function start=/ibeta(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
244 syn region stataFunc matchgroup=Function start=/invbinomial(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
245 syn region stataFunc matchgroup=Function start=/invchi2(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
246 syn region stataFunc matchgroup=Function start=/invchi2tail(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
247 syn region stataFunc matchgroup=Function start=/invF(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
248 syn region stataFunc matchgroup=Function start=/invFtail(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
249 syn region stataFunc matchgroup=Function start=/invgammap(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
250 syn region stataFunc matchgroup=Function start=/invibeta(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
251 syn region stataFunc matchgroup=Function start=/invnchi2(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
252 syn region stataFunc matchgroup=Function start=/invFtail(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
253 syn region stataFunc matchgroup=Function start=/invibeta(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
254 syn region stataFunc matchgroup=Function start=/invnorm(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
255 syn region stataFunc matchgroup=Function start=/invnormal(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
256 syn region stataFunc matchgroup=Function start=/invttail(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
257 syn region stataFunc matchgroup=Function start=/lnnormal(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
258 syn region stataFunc matchgroup=Function start=/lnnormalden(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
259 syn region stataFunc matchgroup=Function start=/nbetaden(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
260 syn region stataFunc matchgroup=Function start=/nchi2(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
261 syn region stataFunc matchgroup=Function start=/nFden(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
262 syn region stataFunc matchgroup=Function start=/nFtail(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
263 syn region stataFunc matchgroup=Function start=/nibeta(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
264 syn region stataFunc matchgroup=Function start=/norm(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
265 syn region stataFunc matchgroup=Function start=/normal(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
266 syn region stataFunc matchgroup=Function start=/normalden(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
267 syn region stataFunc matchgroup=Function start=/normden(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
268 syn region stataFunc matchgroup=Function start=/npnchi2(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
269 syn region stataFunc matchgroup=Function start=/tden(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
270 syn region stataFunc matchgroup=Function start=/ttail(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
271 " Random numbers
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
272 syn region stataFunc matchgroup=Function start=/uniform(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
273 " String
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
274 syn region stataFunc matchgroup=Function start=/abbrev(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
275 syn region stataFunc matchgroup=Function start=/hchar(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
276 syn region stataFunc matchgroup=Function start=/indexnot(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
277 syn region stataFunc matchgroup=Function start=/itrim(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
278 syn region stataFunc matchgroup=Function start=/length(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
279 syn region stataFunc matchgroup=Function start=/lower(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
280 syn region stataFunc matchgroup=Function start=/ltrim(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
281 syn region stataFunc matchgroup=Function start=/plural(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
282 syn region stataFunc matchgroup=Function start=/proper(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
283 syn region stataFunc matchgroup=Function start=/real(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
284 syn region stataFunc matchgroup=Function start=/regexm(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
285 syn region stataFunc matchgroup=Function start=/regexr(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
286 syn region stataFunc matchgroup=Function start=/regexs(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
287 syn region stataFunc matchgroup=Function start=/reverse(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
288 syn region stataFunc matchgroup=Function start=/rtrim(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
289 syn region stataFunc matchgroup=Function start=/string(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
290 syn region stataFunc matchgroup=Function start=/strlen(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
291 syn region stataFunc matchgroup=Function start=/strmatch(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
292 syn region stataFunc matchgroup=Function start=/strpos(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
293 syn region stataFunc matchgroup=Function start=/subinstr(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
294 syn region stataFunc matchgroup=Function start=/subinword(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
295 syn region stataFunc matchgroup=Function start=/substr(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
296 syn region stataFunc matchgroup=Function start=/trim(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
297 syn region stataFunc matchgroup=Function start=/upper(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
298 syn region stataFunc matchgroup=Function start=/word(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
299 syn region stataFunc matchgroup=Function start=/wordcount(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
300 " Programming
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
301 syn region stataFunc matchgroup=Function start=/autocode(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
302 syn region stataFunc matchgroup=Function start=/byteorder(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
303 syn region stataFunc matchgroup=Function start=/c(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
304 syn region stataFunc matchgroup=Function start=/_caller(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
305 syn region stataFunc matchgroup=Function start=/chop(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
306 syn region stataFunc matchgroup=Function start=/clip(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
307 syn region stataFunc matchgroup=Function start=/cond(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
308 syn region stataFunc matchgroup=Function start=/e(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
309 syn region stataFunc matchgroup=Function start=/epsdouble(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
310 syn region stataFunc matchgroup=Function start=/epsfloat(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
311 syn region stataFunc matchgroup=Function start=/float(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
312 syn region stataFunc matchgroup=Function start=/has_eprop(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
313 syn region stataFunc matchgroup=Function start=/has_eprop(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
314 syn region stataFunc matchgroup=Function start=/inlist(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
315 syn region stataFunc matchgroup=Function start=/inrange(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
316 syn region stataFunc matchgroup=Function start=/irecode(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
317 syn region stataFunc matchgroup=Function start=/matrix(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
318 syn region stataFunc matchgroup=Function start=/maxbyte(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
319 syn region stataFunc matchgroup=Function start=/maxdouble(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
320 syn region stataFunc matchgroup=Function start=/maxfloat(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
321 syn region stataFunc matchgroup=Function start=/maxint(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
322 syn region stataFunc matchgroup=Function start=/maxlong(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
323 syn region stataFunc matchgroup=Function start=/mi(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
324 syn region stataFunc matchgroup=Function start=/minbyte(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
325 syn region stataFunc matchgroup=Function start=/mindouble(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
326 syn region stataFunc matchgroup=Function start=/minfloat(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
327 syn region stataFunc matchgroup=Function start=/minint(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
328 syn region stataFunc matchgroup=Function start=/minlong(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
329 syn region stataFunc matchgroup=Function start=/missing(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
330 syn region stataFunc matchgroup=Function start=/r(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
331 syn region stataFunc matchgroup=Function start=/recode(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
332 syn region stataFunc matchgroup=Function start=/replay(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
333 syn region stataFunc matchgroup=Function start=/return(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
334 syn region stataFunc matchgroup=Function start=/s(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
335 syn region stataFunc matchgroup=Function start=/scalar(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
336 " Date
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
337 syn region stataFunc matchgroup=Function start=/d(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
338 syn region stataFunc matchgroup=Function start=/date(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
339 syn region stataFunc matchgroup=Function start=/day(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
340 syn region stataFunc matchgroup=Function start=/dow(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
341 syn region stataFunc matchgroup=Function start=/doy(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
342 syn region stataFunc matchgroup=Function start=/halfyear(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
343 syn region stataFunc matchgroup=Function start=/mdy(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
344 syn region stataFunc matchgroup=Function start=/month(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
345 syn region stataFunc matchgroup=Function start=/quarter(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
346 syn region stataFunc matchgroup=Function start=/week(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
347 syn region stataFunc matchgroup=Function start=/year(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
348 " Time-series
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
349 syn region stataFunc matchgroup=Function start=/daily(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
350 syn region stataFunc matchgroup=Function start=/halfyearly(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
351 syn region stataFunc matchgroup=Function start=/monthly(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
352 syn region stataFunc matchgroup=Function start=/quarterly(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
353 syn region stataFunc matchgroup=Function start=/weekly(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
354 syn region stataFunc matchgroup=Function start=/yearly(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
355 "
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
356 syn region stataFunc matchgroup=Function start=/yh(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
357 syn region stataFunc matchgroup=Function start=/ym(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
358 syn region stataFunc matchgroup=Function start=/yq(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
359 syn region stataFunc matchgroup=Function start=/yw(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
360 "
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
361 syn region stataFunc matchgroup=Function start=/d(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
362 syn region stataFunc matchgroup=Function start=/h(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
363 syn region stataFunc matchgroup=Function start=/m(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
364 syn region stataFunc matchgroup=Function start=/q(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
365 syn region stataFunc matchgroup=Function start=/w(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
366 syn region stataFunc matchgroup=Function start=/y(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
367 "
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
368 syn region stataFunc matchgroup=Function start=/dofd(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
369 syn region stataFunc matchgroup=Function start=/dofh(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
370 syn region stataFunc matchgroup=Function start=/dofm(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
371 syn region stataFunc matchgroup=Function start=/dofq(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
372 syn region stataFunc matchgroup=Function start=/dofw(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
373 syn region stataFunc matchgroup=Function start=/dofy(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
374 syn region stataFunc matchgroup=Function start=/hofd(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
375 syn region stataFunc matchgroup=Function start=/mofd(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
376 syn region stataFunc matchgroup=Function start=/qofd(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
377 syn region stataFunc matchgroup=Function start=/wofd(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
378 syn region stataFunc matchgroup=Function start=/yofd(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
379 "
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
380 syn region stataFunc matchgroup=Function start=/tin(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
381 syn region stataFunc matchgroup=Function start=/twithin(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
382 " Matrix
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
383 syn region stataFunc matchgroup=Function start=/colnumb(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
384 syn region stataFunc matchgroup=Function start=/colsof(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
385 syn region stataFunc matchgroup=Function start=/det(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
386 syn region stataFunc matchgroup=Function start=/diag0cnt(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
387 syn region stataFunc matchgroup=Function start=/el(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
388 syn region stataFunc matchgroup=Function start=/issymmetric(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
389 syn region stataFunc matchgroup=Function start=/matmissing(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
390 syn region stataFunc matchgroup=Function start=/mreldif(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
391 syn region stataFunc matchgroup=Function start=/rownumb(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
392 syn region stataFunc matchgroup=Function start=/rowsof(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
393 syn region stataFunc matchgroup=Function start=/trace(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
394 "
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
395 syn region stataFunc matchgroup=Function start=/cholsky(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
396 syn region stataFunc matchgroup=Function start=/corr(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
397 syn region stataFunc matchgroup=Function start=/diag(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
398 syn region stataFunc matchgroup=Function start=/get(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
399 syn region stataFunc matchgroup=Function start=/hadamard(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
400 syn region stataFunc matchgroup=Function start=/I(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
401 syn region stataFunc matchgroup=Function start=/inv(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
402 syn region stataFunc matchgroup=Function start=/invsym(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
403 syn region stataFunc matchgroup=Function start=/J(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
404 syn region stataFunc matchgroup=Function start=/matuniform(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
405 syn region stataFunc matchgroup=Function start=/nullmat(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
406 syn region stataFunc matchgroup=Function start=/sweep(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
407 syn region stataFunc matchgroup=Function start=/vec(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
408 syn region stataFunc matchgroup=Function start=/vecdiag(/ end=/)/ contains=@stataFuncGroup
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
409
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
410 " Errors to catch
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
411 " taken from $VIMRUNTIME/syntax/c.vim
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
412 " catch errors caused by wrong parenthesis, braces and brackets
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
413 syn region stataParen transparent start=/(/ end=/)/ contains=ALLBUT,@stataParenGroup,stataErrInBracket,stataErrInBrace
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
414 syn region stataBracket transparent start=/\[/ end=/]/ contains=ALLBUT,@stataParenGroup,stataErrInParen,stataErrInBrace
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
415 syn region stataBrace transparent start=/{/ end=/}/ contains=ALLBUT,@stataParenGroup,stataErrInParen,stataErrInBracket
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
416 syn match stataParenError /[\])}]/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
417 syn match stataBracketError /]/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
418 syn match stataBraceError /}/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
419 syn match stataErrInParen contained /[\]{}]/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
420 syn match stataErrInBracket contained /[){}]/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
421 syn match stataErrInBrace contained /[)\]]/
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
422
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
423 " assign highlight groups
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
424 hi def link stataBraceError stataError
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
425 hi def link stataBracketError stataError
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
426 hi def link stataErrInBrace stataError
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
427 hi def link stataErrInBracket stataError
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
428 hi def link stataErrInParen stataError
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
429 hi def link stataEString stataString
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
430 hi def link stataFormat stataSpecial
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
431 hi def link stataGlobal stataMacro
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
432 hi def link stataLocal stataMacro
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
433 hi def link stataParenError stataError
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
434 hi def link stataSlashComment stataComment
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
435 hi def link stataStarComment stataComment
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
436
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
437 hi def link stataCommand Define
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
438 hi def link stataComment Comment
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
439 hi def link stataConditional Conditional
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
440 hi def link stataError Error
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
441 hi def link stataFunc None
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
442 hi def link stataMacro Define
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
443 hi def link stataRepeat Repeat
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
444 hi def link stataSpecial SpecialChar
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
445 hi def link stataString String
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
446
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
447 let b:current_syntax = "stata"
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
448
f24a95dae8ee updated for version 7.0d05
vimboss
parents:
diff changeset
449 " vim: ts=8