github-linguist 5.0.5 → 5.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/hint.haskell.json +11 -5
  3. data/grammars/hint.message.haskell.json +11 -5
  4. data/grammars/hint.type.haskell.json +11 -5
  5. data/grammars/source.SASLog.json +1 -1
  6. data/grammars/source.clarion.json +1 -1
  7. data/grammars/source.clean.json +4 -4
  8. data/grammars/source.click.json +19 -8
  9. data/grammars/source.clojure.json +8 -6
  10. data/grammars/source.cobol.json +16 -23
  11. data/grammars/source.coffee.json +1 -1
  12. data/grammars/source.csound-document.json +0 -5
  13. data/grammars/source.csound-score.json +6 -2
  14. data/grammars/source.csound.json +77 -14
  15. data/grammars/source.css.less.json +1 -1
  16. data/grammars/source.ditroff.desc.json +379 -0
  17. data/grammars/source.ditroff.json +545 -0
  18. data/grammars/source.elixir.json +44 -2
  19. data/grammars/source.fsharp.json +20 -93
  20. data/grammars/source.haskell.json +13 -6
  21. data/grammars/source.hlsl.json +217 -0
  22. data/grammars/source.js.json +34 -16
  23. data/grammars/source.julia.json +4 -4
  24. data/grammars/source.meson.json +167 -0
  25. data/grammars/source.p4.json +117 -0
  26. data/grammars/source.perl6fe.json +101 -18
  27. data/grammars/source.python.json +7 -7
  28. data/grammars/source.quoting.perl6fe.json +101 -0
  29. data/grammars/source.regexp.extended.json +9 -5
  30. data/grammars/source.regexp.json +12 -21
  31. data/grammars/source.rust.json +33 -3
  32. data/grammars/source.sas.json +2 -2
  33. data/grammars/source.shaderlab.json +174 -0
  34. data/grammars/source.terraform.json +196 -0
  35. data/grammars/source.turing.json +1 -1
  36. data/grammars/source.viml.json +1 -1
  37. data/grammars/source.yaml.json +3 -1
  38. data/grammars/text.html.php.blade.json +10 -7
  39. data/grammars/text.restructuredtext.json +57 -6
  40. data/grammars/text.roff.json +1 -1
  41. data/grammars/text.slim.json +1 -1
  42. data/grammars/text.tex.latex.haskell.json +11 -5
  43. data/lib/linguist/documentation.yml +1 -1
  44. data/lib/linguist/heuristics.rb +8 -0
  45. data/lib/linguist/languages.json +1 -1
  46. data/lib/linguist/languages.yml +20 -2
  47. data/lib/linguist/samples.json +1253 -68
  48. data/lib/linguist/version.rb +1 -1
  49. metadata +9 -3
  50. data/grammars/source.regexp.comment.json +0 -11
@@ -1052,7 +1052,7 @@
1052
1052
  "match": "(?x)\n \\b ([[:alpha:]_]\\w*) \\s*(=)(?!=)\n",
