annotate runtime/syntax/stata.vim @ 4793:66e849c4558a v7.3.1143

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