tm-grammars 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/NOTICE +6565 -0
- package/README.md +211 -0
- package/grammars/abap.json +380 -0
- package/grammars/actionscript-3.json +951 -0
- package/grammars/ada.json +3874 -0
- package/grammars/apache.json +562 -0
- package/grammars/apex.json +3203 -0
- package/grammars/apl.json +1479 -0
- package/grammars/applescript.json +1406 -0
- package/grammars/ara.json +428 -0
- package/grammars/asm.json +1741 -0
- package/grammars/astro.json +776 -0
- package/grammars/awk.json +388 -0
- package/grammars/ballerina.json +3768 -0
- package/grammars/bat.json +783 -0
- package/grammars/beancount.json +831 -0
- package/grammars/berry.json +172 -0
- package/grammars/bibtex.json +315 -0
- package/grammars/bicep.json +239 -0
- package/grammars/blade.json +3870 -0
- package/grammars/c.json +3552 -0
- package/grammars/cadence.json +738 -0
- package/grammars/clarity.json +877 -0
- package/grammars/clojure.json +426 -0
- package/grammars/cmake.json +143 -0
- package/grammars/cobol.json +1124 -0
- package/grammars/codeql.json +1540 -0
- package/grammars/coffee.json +1311 -0
- package/grammars/cpp-macro.json +9498 -0
- package/grammars/cpp.json +16635 -0
- package/grammars/crystal.json +1866 -0
- package/grammars/csharp.json +5722 -0
- package/grammars/css.json +1860 -0
- package/grammars/csv.json +46 -0
- package/grammars/cue.json +1128 -0
- package/grammars/cypher.json +353 -0
- package/grammars/d.json +3185 -0
- package/grammars/dart.json +522 -0
- package/grammars/dax.json +185 -0
- package/grammars/diff.json +155 -0
- package/grammars/docker.json +97 -0
- package/grammars/dream-maker.json +640 -0
- package/grammars/elixir.json +1014 -0
- package/grammars/elm.json +751 -0
- package/grammars/erb.json +156 -0
- package/grammars/erlang.json +1757 -0
- package/grammars/fish.json +189 -0
- package/grammars/fsharp.json +1831 -0
- package/grammars/gdresource.json +290 -0
- package/grammars/gdscript.json +969 -0
- package/grammars/gdshader.json +405 -0
- package/grammars/gherkin.json +133 -0
- package/grammars/git-commit.json +85 -0
- package/grammars/git-rebase.json +56 -0
- package/grammars/glimmer-js.json +98 -0
- package/grammars/glimmer-ts.json +98 -0
- package/grammars/glsl.json +57 -0
- package/grammars/gnuplot.json +892 -0
- package/grammars/go.json +1012 -0
- package/grammars/graphql.json +1295 -0
- package/grammars/groovy.json +1378 -0
- package/grammars/hack.json +2650 -0
- package/grammars/haml.json +598 -0
- package/grammars/handlebars.json +848 -0
- package/grammars/haskell.json +2431 -0
- package/grammars/hcl.json +787 -0
- package/grammars/hjson.json +821 -0
- package/grammars/hlsl.json +212 -0
- package/grammars/html.json +93 -0
- package/grammars/imba.json +2696 -0
- package/grammars/ini.json +108 -0
- package/grammars/java.json +1885 -0
- package/grammars/javascript.json +5984 -0
- package/grammars/jinja-html.json +16 -0
- package/grammars/jinja.json +345 -0
- package/grammars/jison.json +715 -0
- package/grammars/jsdoc.json +21 -0
- package/grammars/json.json +208 -0
- package/grammars/json5.json +244 -0
- package/grammars/jsonc.json +208 -0
- package/grammars/jsonl.json +208 -0
- package/grammars/jsonnet.json +211 -0
- package/grammars/jssm.json +159 -0
- package/grammars/jsx.json +5984 -0
- package/grammars/julia.json +1061 -0
- package/grammars/kotlin.json +580 -0
- package/grammars/kusto.json +687 -0
- package/grammars/latex.json +2395 -0
- package/grammars/less.json +5012 -0
- package/grammars/liquid.json +990 -0
- package/grammars/lisp.json +121 -0
- package/grammars/logo.json +55 -0
- package/grammars/lua.json +956 -0
- package/grammars/make.json +629 -0
- package/grammars/markdown.json +3066 -0
- package/grammars/marko.json +1344 -0
- package/grammars/matlab.json +1131 -0
- package/grammars/mdc.json +571 -0
- package/grammars/mdx.json +5629 -0
- package/grammars/mermaid.json +1382 -0
- package/grammars/mojo.json +4153 -0
- package/grammars/narrat.json +227 -0
- package/grammars/nextflow.json +298 -0
- package/grammars/nginx.json +2121 -0
- package/grammars/nim.json +1522 -0
- package/grammars/nix.json +1200 -0
- package/grammars/nushell.json +1047 -0
- package/grammars/objective-c.json +3750 -0
- package/grammars/objective-cpp.json +7242 -0
- package/grammars/ocaml.json +2967 -0
- package/grammars/pascal.json +154 -0
- package/grammars/perl.json +2971 -0
- package/grammars/php.json +4024 -0
- package/grammars/plsql.json +241 -0
- package/grammars/postcss.json +377 -0
- package/grammars/powerquery.json +349 -0
- package/grammars/powershell.json +1024 -0
- package/grammars/prisma.json +443 -0
- package/grammars/prolog.json +298 -0
- package/grammars/proto.json +507 -0
- package/grammars/pug.json +1033 -0
- package/grammars/puppet.json +777 -0
- package/grammars/purescript.json +871 -0
- package/grammars/python.json +4208 -0
- package/grammars/r.json +637 -0
- package/grammars/raku.json +310 -0
- package/grammars/razor.json +1813 -0
- package/grammars/reg.json +136 -0
- package/grammars/rel.json +200 -0
- package/grammars/riscv.json +298 -0
- package/grammars/rst.json +734 -0
- package/grammars/ruby.json +2769 -0
- package/grammars/rust.json +1171 -0
- package/grammars/sas.json +302 -0
- package/grammars/sass.json +618 -0
- package/grammars/scala.json +1313 -0
- package/grammars/scheme.json +384 -0
- package/grammars/scss.json +1874 -0
- package/grammars/shaderlab.json +199 -0
- package/grammars/shellscript.json +2025 -0
- package/grammars/shellsession.json +33 -0
- package/grammars/smalltalk.json +235 -0
- package/grammars/solidity.json +1210 -0
- package/grammars/sparql.json +45 -0
- package/grammars/splunk.json +91 -0
- package/grammars/sql.json +631 -0
- package/grammars/ssh-config.json +88 -0
- package/grammars/stata.json +3050 -0
- package/grammars/stylus.json +1208 -0
- package/grammars/svelte.json +1171 -0
- package/grammars/swift.json +4203 -0
- package/grammars/system-verilog.json +1063 -0
- package/grammars/tasl.json +292 -0
- package/grammars/tcl.json +291 -0
- package/grammars/tex.json +281 -0
- package/grammars/toml.json +431 -0
- package/grammars/tsx.json +5984 -0
- package/grammars/turtle.json +261 -0
- package/grammars/twig.json +1394 -0
- package/grammars/typescript.json +5735 -0
- package/grammars/v.json +1001 -0
- package/grammars/vb.json +232 -0
- package/grammars/verilog.json +305 -0
- package/grammars/vhdl.json +1484 -0
- package/grammars/viml.json +445 -0
- package/grammars/vue-html.json +559 -0
- package/grammars/vue.json +1237 -0
- package/grammars/vyper.json +5415 -0
- package/grammars/wasm.json +831 -0
- package/grammars/wenyan.json +129 -0
- package/grammars/wgsl.json +391 -0
- package/grammars/wolfram.json +2370 -0
- package/grammars/xml.json +382 -0
- package/grammars/xsl.json +89 -0
- package/grammars/yaml.json +616 -0
- package/grammars/zenscript.json +257 -0
- package/grammars/zig.json +312 -0
- package/index.d.ts +18 -0
- package/index.js +2165 -0
- package/package.json +46 -0
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "SAS",
|
|
3
|
+
"fileTypes": [
|
|
4
|
+
"sas"
|
|
5
|
+
],
|
|
6
|
+
"foldingStartMarker": "(?i:(proc|data|%macro).*;$)",
|
|
7
|
+
"foldingStopMarker": "(?i:(run|quit|%mend)\\s?);",
|
|
8
|
+
"name": "sas",
|
|
9
|
+
"patterns": [
|
|
10
|
+
{
|
|
11
|
+
"include": "#starComment"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"include": "#blockComment"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"include": "#macro"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"include": "#constant"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"include": "#quote"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"include": "#operator"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"begin": "\\b(?i:(data))\\s+",
|
|
30
|
+
"beginCaptures": {
|
|
31
|
+
"1": {
|
|
32
|
+
"name": "keyword.other.sas"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"comment": "Begins a DATA step and provides names for any output SAS data sets, views, or programs.",
|
|
36
|
+
"end": "(;)",
|
|
37
|
+
"patterns": [
|
|
38
|
+
{
|
|
39
|
+
"include": "#blockComment"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"include": "#dataSet"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"captures": {
|
|
46
|
+
"1": {
|
|
47
|
+
"name": "keyword.other.sas"
|
|
48
|
+
},
|
|
49
|
+
"2": {
|
|
50
|
+
"name": "keyword.other.sas"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"match": "(?i:(?:(stack|pgm|view|source)\\s?=\\s?)|(debug|nesting|nolist))"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"begin": "\\b(?i:(set|update|modify|merge))\\s+",
|
|
59
|
+
"beginCaptures": {
|
|
60
|
+
"1": {
|
|
61
|
+
"name": "support.function.sas"
|
|
62
|
+
},
|
|
63
|
+
"2": {
|
|
64
|
+
"name": "entity.name.class.sas"
|
|
65
|
+
},
|
|
66
|
+
"3": {
|
|
67
|
+
"name": "entity.name.class.sas"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"comment": "DATA set File-Handling Statements for DATA step",
|
|
71
|
+
"end": "(;)",
|
|
72
|
+
"patterns": [
|
|
73
|
+
{
|
|
74
|
+
"include": "#blockComment"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"include": "#dataSet"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"match": "(?i:\\b(if|while|until|for|do|end|then|else|run|quit|cancel|options)\\b)",
|
|
83
|
+
"name": "keyword.control.sas"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"captures": {
|
|
87
|
+
"1": {
|
|
88
|
+
"name": "support.class.sas"
|
|
89
|
+
},
|
|
90
|
+
"3": {
|
|
91
|
+
"name": "entity.name.function.sas"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"match": "(?i:(%(bquote|do|else|end|eval|global|goto|if|inc|include|index|input|length|let|list|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qscan|qsysfunc|quote|run|scan|str|substr|syscall|sysevalf|sysexec|sysfunc|sysrc|then|to|unquote|upcase|until|while|window)\\b))\\s*(\\w*)",
|
|
95
|
+
"name": "keyword.other.sas"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"begin": "(?i:\\b(proc\\s*(sql))\\b)",
|
|
99
|
+
"beginCaptures": {
|
|
100
|
+
"1": {
|
|
101
|
+
"name": "support.function.sas"
|
|
102
|
+
},
|
|
103
|
+
"2": {
|
|
104
|
+
"name": "support.class.sas"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"comment": "Looks like for this to work there must be a *name* as well as the patterns/include bit.",
|
|
108
|
+
"end": "(?i:\\b(quit)\\s*;)",
|
|
109
|
+
"endCaptures": {
|
|
110
|
+
"1": {
|
|
111
|
+
"name": "keyword.control.sas"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"name": "meta.sql.sas",
|
|
115
|
+
"patterns": [
|
|
116
|
+
{
|
|
117
|
+
"include": "#starComment"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"include": "#blockComment"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"include": "source.sql"
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"match": "(?i:\\b(by|label|format)\\b)",
|
|
129
|
+
"name": "keyword.datastep.sas"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"captures": {
|
|
133
|
+
"1": {
|
|
134
|
+
"name": "support.function.sas"
|
|
135
|
+
},
|
|
136
|
+
"2": {
|
|
137
|
+
"name": "support.class.sas"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"match": "(?i:\\b(proc (\\w+))\\b)",
|
|
141
|
+
"name": "meta.function-call.sas"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"match": "(?i:\\b(_n_|_error_)\\b)",
|
|
145
|
+
"name": "variable.language.sas"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"captures": {
|
|
149
|
+
"1": {
|
|
150
|
+
"name": "support.class.sas"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"match": "\\b(?i:(_all_|_character_|_cmd_|_freq_|_i_|_infile_|_last_|_msg_|_null_|_numeric_|_temporary_|_type_|abort|abs|addr|adjrsq|airy|alpha|alter|altlog|altprint|and|arcos|array|arsin|as|atan|attrc|attrib|attrn|authserver|autoexec|awscontrol|awsdef|awsmenu|awsmenumerge|awstitle|backward|band|base|betainv|between|blocksize|blshift|bnot|bor|brshift|bufno|bufsize|bxor|by|byerr|byline|byte|calculated|call|cards|cards4|case|catcache|cbufno|cdf|ceil|center|cexist|change|chisq|cinv|class|cleanup|close|cnonct|cntllev|coalesce|codegen|col|collate|collin|column|comamid|comaux1|comaux2|comdef|compbl|compound|compress|config|continue|convert|cos|cosh|cpuid|create|cross|crosstab|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|datalines|datalines4|date|datejul|datepart|datetime|day|dbcslang|dbcstype|dclose|ddm|delete|delimiter|depdb|depdbsl|depsl|depsyd|deptab|dequote|descending|descript|design=|device|dflang|dhms|dif|digamma|dim|dinfo|display|distinct|dkricond|dkrocond|dlm|dnum|do|dopen|doptname|doptnum|dread|drop|dropnote|dsname|dsnferr|echo|else|emaildlg|emailid|emailpw|emailserver|emailsys|encrypt|end|endsas|engine|eof|eov|erf|erfc|error|errorcheck|errors|exist|exp|fappend|fclose|fcol|fdelete|feedback|fetch|fetchobs|fexist|fget|file|fileclose|fileexist|filefmt|filename|fileref|filevar|finfo|finv|fipname|fipnamel|fipstate|first|firstobs|floor|fmterr|fmtsearch|fnonct|fnote|font|fontalias|footnote[1-9]?|fopen|foptname|foptnum|force|formatted|formchar|formdelim|formdlim|forward|fpoint|fpos|fput|fread|frewind|frlen|from|fsep|full|fullstimer|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|go|goto|group|gwindow|hbar|hbound|helpenv|helploc|hms|honorappearance|hosthelp|hostprint|hour|hpct|html|hvar|ibessel|ibr|id|if|index|indexc|indexw|infile|informat|initcmd|initstmt|inner|input|inputc|inputn|inr|insert|int|intck|intnx|into|intrr|invaliddata|irr|is|jbessel|join|juldate|keep|kentb|kurtosis|label|lag|last|lbound|leave|left|length|levels|lgamma|lib|libname|library|libref|line|linesize|link|list|log|log10|log2|logpdf|logpmf|logsdf|lostcard|lowcase|lrecl|ls|macro|macrogen|maps|mautosource|max|maxdec|maxr|mdy|mean|measures|median|memtype|merge|merror|min|minute|missing|missover|mlogic|mod|mode|model|modify|month|mopen|mort|mprint|mrecall|msglevel|msymtabmax|mvarsize|myy|n|nest|netpv|new|news|nmiss|no|nobatch|nobs|nocaps|nocardimage|nocenter|nocharcode|nocmdmac|nocol|nocum|nodate|nodbcs|nodetails|nodmr|nodms|nodmsbatch|nodup|nodupkey|noduplicates|noechoauto|noequals|noerrorabend|noexitwindows|nofullstimer|noicon|noimplmac|noint|nolist|noloadlist|nomiss|nomlogic|nomprint|nomrecall|nomsgcase|nomstored|nomultenvappl|nonotes|nonumber|noobs|noovp|nopad|nopercent|noprint|noprintinit|normal|norow|norsasuser|nosetinit|nosource|nosource2|nosplash|nosymbolgen|note|notes|notitle|notitles|notsorted|noverbose|noxsync|noxwait|npv|null|number|numkeys|nummousekeys|nway|obs|ods|on|open|option|order|ordinal|otherwise|out|outer|outp=|output|over|ovp|p(1|5|10|25|50|75|90|95|99)|pad|pad2|page|pageno|pagesize|paired|parm|parmcards|path|pathdll|pathname|pdf|peek|peekc|pfkey|pmf|point|poisson|poke|position|printer|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probsig|probt|procleave|project|prt|propcase|prxmatch|prxparse|prxchange|prxposn|ps|put|putc|putn|pw|pwreq|qtr|quote|r|ranbin|rancau|ranexp|rangam|range|ranks|rannor|ranpoi|rantbl|rantri|ranuni|read|recfm|register|regr|remote|remove|rename|repeat|replace|resolve|retain|return|reuse|reverse|rewind|right|round|rsquare|rtf|rtrace|rtraceloc|s|s2|samploc|sasautos|sascontrol|sasfrscr|sashelp|sasmsg|sasmstore|sasscript|sasuser|saving|scan|sdf|second|select|selection|separated|seq|serror|set|setcomm|setot|sign|simple|sin|sinh|siteinfo|skewness|skip|sle|sls|sortedby|sortpgm|sortseq|sortsize|soundex|source2|spedis|splashlocation|split|spool|sqrt|start|std|stderr|stdin|stfips|stimer|stname|stnamel|stop|stopover|strip|subgroup|subpopn|substr|sum|sumwgt|symbol|symbolgen|symget|symput|sysget|sysin|sysleave|sysmsg|sysparm|sysprint|sysprintfont|sysprod|sysrc|system|t|table|tables|tan|tanh|tapeclose|tbufsize|terminal|test|then|time|timepart|tinv|title[1-9]?|tnonct|to|today|tol|tooldef|totper|transformout|translate|trantab|tranwrd|trigamma|trim|trimn|trunc|truncover|type|unformatted|uniform|union|until|upcase|update|user|usericon|uss|validate|value|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vnferr|vtype|vtypex|weekday|weight|when|where|while|wincharset|window|work|workinit|workterm|write|wsum|wsumx|x|xsync|xwait|year|yearcutoff|yes|yyq|zipfips|zipname|zipnamel|zipstate))\\b",
|
|
154
|
+
"name": "support.function.sas"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"repository": {
|
|
158
|
+
"blockComment": {
|
|
159
|
+
"patterns": [
|
|
160
|
+
{
|
|
161
|
+
"begin": "\\/\\*",
|
|
162
|
+
"end": "\\*\\/",
|
|
163
|
+
"name": "comment.block.slashstar.sas"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"constant": {
|
|
168
|
+
"patterns": [
|
|
169
|
+
{
|
|
170
|
+
"comment": "numeric constant",
|
|
171
|
+
"match": "(?<![&\\}])\\b[0-9]*\\.?[0-9]+([eEdD][-+]?[0-9]+)?\\b",
|
|
172
|
+
"name": "constant.numeric.sas"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"comment": "single quote numeric-type constant",
|
|
176
|
+
"match": "(')([^']+)(')(dt|[dt])",
|
|
177
|
+
"name": "constant.numeric.quote.single.sas"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"comment": "double quote numeric-type constant",
|
|
181
|
+
"match": "(\")([^\"]+)(\")(dt|[dt])",
|
|
182
|
+
"name": "constant.numeric.quote.double.sas"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
"dataSet": {
|
|
187
|
+
"patterns": [
|
|
188
|
+
{
|
|
189
|
+
"begin": "((\\w+)\\.)?(\\w+)\\s?\\(",
|
|
190
|
+
"beginCaptures": {
|
|
191
|
+
"2": {
|
|
192
|
+
"name": "entity.name.class.libref.sas"
|
|
193
|
+
},
|
|
194
|
+
"3": {
|
|
195
|
+
"name": "entity.name.class.dsname.sas"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"comment": "data set with options",
|
|
199
|
+
"end": "\\)",
|
|
200
|
+
"patterns": [
|
|
201
|
+
{
|
|
202
|
+
"include": "#dataSetOptions"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"include": "#blockComment"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"include": "#macro"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"include": "#constant"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"include": "#quote"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"include": "#operator"
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"captures": {
|
|
223
|
+
"2": {
|
|
224
|
+
"name": "entity.name.class.libref.sas"
|
|
225
|
+
},
|
|
226
|
+
"3": {
|
|
227
|
+
"name": "entity.name.class.dsname.sas"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"comment": "data set without options",
|
|
231
|
+
"match": "\\b((\\w+)\\.)?(\\w+)\\b"
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
"dataSetOptions": {
|
|
236
|
+
"patterns": [
|
|
237
|
+
{
|
|
238
|
+
"match": "(?<=\\s|\\(|\\))(?i:ALTER|BUFNO|BUFSIZE|CNTLLEV|COMPRESS|DLDMGACTION|ENCRYPT|ENCRYPTKEY|EXTENDOBSCOUNTER|GENMAX|GENNUM|INDEX|LABEL|OBSBUF|OUTREP|PW|PWREQ|READ|REPEMPTY|REPLACE|REUSE|ROLE|SORTEDBY|SPILL|TOBSNO|TYPE|WRITE|FILECLOSE|FIRSTOBS|IN|OBS|POINTOBS|WHERE|WHEREUP|IDXNAME|IDXWHERE|DROP|KEEP|RENAME)\\s?=",
|
|
239
|
+
"name": "keyword.other.sas"
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"macro": {
|
|
244
|
+
"patterns": [
|
|
245
|
+
{
|
|
246
|
+
"match": "(&+(?i:[a-z_]([a-z0-9_]+)?)(\\.+)?)\\b",
|
|
247
|
+
"name": "variable.other.macro.sas"
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
"operator": {
|
|
252
|
+
"patterns": [
|
|
253
|
+
{
|
|
254
|
+
"match": "([\\+\\-\\*\\^\\/])",
|
|
255
|
+
"name": "keyword.operator.arithmetic.sas"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"match": "\\b(?i:(eq|ne|gt|lt|ge|le|in|not|&|and|or|min|max))\\b",
|
|
259
|
+
"name": "keyword.operator.comparison.sas"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"match": "([¬<>^~]?=(:)?|>|<|\\||!|¦|¬|^|~|<>|><|\\|\\|)",
|
|
263
|
+
"name": "keyword.operator.sas"
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
"quote": {
|
|
268
|
+
"patterns": [
|
|
269
|
+
{
|
|
270
|
+
"begin": "(?<!%)(')",
|
|
271
|
+
"comment": "single quoted string block",
|
|
272
|
+
"end": "(')([bx])?",
|
|
273
|
+
"name": "string.quoted.single.sas"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"begin": "(\")",
|
|
277
|
+
"comment": "double quoted string block",
|
|
278
|
+
"end": "(\")([bx])?",
|
|
279
|
+
"name": "string.quoted.double.sas"
|
|
280
|
+
}
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
"starComment": {
|
|
284
|
+
"patterns": [
|
|
285
|
+
{
|
|
286
|
+
"include": "#blockcomment"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"begin": "(?<=;)[\\s%]*\\*",
|
|
290
|
+
"end": ";",
|
|
291
|
+
"name": "comment.line.inline.star.sas"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"begin": "^[\\s%]*\\*",
|
|
295
|
+
"end": ";",
|
|
296
|
+
"name": "comment.line.start.sas"
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"scopeName": "source.sas"
|
|
302
|
+
}
|