1053
1053
  "captures": {
1054
1054
  "1": {
1055
- "name": "entity.other.inherited-class.python variable.parameter.class.python"
1055
+ "name": "variable.parameter.class.python entity.other.inherited-class.python"
1056
1056
  },
1057
1057
  "2": {
1058
1058
  "name": "keyword.operator.assignment.python"
@@ -4801,7 +4801,7 @@
4801
4801
  "end": "(\\3)|((?<!\\\\)\\n)",
4802
4802
  "beginCaptures": {
4803
4803
  "1": {
4804
- "name": "string.quoted.single.python string.interpolated.python storage.type.string.python"
4804
+ "name": "storage.type.string.python string.quoted.single.python string.interpolated.python"
4805
4805
  },
4806
4806
  "2": {
4807
4807
  "name": "invalid.illegal.prefix.python"
@@ -4842,7 +4842,7 @@
4842
4842
  "name": "invalid.illegal.prefix.python"
4843
4843
  },
4844
4844
  "2": {
4845
- "name": "string.quoted.single.python string.interpolated.python storage.type.string.python"
4845
+ "name": "storage.type.string.python string.quoted.single.python string.interpolated.python"
4846
4846
  },
4847
4847
  "3": {
4848
4848
  "name": "string.quoted.single.python punctuation.definition.string.begin.python"
@@ -4877,7 +4877,7 @@
4877
4877
  "end": "(\\2)|((?<!\\\\)\\n)",
4878
4878
  "beginCaptures": {
4879
4879
  "1": {
4880
- "name": "string.quoted.raw.single.python string.interpolated.python storage.type.string.python"
4880
+ "name": "storage.type.string.python string.quoted.raw.single.python string.interpolated.python"
4881
4881
  },
4882
4882
  "2": {
4883
4883
  "name": "string.quoted.raw.single.python punctuation.definition.string.begin.python"
@@ -5017,7 +5017,7 @@
5017
5017
  "end": "(\\3)",
5018
5018
  "beginCaptures": {
5019
5019
  "1": {
5020
- "name": "string.quoted.multi.python string.interpolated.python storage.type.string.python"
5020
+ "name": "storage.type.string.python string.quoted.multi.python string.interpolated.python"
5021
5021
  },
5022
5022
  "2": {
5023
5023
  "name": "invalid.illegal.prefix.python"
@@ -5058,7 +5058,7 @@
5058
5058
  "name": "invalid.illegal.prefix.python"
5059
5059
  },
5060
5060
  "2": {
5061
- "name": "string.quoted.multi.python string.interpolated.python storage.type.string.python"
5061
+ "name": "storage.type.string.python string.quoted.multi.python string.interpolated.python"
5062
5062
  },
5063
5063
  "3": {
5064
5064
  "name": "string.quoted.multi.python punctuation.definition.string.begin.python"
@@ -5093,7 +5093,7 @@
5093
5093
  "end": "(\\2)",
5094
5094
  "beginCaptures": {
5095
5095
  "1": {
5096
- "name": "string.quoted.raw.multi.python string.interpolated.python storage.type.string.python"
5096
+ "name": "storage.type.string.python string.quoted.raw.multi.python string.interpolated.python"
5097
5097
  },
5098
5098
  "2": {
5099
5099
  "name": "string.quoted.raw.multi.python punctuation.definition.string.begin.python"
@@ -1201,6 +1201,98 @@
1201
1201
  }
1202
1202
  ]
1203
1203
  },
1204
+ {
1205
+ "begin": "(?x) (?<=^|[\\[\\]\\s\\(\\){},;]) (Q(?:x|w|ww|v|s|a|h|f|c|b|p)?) ((?: \\s*:(?: x|exec|w|words|ww|quotewords|v|val|q|single|double| s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash| regexp|substr|trans|codes|p|path|nfkc|nfkd ) )*) \\s*(„)",
1206
+ "beginCaptures": {
1207
+ "1": {
1208
+ "name": "string.quoted.q.operator.perl6fe"
1209
+ },
1210
+ "2": {
1211
+ "name": "support.function.quote.adverb.perl6fe"
1212
+ },
1213
+ "3": {
1214
+ "name": "punctuation.definition.string.perl6fe"
1215
+ }
1216
+ },
1217
+ "end": "”|“",
1218
+ "endCaptures": {
1219
+ "0": {
1220
+ "name": "punctuation.definition.string.perl6fe"
1221
+ }
1222
+ },
1223
+ "contentName": "string.quoted.q.left_double-low-q_right_double.quote.perl6fe",
1224
+ "patterns": [
1225
+ {
1226
+ "include": "#q_left_double-low-q_right_double_string_content"
1227
+ }
1228
+ ]
1229
+ },
1230
+ {
1231
+ "begin": "(?x) (?<=^|[\\[\\]\\s\\(\\){},;]) (q(?:x|w|ww|v|s|a|h|f|c|b|p)?) ((?: \\s*:(?: x|exec|w|words|ww|quotewords|v|val|q|single|double| s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash| regexp|substr|trans|codes|p|path|nfkc|nfkd ) )*) \\s*(„)",
1232
+ "beginCaptures": {
1233
+ "1": {
1234
+ "name": "string.quoted.q.operator.perl6fe"
1235
+ },
1236
+ "2": {
1237
+ "name": "support.function.quote.adverb.perl6fe"
1238
+ },
1239
+ "3": {
1240
+ "name": "punctuation.definition.string.perl6fe"
1241
+ }
1242
+ },
1243
+ "end": "\\\\\\\\”|“|(?<!\\\\)”|“",
1244
+ "endCaptures": {
1245
+ "0": {
1246
+ "name": "punctuation.definition.string.perl6fe"
1247
+ }
1248
+ },
1249
+ "contentName": "string.quoted.q.left_double-low-q_right_double.quote.perl6fe",
1250
+ "patterns": [
1251
+ {
1252
+ "match": "\\\\„|\\\\”|“",
1253
+ "name": "constant.character.escape.perl6fe"
1254
+ },
1255
+ {
1256
+ "include": "#q_left_double-low-q_right_double_string_content"
1257
+ }
1258
+ ]
1259
+ },
1260
+ {
1261
+ "begin": "(?x) (?<=^|[\\[\\]\\s\\(\\){},;]) (qq(?:x|w|ww|v|s|a|h|f|c|b|p)?) ((?: \\s*:(?: x|exec|w|words|ww|quotewords|v|val|q|single|double| s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash| regexp|substr|trans|codes|p|path|nfkc|nfkd ) )*) \\s*(„)",
1262
+ "beginCaptures": {
1263
+ "1": {
1264
+ "name": "string.quoted.qq.operator.perl6fe"
1265
+ },
1266
+ "2": {
1267
+ "name": "support.function.quote.adverb.perl6fe"
1268
+ },
1269
+ "3": {
1270
+ "name": "punctuation.definition.string.perl6fe"
1271
+ }
1272
+ },
1273
+ "end": "\\\\\\\\”|“|(?<!\\\\)”|“",
1274
+ "endCaptures": {
1275
+ "0": {
1276
+ "name": "punctuation.definition.string.perl6fe"
1277
+ }
1278
+ },
1279
+ "contentName": "string.quoted.qq.left_double-low-q_right_double.quote.perl6fe",
1280
+ "patterns": [
1281
+ {
1282
+ "match": "\\\\„|\\\\”|“",
1283
+ "name": "constant.character.escape.perl6fe"
1284
+ },
1285
+ {
1286
+ "include": "#qq_character_escape"
1287
+ },
1288
+ {
1289
+ "include": "source.perl6fe#interpolation"
1290
+ },
1291
+ {
1292
+ "include": "#q_left_double-low-q_right_double_string_content"
1293
+ }
1294
+ ]
1295
+ },
1204
1296
  {
1205
1297
  "begin": "(?x) (?<=^|[\\[\\]\\s\\(\\){},;]) (Q(?:x|w|ww|v|s|a|h|f|c|b|p)?) ((?: \\s*:(?: x|exec|w|words|ww|quotewords|v|val|q|single|double| s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash| regexp|substr|trans|codes|p|path|nfkc|nfkd ) )*) \\s*(‘)",
1206
1298
  "beginCaptures": {
@@ -2094,6 +2186,15 @@
2094
2186
  }
2095
2187
  ]
2096
2188
  },
2189
+ "q_left_double-low-q_right_double_string_content": {
2190
+ "begin": "„",
2191
+ "end": "\\\\\\\\”|“|(?<!\\\\)”|“",
2192
+ "patterns": [
2193
+ {
2194
+ "include": "#q_left_double-low-q_right_double_string_content"
2195
+ }
2196
+ ]
2197
+ },
2097
2198
  "q_left_single_right_single_string_content": {
2098
2199
  "begin": "‘",
2099
2200
  "end": "\\\\\\\\’|(?<!\\\\)’",
@@ -4,14 +4,18 @@
4
4
  "firstLineMatch": "^\\s*\\(\\?[im]*x[im]*\\)",
5
5
  "patterns": [
6
6
  {
7
- "name": "source.regexp.extended",
8
- "begin": "\\A",
9
- "end": "(?=A)B",
7
+ "include": "source.regexp#main"
8
+ }
9
+ ],
10
+ "injections": {
11
+ "source.regexp.extended": {
10
12
  "patterns": [
11
13
  {
12
- "include": "source.regexp#main"
14
+ "begin": "(?<![^\\\\]\\\\)#",
15
+ "end": "$",
16
+ "name": "comment.line.number-sign"
13
17
  }
14
18
  ]
15
19
  }
16
- ]
20
+ }
17
21
  }
@@ -25,6 +25,9 @@
25
25
  {
26
26
  "include": "#escape"
27
27
  },
28
+ {
29
+ "include": "#wildcard"
30
+ },
28
31
  {
29
32
  "include": "#alternation"
30
33
  },
@@ -247,27 +250,8 @@
247
250
  "match": "&&"
248
251
  },
249
252
  {
250
- "name": "constant.other.character-class.range.regexp",
251
- "match": "(?x) ([^\\\\]|\\\\(?:x[0-9A-Fa-f]{2}|x\\{[0-9A-Fa-f]+\\}|\\d{3}|.)) (-) ([^\\\\]|\\\\(?:x[0-9A-Fa-f]{2}|x\\{[0-9A-Fa-f]+\\}|\\d{3}|.))",
252
- "captures": {
253
- "1": {
254
- "patterns": [
255
- {
256
- "include": "#escape"
257
- }
258
- ]
259
- },
260
- "2": {
261
- "name": "punctuation.separator.range.dash.regexp"
262
- },
263
- "3": {
264
- "patterns": [
265
- {
266
- "include": "#escape"
267
- }
268
- ]
269
- }
270
- }
253
+ "name": "punctuation.separator.range.dash.regexp",
254
+ "match": "(?<!\\G|\\\\[dwshDWSHN])-(?!\\])"
271
255
  },
272
256
  {
273
257
  "name": "constant.language.posix.$2-char.character-class.regexp",
@@ -294,6 +278,9 @@
294
278
  {
295
279
  "match": "\\^|\\$|\\(|\\)|\\["
296
280
  },
281
+ {
282
+ "include": "#escape"
283
+ },
297
284
  {
298
285
  "include": "$self"
299
286
  },
@@ -1065,6 +1052,10 @@
1065
1052
  }
1066
1053
  }
1067
1054
  ]
1055
+ },
1056
+ "wildcard": {
1057
+ "name": "constant.character.wildcard.dot.match.any.regexp",
1058
+ "match": "\\."
1068
1059
  }
1069
1060
  }
