annotate runtime/syntax/sas.vim @ 10051:46763b01cd9a

commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 31 22:22:10 2016 +0200 Updated runtime files. Remove HiLink commands.
author Christian Brabandt <cb@256bit.org>
date Wed, 31 Aug 2016 22:30:08 +0200
parents 43efa4f5a8ea
children 214f228718cf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: SAS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: James Kidd <james.kidd@covance.com>
3492
3482d151136b Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
4 " Last Change: 2012 Apr 20
3482d151136b Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
5 " Corrected bug causing some keywords to appear as strings instead
3482d151136b Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
6 " 18 Jul 2008 by Paulo Tanimoto <ptanimoto@gmail.com>
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
7 " Fixed comments with * taking multiple lines.
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
8 " Fixed highlighting of macro keywords.
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
9 " Added words to cases that didn't fit anywhere.
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
10 " 02 Jun 2003
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Added highlighting for additional keywords and such;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " Attempted to match SAS default syntax colors;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " Changed syncing so it doesn't lose colors on large blocks;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Much thanks to Bob Heckel for knowledgeable tweaking.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
15 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
16 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn region sasString start=+"+ skip=+\\\\\|\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn region sasString start=+'+ skip=+\\\\\|\\"+ end=+'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " Want region from 'cards;' to ';' to be captured (Bob Heckel)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn region sasCards start="^\s*CARDS.*" end="^\s*;\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn region sasCards start="^\s*DATALINES.*" end="^\s*;\s*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match sasNumber "-\=\<\d*\.\=[0-9_]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
31 " Block comment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn region sasComment start="/\*" end="\*/" contains=sasTodo
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
33
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Ignore misleading //JCL SYNTAX... (Bob Heckel)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn region sasComment start="[^/][^/]/\*" end="\*/" contains=sasTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
37 " Previous code for comments was written by Bob Heckel
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
38 " Comments with * may take multiple lines (Paulo Tanimoto)
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
39 syn region sasComment start=";\s*\*"hs=s+1 end=";" contains=sasTodo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
41 " Comments with * starting after a semicolon (Paulo Tanimoto)
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
42 syn region sasComment start="^\s*\*" end=";" contains=sasTodo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
44 " This line defines macro variables in code. "hi def link" at end of file
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " defines the color scheme. Begin region with ampersand and end with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 " any non-word character offset by -1; put ampersand in the skip list
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 " just in case it is used to concatenate macro variable values.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " Thanks to ronald höllwarth for this fix to an intra-versioning
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " problem with this little feature
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
52 syn region sasMacroVar start="&" skip="[_&]" end="\W"he=e-1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 " I dont think specific PROCs need to be listed if use this line (Bob Heckel).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match sasProc "^\s*PROC \w\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword sasStep RUN QUIT DATA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 " Base SAS Procs - version 8.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword sasConditional DO ELSE END IF THEN UNTIL WHILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword sasStatement ABORT ARRAY ATTRIB BY CALL CARDS CARDS4 CATNAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword sasStatement CONTINUE DATALINES DATALINES4 DELETE DISPLAY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword sasStatement DM DROP ENDSAS ERROR FILE FILENAME FOOTNOTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword sasStatement FORMAT GOTO INFILE INFORMAT INPUT KEEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword sasStatement LABEL LEAVE LENGTH LIBNAME LINK LIST LOSTCARD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword sasStatement MERGE MISSING MODIFY OPTIONS OUTPUT PAGE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword sasStatement PUT REDIRECT REMOVE RENAME REPLACE RETAIN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword sasStatement RETURN SELECT SET SKIP STARTSAS STOP TITLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword sasStatement UPDATE WAITSAS WHERE WINDOW X SYSTASK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 " Keywords that are used in Proc SQL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 " I left them as statements because SAS's enhanced editor highlights
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 " them the same as normal statements used in data steps (Jim Kidd)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn keyword sasStatement ADD AND ALTER AS CASCADE CHECK CREATE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword sasStatement DELETE DESCRIBE DISTINCT DROP FOREIGN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword sasStatement FROM GROUP HAVING INDEX INSERT INTO IN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword sasStatement KEY LIKE MESSAGE MODIFY MSGTYPE NOT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword sasStatement NULL ON OR ORDER PRIMARY REFERENCES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword sasStatement RESET RESTRICT SELECT SET TABLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword sasStatement UNIQUE UPDATE VALIDATE VIEW WHERE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
86 " Match declarations have to appear one per line (Paulo Tanimoto)
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
87 syn match sasStatement "FOOTNOTE\d"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
88 syn match sasStatement "TITLE\d"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
90 " Match declarations have to appear one per line (Paulo Tanimoto)
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
91 syn match sasMacro "%BQUOTE"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
92 syn match sasMacro "%NRBQUOTE"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
93 syn match sasMacro "%CMPRES"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
94 syn match sasMacro "%QCMPRES"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
95 syn match sasMacro "%COMPSTOR"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
96 syn match sasMacro "%DATATYP"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
97 syn match sasMacro "%DISPLAY"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
98 syn match sasMacro "%DO"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
99 syn match sasMacro "%ELSE"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
100 syn match sasMacro "%END"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
101 syn match sasMacro "%EVAL"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
102 syn match sasMacro "%GLOBAL"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
103 syn match sasMacro "%GOTO"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
104 syn match sasMacro "%IF"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
105 syn match sasMacro "%INDEX"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
106 syn match sasMacro "%INPUT"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
107 syn match sasMacro "%KEYDEF"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
108 syn match sasMacro "%LABEL"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
109 syn match sasMacro "%LEFT"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
110 syn match sasMacro "%LENGTH"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
111 syn match sasMacro "%LET"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
112 syn match sasMacro "%LOCAL"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
113 syn match sasMacro "%LOWCASE"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
114 syn match sasMacro "%MACRO"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
115 syn match sasMacro "%MEND"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
116 syn match sasMacro "%NRBQUOTE"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
117 syn match sasMacro "%NRQUOTE"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
118 syn match sasMacro "%NRSTR"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
119 syn match sasMacro "%PUT"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
120 syn match sasMacro "%QCMPRES"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
121 syn match sasMacro "%QLEFT"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
122 syn match sasMacro "%QLOWCASE"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
123 syn match sasMacro "%QSCAN"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
124 syn match sasMacro "%QSUBSTR"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
125 syn match sasMacro "%QSYSFUNC"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
126 syn match sasMacro "%QTRIM"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
127 syn match sasMacro "%QUOTE"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
128 syn match sasMacro "%QUPCASE"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
129 syn match sasMacro "%SCAN"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
130 syn match sasMacro "%STR"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
131 syn match sasMacro "%SUBSTR"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
132 syn match sasMacro "%SUPERQ"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
133 syn match sasMacro "%SYSCALL"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
134 syn match sasMacro "%SYSEVALF"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
135 syn match sasMacro "%SYSEXEC"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
136 syn match sasMacro "%SYSFUNC"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
137 syn match sasMacro "%SYSGET"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
138 syn match sasMacro "%SYSLPUT"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
139 syn match sasMacro "%SYSPROD"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
140 syn match sasMacro "%SYSRC"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
141 syn match sasMacro "%SYSRPUT"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
142 syn match sasMacro "%THEN"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
143 syn match sasMacro "%TO"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
144 syn match sasMacro "%TRIM"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
145 syn match sasMacro "%UNQUOTE"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
146 syn match sasMacro "%UNTIL"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
147 syn match sasMacro "%UPCASE"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
148 syn match sasMacro "%VERIFY"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
149 syn match sasMacro "%WHILE"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
150 syn match sasMacro "%WINDOW"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 " SAS Functions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn keyword sasFunction ABS ADDR AIRY ARCOS ARSIN ATAN ATTRC ATTRN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 syn keyword sasFunction BAND BETAINV BLSHIFT BNOT BOR BRSHIFT BXOR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn keyword sasFunction BYTE CDF CEIL CEXIST CINV CLOSE CNONCT COLLATE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn keyword sasFunction COMPBL COMPOUND COMPRESS COS COSH CSS CUROBS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 syn keyword sasFunction CV DACCDB DACCDBSL DACCSL DACCSYD DACCTAB
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn keyword sasFunction DAIRY DATE DATEJUL DATEPART DATETIME DAY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 syn keyword sasFunction DCLOSE DEPDB DEPDBSL DEPDBSL DEPSL DEPSL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn keyword sasFunction DEPSYD DEPSYD DEPTAB DEPTAB DEQUOTE DHMS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn keyword sasFunction DIF DIGAMMA DIM DINFO DNUM DOPEN DOPTNAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 syn keyword sasFunction DOPTNUM DREAD DROPNOTE DSNAME ERF ERFC EXIST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 syn keyword sasFunction EXP FAPPEND FCLOSE FCOL FDELETE FETCH FETCHOBS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syn keyword sasFunction FEXIST FGET FILEEXIST FILENAME FILEREF FINFO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 syn keyword sasFunction FINV FIPNAME FIPNAMEL FIPSTATE FLOOR FNONCT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syn keyword sasFunction FNOTE FOPEN FOPTNAME FOPTNUM FPOINT FPOS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 syn keyword sasFunction FPUT FREAD FREWIND FRLEN FSEP FUZZ FWRITE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syn keyword sasFunction GAMINV GAMMA GETOPTION GETVARC GETVARN HBOUND
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 syn keyword sasFunction HMS HOSTHELP HOUR IBESSEL INDEX INDEXC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 syn keyword sasFunction INDEXW INPUT INPUTC INPUTN INT INTCK INTNX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 syn keyword sasFunction INTRR IRR JBESSEL JULDATE KURTOSIS LAG LBOUND
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 syn keyword sasFunction LEFT LENGTH LGAMMA LIBNAME LIBREF LOG LOG10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 syn keyword sasFunction LOG2 LOGPDF LOGPMF LOGSDF LOWCASE MAX MDY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 syn keyword sasFunction MEAN MIN MINUTE MOD MONTH MOPEN MORT N
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 syn keyword sasFunction NETPV NMISS NORMAL NOTE NPV OPEN ORDINAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 syn keyword sasFunction PATHNAME PDF PEEK PEEKC PMF POINT POISSON POKE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 syn keyword sasFunction PROBBETA PROBBNML PROBCHI PROBF PROBGAM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 syn keyword sasFunction PROBHYPR PROBIT PROBNEGB PROBNORM PROBT PUT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn keyword sasFunction PUTC PUTN QTR QUOTE RANBIN RANCAU RANEXP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syn keyword sasFunction RANGAM RANGE RANK RANNOR RANPOI RANTBL RANTRI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn keyword sasFunction RANUNI REPEAT RESOLVE REVERSE REWIND RIGHT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 syn keyword sasFunction ROUND SAVING SCAN SDF SECOND SIGN SIN SINH
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 syn keyword sasFunction SKEWNESS SOUNDEX SPEDIS SQRT STD STDERR STFIPS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 syn keyword sasFunction STNAME STNAMEL SUBSTR SUM SYMGET SYSGET SYSMSG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 syn keyword sasFunction SYSPROD SYSRC SYSTEM TAN TANH TIME TIMEPART
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 syn keyword sasFunction TINV TNONCT TODAY TRANSLATE TRANWRD TRIGAMMA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 syn keyword sasFunction TRIM TRIMN TRUNC UNIFORM UPCASE USS VAR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 syn keyword sasFunction VARFMT VARINFMT VARLABEL VARLEN VARNAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 syn keyword sasFunction VARNUM VARRAY VARRAYX VARTYPE VERIFY VFORMAT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 syn keyword sasFunction VFORMATD VFORMATDX VFORMATN VFORMATNX VFORMATW
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 syn keyword sasFunction VFORMATWX VFORMATX VINARRAY VINARRAYX VINFORMAT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 syn keyword sasFunction VINFORMATD VINFORMATDX VINFORMATN VINFORMATNX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 syn keyword sasFunction VINFORMATW VINFORMATWX VINFORMATX VLABEL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 syn keyword sasFunction VLABELX VLENGTH VLENGTHX VNAME VNAMEX VTYPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 syn keyword sasFunction VTYPEX WEEKDAY YEAR YYQ ZIPFIPS ZIPNAME ZIPNAMEL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 syn keyword sasFunction ZIPSTATE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 " Handy settings for using vim with log files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 syn keyword sasLogMsg NOTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 syn keyword sasWarnMsg WARNING
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 syn keyword sasErrMsg ERROR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 " Always contained in a comment (Bob Heckel)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 syn keyword sasTodo TODO TBD FIXME contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 " These don't fit anywhere else (Bob Heckel).
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 7
diff changeset
208 " Added others that were missing.
3492
3482d151136b Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1698
diff changeset
209 syn keyword sasUnderscore _ALL_ _AUTOMATIC_ _CHARACTER_ _INFILE_ _N_ _NAME_ _NULL_ _NUMERIC_ _USER_ _WEBOUT_
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 " End of SAS Functions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
214 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
217 " Default sas enhanced editor color syntax
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
218 hi sComment term=bold cterm=NONE ctermfg=Green ctermbg=Black gui=NONE guifg=DarkGreen guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
219 hi sCard term=bold cterm=NONE ctermfg=Black ctermbg=Yellow gui=NONE guifg=Black guibg=LightYellow
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
220 hi sDate_Time term=NONE cterm=bold ctermfg=Green ctermbg=Black gui=bold guifg=SeaGreen guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
221 hi sKeyword term=NONE cterm=NONE ctermfg=Blue ctermbg=Black gui=NONE guifg=Blue guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
222 hi sFmtInfmt term=NONE cterm=NONE ctermfg=LightGreen ctermbg=Black gui=NONE guifg=SeaGreen guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
223 hi sString term=NONE cterm=NONE ctermfg=Magenta ctermbg=Black gui=NONE guifg=Purple guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
224 hi sText term=NONE cterm=NONE ctermfg=White ctermbg=Black gui=bold guifg=Black guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
225 hi sNumber term=NONE cterm=bold ctermfg=Green ctermbg=Black gui=bold guifg=SeaGreen guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
226 hi sProc term=NONE cterm=bold ctermfg=Blue ctermbg=Black gui=bold guifg=Navy guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
227 hi sSection term=NONE cterm=bold ctermfg=Blue ctermbg=Black gui=bold guifg=Navy guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
228 hi mDefine term=NONE cterm=bold ctermfg=White ctermbg=Black gui=bold guifg=Black guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
229 hi mKeyword term=NONE cterm=NONE ctermfg=Blue ctermbg=Black gui=NONE guifg=Blue guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
230 hi mReference term=NONE cterm=bold ctermfg=White ctermbg=Black gui=bold guifg=Blue guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
231 hi mSection term=NONE cterm=NONE ctermfg=Blue ctermbg=Black gui=bold guifg=Navy guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
232 hi mText term=NONE cterm=NONE ctermfg=White ctermbg=Black gui=bold guifg=Black guibg=White
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 " Colors that closely match SAS log colors for default color scheme
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
235 hi lError term=NONE cterm=NONE ctermfg=Red ctermbg=Black gui=none guifg=Red guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
236 hi lWarning term=NONE cterm=NONE ctermfg=Green ctermbg=Black gui=none guifg=Green guibg=White
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
237 hi lNote term=NONE cterm=NONE ctermfg=Cyan ctermbg=Black gui=none guifg=Blue guibg=White
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
240 " Special hilighting for the SAS proc section
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
242 hi def link sasComment sComment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
243 hi def link sasConditional sKeyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
244 hi def link sasStep sSection
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
245 hi def link sasFunction sKeyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
246 hi def link sasMacro mKeyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
247 hi def link sasMacroVar NonText
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
248 hi def link sasNumber sNumber
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
249 hi def link sasStatement sKeyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
250 hi def link sasString sString
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
251 hi def link sasProc sProc
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
252 " (Bob Heckel)
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
253 hi def link sasTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
254 hi def link sasErrMsg lError
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
255 hi def link sasWarnMsg lWarning
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
256 hi def link sasLogMsg lNote
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
257 hi def link sasCards sCard
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3492
diff changeset
258 " (Bob Heckel)
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
259 hi def link sasUnderscore PreProc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 " Syncronize from beginning to keep large blocks from losing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 " syntax coloring while moving through code.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 syn sync fromstart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 let b:current_syntax = "sas"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 " vim: ts=8