1070
1061
  }
@@ -221,6 +221,18 @@
221
221
  "patterns": [
222
222
  {
223
223
  "include": "#string_literal"
224
+ },
225
+ {
226
+ "include": "#block_doc_comment"
227
+ },
228
+ {
229
+ "include": "#block_comment"
230
+ },
231
+ {
232
+ "include": "#line_doc_comment"
233
+ },
234
+ {
235
+ "include": "#line_comment"
224
236
  }
225
237
  ]
226
238
  },
@@ -391,16 +403,34 @@
391
403
  },
392
404
  {
393
405
  "comment": "Function call",
394
- "match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(",
406
+ "match": "\\b([A-Za-z][A-Za-z0-9_]*|_[A-Za-z0-9_]+)\\s*\\(",
395
407
  "captures": {
396
408
  "1": {
397
409
  "name": "entity.name.function.rust"
398
410
  }
399
411
  }
400
412
  },
413
+ {
414
+ "comment": "Function call with type parameters",
415
+ "begin": "\\b([A-Za-z][A-Za-z0-9_]*|_[A-Za-z0-9_]+)\\s*(::)(?=\\s*<.*>\\s*\\()",
416
+ "end": "\\(",
417
+ "captures": {
418
+ "1": {
419
+ "name": "entity.name.function.rust"
420
+ },
421
+ "2": {
422
+ "name": "keyword.operator.misc.rust"
423
+ }
424
+ },
425
+ "patterns": [
426
+ {
427
+ "include": "#type_params"
428
+ }
429
+ ]
430
+ },
401
431
  {
402
432
  "comment": "Function definition",
403
- "begin": "\\b(fn)\\s+([a-zA-Z_][a-zA-Z0-9_]*)",
433
+ "begin": "\\b(fn)\\s+([A-Za-z][A-Za-z0-9_]*|_[A-Za-z0-9_]+)",
404
434
  "end": "[\\{;]",
405
435
  "beginCaptures": {
406
436
  "1": {
@@ -458,7 +488,7 @@
458
488
  },
459
489
  {
460
490
  "comment": "Function arguments",
461
- "match": "fn",
491
+ "match": "\bfn\b",
462
492
  "name": "keyword.other.fn.rust"
463
493
  }
464
494
  ]
@@ -91,7 +91,7 @@
91
91
  "name": "entity.name.function.sas"
92
92
  }
93
93
  },
94
- "match": "(?i:(%(macro|mend|do|if|then|end|while|until|goto|include)\\b))\\s*(\\w*)",
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
95
  "name": "keyword.other.sas"
96
96
  },
97
97
  {
@@ -150,7 +150,7 @@
150
150
  "name": "support.class.sas"
151
151
  }
152
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|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|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|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|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|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|prt|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|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|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|x|xsync|xwait|yearcutoff|yes|yyq|zipfips|zipname|zipnamel|zipstate))\\b",
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|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|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|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
154
  "name": "support.function.sas"
155
155
  }
156
156
  ],
@@ -0,0 +1,174 @@
1
+ {
2
+ "scopeName": "source.shaderlab",
3
+ "name": "ShaderLab",
4
+ "fileTypes": [
5
+ "shader"
6
+ ],
7
+ "patterns": [
8
+ {
9
+ "name": "comment.line.double-slash.shaderlab",
10
+ "begin": "//",
11
+ "end": "$"
12
+ },
13
+ {
14
+ "name": "support.type.basic.shaderlab",
15
+ "match": "\\b(?i:Range|Float|Int|Color|Vector|2D|3D|Cube|Any)\\b"
16
+ },
17
+ {
18
+ "include": "#numbers"
19
+ },
20
+ {
21
+ "name": "storage.type.structure.shaderlab",
22
+ "match": "\\b(?i:Shader|Properties|SubShader|Pass|Category)\\b"
23
+ },
24
+ {
25
+ "name": "support.type.propertyname.shaderlab",
26
+ "match": "\\b(?i:Name|Tags|Fallback|CustomEditor|Cull|ZWrite|ZTest|Offset|Blend|BlendOp|ColorMask|AlphaToMask|LOD|Lighting|Stencil|Ref|ReadMask|WriteMask|Comp|CompBack|CompFront|Fail|ZFail|UsePass|GrabPass|Dependency|Material|Diffuse|Ambient|Shininess|Specular|Emission|Fog|Mode|Density|SeparateSpecular|SetTexture|Combine|ConstantColor|Matrix|AlphaTest|ColorMaterial|BindChannels|Bind)\\b"
27
+ },
28
+ {
29
+ "name": "support.constant.property-value.shaderlab",
30
+ "match": "\\b(?i:Back|Front|On|Off|[RGBA]{1,3}|AmbientAndDiffuse|Emission)\\b"
31
+ },
32
+ {
33
+ "name": "support.constant.property-value.comparisonfunction.shaderlab",
34
+ "match": "\\b(?i:Less|Greater|LEqual|GEqual|Equal|NotEqual|Always|Never)\\b"
35
+ },
36
+ {
37
+ "name": "support.constant.property-value.stenciloperation.shaderlab",
38
+ "match": "\\b(?i:Keep|Zero|Replace|IncrSat|DecrSat|Invert|IncrWrap|DecrWrap)\\b"
39
+ },
40
+ {
41
+ "name": "support.constant.property-value.texturecombiners.shaderlab",
42
+ "match": "\\b(?i:Previous|Primary|Texture|Constant|Lerp|Double|Quad|Alpha)\\b"
43
+ },
44
+ {
45
+ "name": "support.constant.property-value.fog.shaderlab",
46
+ "match": "\\b(?i:Global|Linear|Exp2|Exp)\\b"
47
+ },
48
+ {
49
+ "name": "support.constant.property-value.bindchannels.shaderlab",
50
+ "match": "\\b(?i:Vertex|Normal|Tangent|TexCoord0|TexCoord1)\\b"
51
+ },
52
+ {
53
+ "name": "support.constant.property-value.blendoperations.shaderlab",
54
+ "match": "\\b(?i:Add|Sub|RevSub|Min|Max|LogicalClear|LogicalSet|LogicalCopyInverted|LogicalCopy|LogicalNoop|LogicalInvert|LogicalAnd|LogicalNand|LogicalOr|LogicalNor|LogicalXor|LogicalEquiv|LogicalAndReverse|LogicalAndInverted|LogicalOrReverse|LogicalOrInverted)\\b"
55
+ },
56
+ {
57
+ "name": "support.constant.property-value.blendfactors.shaderlab",
58
+ "match": "\\b(?i:One|Zero|SrcColor|SrcAlpha|DstColor|DstAlpha|OneMinusSrcColor|OneMinusSrcAlpha|OneMinusDstColor|OneMinusDstAlpha)\\b"
59
+ },
60
+ {
61
+ "name": "support.variable.reference.shaderlab",
62
+ "match": "\\[([a-zA-Z_][a-zA-Z0-9_]*)\\](?!\\s*[a-zA-Z_][a-zA-Z0-9_]*\\s*\\(\")"
63
+ },
64
+ {
65
+ "name": "meta.attribute.shaderlab",
66
+ "begin": "(\\[)",
67
+ "end": "(\\])",
68
+ "patterns": [
69
+ {
70
+ "name": "support.type.attributename.shaderlab",
71
+ "match": "\\G([a-zA-Z]+)\\b"
72
+ },
73
+ {
74
+ "include": "#numbers"
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "name": "support.variable.declaration.shaderlab",
80
+ "match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\("
81
+ },
82
+ {
83
+ "name": "meta.cgblock",
84
+ "begin": "\\b(CGPROGRAM|CGINCLUDE)\\b",
85
+ "beginCaptures": {
86
+ "1": {
87
+ "name": "keyword.other"
88
+ }
89
+ },
90
+ "end": "\\b(ENDCG)\\b",
91
+ "endCaptures": {
92
+ "1": {
93
+ "name": "keyword.other"
94
+ }
95
+ },
96
+ "patterns": [
97
+ {
98
+ "include": "source.hlsl"
99
+ },
100
+ {
101
+ "name": "storage.type.basic.shaderlab",
102
+ "match": "\\b(fixed([1-4](x[1-4])?)?)\\b"
103
+ },
104
+ {
105
+ "name": "support.variable.transformations.shaderlab",
106
+ "match": "\\b(UNITY_MATRIX_MVP|UNITY_MATRIX_MV|UNITY_MATRIX_V|UNITY_MATRIX_P|UNITY_MATRIX_VP|UNITY_MATRIX_T_MV|UNITY_MATRIX_IT_MV|_Object2World|_World2Object)\\b"
107
+ },
108
+ {
109
+ "name": "support.variable.camera.shaderlab",
110
+ "match": "\\b(_WorldSpaceCameraPos|_ProjectionParams|_ScreenParams|_ZBufferParams|unity_OrthoParams|unity_CameraProjection|unity_CameraInvProjection|unity_CameraWorldClipPlanes)\\b"
111
+ },
112
+ {
113
+ "name": "support.variable.time.shaderlab",
114
+ "match": "\\b(_Time|_SinTime|_CosTime|unity_DeltaTime)\\b"
115
+ },
116
+ {
117
+ "name": "support.variable.lighting.shaderlab",
118
+ "match": "\\b(_LightColor0|_WorldSpaceLightPos0|_LightMatrix0|unity_4LightPosX0|unity_4LightPosY0|unity_4LightPosZ0|unity_4LightAtten0|unity_LightColor|_LightColor|unity_LightPosition|unity_LightAtten|unity_SpotDirection)\\b"
119
+ },
120
+ {
121
+ "name": "support.variable.fog.shaderlab",
122
+ "match": "\\b(unity_AmbientSky|unity_AmbientEquator|unity_AmbientGround|UNITY_LIGHTMODEL_AMBIENT|unity_FogColor|unity_FogParams)\\b"
123
+ },
124
+ {
125
+ "name": "support.variable.various.shaderlab",
126
+ "match": "\\b(unity_LODFade)\\b"
127
+ },
128
+ {
129
+ "name": "support.variable.preprocessor.targetplatform.shaderlab",
130
+ "match": "\\b(SHADER_API_D3D9|SHADER_API_D3D11|SHADER_API_GLCORE|SHADER_API_OPENGL|SHADER_API_GLES|SHADER_API_GLES3|SHADER_API_METAL|SHADER_API_D3D11_9X|SHADER_API_PSSL|SHADER_API_XBOXONE|SHADER_API_PSP2|SHADER_API_WIIU|SHADER_API_MOBILE|SHADER_API_GLSL)\\b"
131
+ },
132
+ {
133
+ "name": "support.variable.preprocessor.targetmodel.shaderlab",
134
+ "match": "\\b(SHADER_TARGET)\\b"
135
+ },
136
+ {
137
+ "name": "support.variable.preprocessor.unityversion.shaderlab",
138
+ "match": "\\b(UNITY_VERSION)\\b"
139
+ },
140
+ {
141
+ "name": "support.variable.preprocessor.platformdifference.shaderlab",
142
+ "match": "\\b(UNITY_BRANCH|UNITY_FLATTEN|UNITY_NO_SCREENSPACE_SHADOWS|UNITY_NO_LINEAR_COLORSPACE|UNITY_NO_RGBM|UNITY_NO_DXT5nm|UNITY_FRAMEBUFFER_FETCH_AVAILABLE|UNITY_USE_RGBA_FOR_POINT_SHADOWS|UNITY_ATTEN_CHANNEL|UNITY_HALF_TEXEL_OFFSET|UNITY_UV_STARTS_AT_TOP|UNITY_MIGHT_NOT_HAVE_DEPTH_Texture|UNITY_NEAR_CLIP_VALUE|UNITY_VPOS_TYPE|UNITY_CAN_COMPILE_TESSELLATION|UNITY_COMPILER_HLSL|UNITY_COMPILER_HLSL2GLSL|UNITY_COMPILER_CG|UNITY_REVERSED_Z)\\b"
143
+ },
144
+ {
145
+ "name": "support.variable.preprocessor.texture2D.shaderlab",
146
+ "match": "\\b(UNITY_PASS_FORWARDBASE|UNITY_PASS_FORWARDADD|UNITY_PASS_DEFERRED|UNITY_PASS_SHADOWCASTER|UNITY_PASS_PREPASSBASE|UNITY_PASS_PREPASSFINAL)\\b"
147
+ },
148
+ {
149
+ "name": "support.class.structures.shaderlab",
150
+ "match": "\\b(appdata_base|appdata_tan|appdata_full|appdata_img)\\b"
151
+ },
152
+ {
153
+ "name": "support.class.surface.shaderlab",
154
+ "match": "\\b(SurfaceOutputStandardSpecular|SurfaceOutputStandard|SurfaceOutput|Input)\\b"
155
+ }
156
+ ]
157
+ },
158
+ {
159
+ "name": "string.quoted.double.shaderlab",
160
+ "begin": "\"",
161
+ "end": "\""
162
+ }
163
+ ],
164
+ "repository": {
165
+ "numbers": {
166
+ "patterns": [
167
+ {
168
+ "name": "constant.numeric.shaderlab",
169
+ "match": "\\b([0-9]+\\.?[0-9]*)\\b"
170
+ }
171
+ ]
172
+ }
173
+ }
174
+ }