github-linguist 7.1.3 → 7.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +5 -5
  2. data/grammars/annotation.liquidhaskell.haskell.json +119 -4
  3. data/grammars/etc.json +148 -0
  4. data/grammars/hint.haskell.json +119 -4
  5. data/grammars/hint.message.haskell.json +119 -4
  6. data/grammars/hint.type.haskell.json +119 -4
  7. data/grammars/injections.etc.json +21 -0
  8. data/grammars/source.abap.json +2 -2
  9. data/grammars/source.ats.json +87 -17
  10. data/grammars/source.ballerina.json +236 -313
  11. data/grammars/source.batchfile.json +1 -1
  12. data/grammars/source.bdf.json +14 -8
  13. data/grammars/source.changelogs.rpm-spec.json +3 -3
  14. data/grammars/source.chapel.json +1 -1
  15. data/grammars/source.coffee.json +98 -0
  16. data/grammars/source.csound-document.json +26 -124
  17. data/grammars/source.curlrc.json +180 -0
  18. data/grammars/source.dart.json +5 -2
  19. data/grammars/source.elixir.json +20 -25
  20. data/grammars/source.emacs.lisp.json +23 -1
  21. data/grammars/source.gdb.json +1 -1
  22. data/grammars/source.gitattributes.json +111 -0
  23. data/grammars/source.gitconfig.json +450 -0
  24. data/grammars/source.gitignore.json +140 -0
  25. data/grammars/source.graphql.json +18 -0
  26. data/grammars/source.haproxy-config.json +10 -10
  27. data/grammars/source.haskell.json +119 -4
  28. data/grammars/source.hgignore.json +34 -0
  29. data/grammars/source.hsig.json +119 -4
  30. data/grammars/source.hx.json +2 -2
  31. data/grammars/source.jison.json +1 -1
  32. data/grammars/source.ltspice.symbol.json +294 -0
  33. data/grammars/source.m4.json +187 -0
  34. data/grammars/source.man-conf.json +141 -0
  35. data/grammars/source.nanorc.json +330 -0
  36. data/grammars/source.nim.comment.json +82 -0
  37. data/grammars/source.nim.json +1 -57
  38. data/grammars/source.nix.json +2 -2
  39. data/grammars/source.opts.json +98 -0
  40. data/grammars/source.reason.json +13 -0
  41. data/grammars/source.rust.json +35 -0
  42. data/grammars/source.terraform.json +4 -1
  43. data/grammars/source.ts.json +307 -39
  44. data/grammars/source.tsx.json +290 -37
  45. data/grammars/source.zig.json +286 -0
  46. data/grammars/text.html.basic.json +1 -1
  47. data/grammars/text.marko.json +61 -9
  48. data/grammars/text.tex.latex.haskell.json +119 -4
  49. data/grammars/text.zone_file.json +2 -2
  50. data/grammars/version +1 -1
  51. data/lib/linguist/VERSION +1 -1
  52. data/lib/linguist/generated.rb +0 -8
  53. data/lib/linguist/heuristics.yml +30 -3
  54. data/lib/linguist/languages.json +1 -1
  55. data/lib/linguist/languages.yml +143 -3
  56. data/lib/linguist/samples.json +4494 -646
  57. data/lib/linguist/vendor.yml +1 -2
  58. metadata +31 -4
  59. data/grammars/source.solidity.json +0 -189
@@ -283,7 +283,7 @@
283
283
  "patterns": [
284
284
  {
285
285
  "name": "keyword.command.batchfile",
286
- "match": "(?\u003c=^|[\\s@])(?i:adprep|append|arp|assoc|at|atmadm|attrib|auditpol|autochk|autoconv|autofmt|bcdboot|bcdedit|bdehdcfg|bitsadmin|bootcfg|brea|cacls|cd|certreq|certutil|change|chcp|chdir|chglogon|chgport|chgusr|chkdsk|chkntfs|choice|cipher|clip|cls|clscluadmin|cluster|cmd|cmdkey|cmstp|color|comp|compact|convert|copy|cprofile|cscript|csvde|date|dcdiag|dcgpofix|dcpromo|defra|del|dfscmd|dfsdiag|dfsrmig|diantz|dir|dirquota|diskcomp|diskcopy|diskpart|diskperf|diskraid|diskshadow|dispdiag|doin|dnscmd|doskey|driverquery|dsacls|dsadd|dsamain|dsdbutil|dsget|dsmgmt|dsmod|dsmove|dsquery|dsrm|edit|endlocal|eraseesentutl|eventcreate|eventquery|eventtriggers|evntcmd|expand|extract|fc|filescrn|find|findstr|finger|flattemp|fonde|forfiles|format|freedisk|fsutil|ftp|ftype|fveupdate|getmac|gettype|gpfixup|gpresult|gpupdate|graftabl|hashgen|hep|helpctr|hostname|icacls|iisreset|inuse|ipconfig|ipxroute|irftp|ismserv|jetpack|klist|ksetup|ktmutil|ktpass|label|ldifd|ldp|lodctr|logman|logoff|lpq|lpr|macfile|makecab|manage-bde|mapadmin|md|mkdir|mklink|mmc|mode|more|mount|mountvol|move|mqbup|mqsvc|mqtgsvc|msdt|msg|msiexec|msinfo32|mstsc|nbtstat|net computer|net group|net localgroup|net print|net session|net share|net start|net stop|net use|net user|net view|net|netcfg|netdiag|netdom|netsh|netstat|nfsadmin|nfsshare|nfsstat|nlb|nlbmgr|nltest|nslookup|ntackup|ntcmdprompt|ntdsutil|ntfrsutl|openfiles|pagefileconfig|path|pathping|pause|pbadmin|pentnt|perfmon|ping|pnpunatten|pnputil|popd|powercfg|powershell|powershell_ise|print|prncnfg|prndrvr|prnjobs|prnmngr|prnport|prnqctl|prompt|pubprn|pushd|pushprinterconnections|pwlauncher|qappsrv|qprocess|query|quser|qwinsta|rasdial|rcp|rd|rdpsign|regentc|recover|redircmp|redirusr|reg|regini|regsvr32|relog|ren|rename|rendom|repadmin|repair-bde|replace|reset session|rxec|risetup|rmdir|robocopy|route|rpcinfo|rpcping|rsh|runas|rundll32|rwinsta|sc|schtasks|scwcmd|secedit|serverceipoptin|servrmanagercmd|serverweroptin|setspn|setx|sfc|shadow|shift|showmount|shutdown|sort|start|storrept|subst|sxstrace|ysocmgr|systeminfo|takeown|tapicfg|taskkill|tasklist|tcmsetup|telnet|tftp|time|timeout|title|tlntadmn|tpmvscmgr|tpmvscmgr|tacerpt|tracert|tree|tscon|tsdiscon|tsecimp|tskill|tsprof|type|typeperf|tzutil|uddiconfig|umount|unlodctr|ver|verifier|verif|vol|vssadmin|w32tm|waitfor|wbadmin|wdsutil|wecutil|wevtutil|where|whoami|winnt|winnt32|winpop|winrm|winrs|winsat|wlbs|mic|wscript|xcopy)(?=$|\\s)"
286
+ "match": "(?\u003c=^|[\\s@])(?i:adprep|append|arp|assoc|at|atmadm|attrib|auditpol|autochk|autoconv|autofmt|bcdboot|bcdedit|bdehdcfg|bitsadmin|bootcfg|brea|cacls|cd|certreq|certutil|change|chcp|chdir|chglogon|chgport|chgusr|chkdsk|chkntfs|choice|cipher|clip|cls|clscluadmin|cluster|cmd|cmdkey|cmstp|color|comp|compact|convert|copy|cprofile|cscript|csvde|date|dcdiag|dcgpofix|dcpromo|defra|del|dfscmd|dfsdiag|dfsrmig|diantz|dir|dirquota|diskcomp|diskcopy|diskpart|diskperf|diskraid|diskshadow|dispdiag|doin|dnscmd|doskey|driverquery|dsacls|dsadd|dsamain|dsdbutil|dsget|dsmgmt|dsmod|dsmove|dsquery|dsrm|edit|endlocal|eraseesentutl|eventcreate|eventquery|eventtriggers|evntcmd|expand|extract|fc|filescrn|find|findstr|finger|flattemp|fonde|forfiles|format|freedisk|fsutil|ftp|ftype|fveupdate|getmac|gettype|gpfixup|gpresult|gpupdate|graftabl|hashgen|hep|helpctr|hostname|icacls|iisreset|inuse|ipconfig|ipxroute|irftp|ismserv|jetpack|klist|ksetup|ktmutil|ktpass|label|ldifd|ldp|lodctr|logman|logoff|lpq|lpr|macfile|makecab|manage-bde|mapadmin|md|mkdir|mklink|mmc|mode|more|mount|mountvol|move|mqbup|mqsvc|mqtgsvc|msdt|msg|msiexec|msinfo32|mstsc|nbtstat|net computer|net group|net localgroup|net print|net session|net share|net start|net stop|net use|net user|net view|net|netcfg|netdiag|netdom|netsh|netstat|nfsadmin|nfsshare|nfsstat|nlb|nlbmgr|nltest|nslookup|ntackup|ntcmdprompt|ntdsutil|ntfrsutl|openfiles|pagefileconfig|path|pathping|pause|pbadmin|pentnt|perfmon|ping|pnpunatten|pnputil|popd|powercfg|powershell|powershell_ise|print|prncnfg|prndrvr|prnjobs|prnmngr|prnport|prnqctl|prompt|pubprn|pushd|pushprinterconnections|pwlauncher|qappsrv|qprocess|query|quser|qwinsta|rasdial|rcp|rd|rdpsign|regentc|recover|redircmp|redirusr|reg|regini|regsvr32|relog|ren|rename|rendom|repadmin|repair-bde|replace|reset session|rxec|risetup|rmdir|robocopy|route|rpcinfo|rpcping|rsh|runas|rundll32|rwinsta|scp|sc|schtasks|scwcmd|secedit|serverceipoptin|servrmanagercmd|serverweroptin|setspn|setx|sfc|shadow|shift|showmount|shutdown|sort|ssh|start|storrept|subst|sxstrace|ysocmgr|systeminfo|takeown|tapicfg|taskkill|tasklist|tcmsetup|telnet|tftp|time|timeout|title|tlntadmn|tpmvscmgr|tpmvscmgr|tacerpt|tracert|tree|tscon|tsdiscon|tsecimp|tskill|tsprof|type|typeperf|tzutil|uddiconfig|umount|unlodctr|ver|verifier|verif|vol|vssadmin|w32tm|waitfor|wbadmin|wdsutil|wecutil|wevtutil|where|whoami|winnt|winnt32|winpop|winrm|winrs|winsat|wlbs|mic|wscript|xcopy)(?=$|\\s)"
287
287
  },
288
288
  {
289
289
  "begin": "(?i)(?\u003c=^|[\\s@])(echo)(?:(?=$|\\.|:)|\\s+(?:(on|off)(?=\\s*$))?)",
@@ -7,6 +7,16 @@
7
7
  }
8
8
  ],
9
9
  "repository": {
10
+ "comment": {
11
+ "contentName": "comment.line.bdf",
12
+ "begin": "^COMMENT(?=\\s|$)",
13
+ "end": "$",
14
+ "beginCaptures": {
15
+ "0": {
16
+ "name": "keyword.operator.start-comment.bdf"
17
+ }
18
+ }
19
+ },
10
20
  "eof": {
11
21
  "match": "^(ENDFONT)\\s*$",
12
22
  "captures": {
@@ -21,14 +31,7 @@
21
31
  "end": "^(?=CHARS\\b|ENDFONT\\b)",
22
32
  "patterns": [
23
33
  {
24
- "contentName": "comment.line.bdf",
25
- "begin": "^COMMENT(?=\\s|$)",
26
- "end": "$",
27
- "beginCaptures": {
28
- "0": {
29
- "name": "keyword.operator.start-comment.bdf"
30
- }
31
- }
34
+ "include": "#comment"
32
35
  },
33
36
  {
34
37
  "name": "meta.content-version.bdf",
@@ -271,6 +274,9 @@
271
274
  },
272
275
  "main": {
273
276
  "patterns": [
277
+ {
278
+ "include": "#comment"
279
+ },
274
280
  {
275
281
  "include": "#globalInfo"
276
282
  },
@@ -15,7 +15,7 @@
15
15
  }
16
16
  },
17
17
  {
18
- "match": "^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]{3}[ ]+\\d+ \\d+:\\d+:\\d+ [A-Z]+ \\d{4}) - (.*) (\u003c.*@.*\u003e) ([#_a-zA-Z0-9.-]+)$",
18
+ "match": "^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]{3}[ ]+\\d+ \\d+:\\d+:\\d+ [A-Z]+ \\d{4}) - (.*) (\u003c.*\u003e) ([#_a-zA-Z0-9.-]+)$",
19
19
  "captures": {
20
20
  "1": {
21
21
  "name": "constant.changelogs"
@@ -32,7 +32,7 @@
32
32
  }
33
33
  },
34
34
  {
35
- "match": "^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]{3}[ ]+\\d+(?: \\d+:\\d+:\\d+ [A-Z]+)? \\d{4}) (.*) (\u003c.+@.+\u003e)(?: -)? ([#a-zA-Z0-9.-]+)?$",
35
+ "match": "^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]{3}[ ]+\\d+(?: \\d+:\\d+:\\d+ [A-Z]+)? \\d{4}) (.*) (\u003c.*\u003e)(?: -)? ([#a-zA-Z0-9.-]+)?$",
36
36
  "captures": {
37
37
  "1": {
38
38
  "name": "constant.changelogs"
@@ -49,7 +49,7 @@
49
49
  }
50
50
  },
51
51
  {
52
- "match": "^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]{3}[ ]+\\d+(?: \\d+:\\d+:\\d+ [A-Z]+)? \\d{4}) (.*) (\u003c.*@.*\u003e)(?: -) (.*)$",
52
+ "match": "^(?:\\* )?([a-zA-Z]{3} [a-zA-Z]{3}[ ]+\\d+(?: \\d+:\\d+:\\d+ [A-Z]+)? \\d{4}) (.*) (\u003c.*\u003e)(?: -) (.*)$",
53
53
  "captures": {
54
54
  "1": {
55
55
  "name": "constant.changelogs"
@@ -23,7 +23,7 @@
23
23
  },
24
24
  {
25
25
  "name": "constant.numeric.chapel",
26
- "match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"
26
+ "match": "\\b((0(b|B)[0-1]([0-1]|_)*)|(0(o|O)[0-7]([0-7]|_)*)|(0(x|X)((([0-9a-fA-F]([0-9a-fA-F]|_)*\\.?([0-9a-fA-F]([0-9a-fA-F]|_)*)?)|(\\.[0-9a-fA-F]([0-9a-fA-F]|_)*))((p|P)(\\+|-)?[0-9]([0-9]|_)*)?))|(0(x|X)[0-9a-fA-F]([0-9a-fA-F]|_)*)|((([0-9]([0-9]|_)*\\.?([0-9]([0-9]|_)*)?)|(\\.[0-9]([0-9]|_)*))((e|E)(\\+|-)?[0-9]([0-9]|_)*)?))\\b"
27
27
  },
28
28
  {
29
29
  "name": "variable.language.chapel",
@@ -2,6 +2,9 @@
2
2
  "name": "CoffeeScript",
3
3
  "scopeName": "source.coffee",
4
4
  "patterns": [
5
+ {
6
+ "include": "#jsx"
7
+ },
5
8
  {
6
9
  "name": "meta.class.instance.constructor.coffee",
7
10
  "match": "(new)\\s+(?:(?:(class)\\s+(\\w+(?:\\.\\w*)*)?)|(\\w+(?:\\.\\w*)*))",
@@ -857,6 +860,101 @@
857
860
  }
858
861
  ]
859
862
  },
863
+ "jsx": {
864
+ "patterns": [
865
+ {
866
+ "include": "#jsx-tag"
867
+ },
868
+ {
869
+ "include": "#jsx-end-tag"
870
+ }
871
+ ]
872
+ },
873
+ "jsx-attribute": {
874
+ "patterns": [
875
+ {
876
+ "match": "(?:^|\\s+)([-\\w.]+)\\s*(=)",
877
+ "captures": {
878
+ "1": {
879
+ "name": "entity.other.attribute-name.coffee"
880
+ },
881
+ "2": {
882
+ "name": "keyword.operator.assignment.coffee"
883
+ }
884
+ }
885
+ },
886
+ {
887
+ "include": "#double_quoted_string"
888
+ },
889
+ {
890
+ "include": "#single_quoted_string"
891
+ },
892
+ {
893
+ "include": "#jsx-expression"
894
+ }
895
+ ]
896
+ },
897
+ "jsx-end-tag": {
898
+ "patterns": [
899
+ {
900
+ "name": "meta.tag.coffee",
901
+ "begin": "(\u003c/)([-\\w\\.]+)",
902
+ "end": "(/?\u003e)",
903
+ "beginCaptures": {
904
+ "1": {
905
+ "name": "punctuation.definition.tag.coffee"
906
+ },
907
+ "2": {
908
+ "name": "entity.name.tag.coffee"
909
+ }
910
+ }
911
+ }
912
+ ]
913
+ },
914
+ "jsx-expression": {
915
+ "begin": "{",
916
+ "end": "}",
917
+ "patterns": [
918
+ {
919
+ "include": "#double_quoted_string"
920
+ },
921
+ {
922
+ "include": "$self"
923
+ }
924
+ ],
925
+ "beginCaptures": {
926
+ "0": {
927
+ "name": "meta.brace.curly.coffee"
928
+ }
929
+ },
930
+ "endCaptures": {
931
+ "0": {
932
+ "name": "meta.brace.curly.coffee"
933
+ }
934
+ }
935
+ },
936
+ "jsx-tag": {
937
+ "patterns": [
938
+ {
939
+ "name": "meta.tag.coffee",
940
+ "begin": "(\u003c)([-\\w\\.]+)",
941
+ "end": "(/?\u003e)",
942
+ "patterns": [
943
+ {
944
+ "include": "#jsx-attribute"
945
+ }
946
+ ],
947
+ "beginCaptures": {
948
+ "1": {
949
+ "name": "punctuation.definition.tag.coffee"
950
+ },
951
+ "2": {
952
+ "name": "entity.name.tag.coffee"
953
+ }
954
+ }
955
+ }
956
+ ]
957
+ },
860
958
  "method_calls": {
861
959
  "patterns": [
862
960
  {
@@ -7,7 +7,6 @@
7
7
  "end": "(\u003c/)(CsoundSynthesi[sz]er)(\u003e)",
8
8
  "patterns": [
9
9
  {
10
- "name": "meta.orchestra.csound-document",
11
10
  "begin": "(\u003c)(CsOptions)(\u003e)",
12
11
  "end": "(\u003c/)(CsOptions)(\u003e)",
13
12
  "patterns": [
@@ -20,18 +19,18 @@
20
19
  "name": "punctuation.definition.tag.begin.csound-document"
21
20
  },
22
21
  "2": {
23
- "name": "entity.name.tag.begin.csound-document"
22
+ "name": "entity.name.tag.csound-document"
24
23
  },
25
24
  "3": {
26
- "name": "punctuation.definition.tag.begin.csound-document"
25
+ "name": "punctuation.definition.tag.end.csound-document"
27
26
  }
28
27
  },
29
28
  "endCaptures": {
30
29
  "1": {
31
- "name": "punctuation.definition.tag.end.csound-document"
30
+ "name": "punctuation.definition.tag.begin.csound-document"
32
31
  },
33
32
  "2": {
34
- "name": "entity.name.tag.end.csound-document"
33
+ "name": "entity.name.tag.csound-document"
35
34
  },
36
35
  "3": {
37
36
  "name": "punctuation.definition.tag.end.csound-document"
@@ -53,18 +52,18 @@
53
52
  "name": "punctuation.definition.tag.begin.csound-document"
54
53
  },
55
54
  "2": {
56
- "name": "entity.name.tag.begin.csound-document"
55
+ "name": "entity.name.tag.csound-document"
57
56
  },
58
57
  "3": {
59
- "name": "punctuation.definition.tag.begin.csound-document"
58
+ "name": "punctuation.definition.tag.end.csound-document"
60
59
  }
61
60
  },
62
61
  "endCaptures": {
63
62
  "1": {
64
- "name": "punctuation.definition.tag.end.csound-document"
63
+ "name": "punctuation.definition.tag.begin.csound-document"
65
64
  },
66
65
  "2": {
67
- "name": "entity.name.tag.end.csound-document"
66
+ "name": "entity.name.tag.csound-document"
68
67
  },
69
68
  "3": {
70
69
  "name": "punctuation.definition.tag.end.csound-document"
@@ -86,18 +85,18 @@
86
85
  "name": "punctuation.definition.tag.begin.csound-document"
87
86
  },
88
87
  "2": {
89
- "name": "entity.name.tag.begin.csound-document"
88
+ "name": "entity.name.tag.csound-document"
90
89
  },
91
90
  "3": {
92
- "name": "punctuation.definition.tag.begin.csound-document"
91
+ "name": "punctuation.definition.tag.end.csound-document"
93
92
  }
94
93
  },
95
94
  "endCaptures": {
96
95
  "1": {
97
- "name": "punctuation.definition.tag.end.csound-document"
96
+ "name": "punctuation.definition.tag.begin.csound-document"
98
97
  },
99
98
  "2": {
100
- "name": "entity.name.tag.end.csound-document"
99
+ "name": "entity.name.tag.csound-document"
101
100
  },
102
101
  "3": {
103
102
  "name": "punctuation.definition.tag.end.csound-document"
@@ -106,8 +105,8 @@
106
105
  },
107
106
  {
108
107
  "name": "meta.html.csound-document",
109
- "begin": "(?=\u003c[hH][tT][mM][lL])",
110
- "end": "(?\u003c=\u003c/[hH][tT][mM][lL]\u003e)",
108
+ "begin": "(?i)(?=\u003chtml)",
109
+ "end": "(?i)(?\u003c=\u003c/html\u003e)",
111
110
  "patterns": [
112
111
  {
113
112
  "include": "text.html.basic"
@@ -123,111 +122,18 @@
123
122
  "name": "punctuation.definition.tag.begin.csound-document"
124
123
  },
125
124
  "2": {
126
- "name": "entity.name.tag.begin.csound-document"
127
- },
128
- "3": {
129
- "name": "punctuation.definition.tag.begin.csound-document"
130
- }
131
- },
132
- "endCaptures": {
133
- "1": {
134
- "name": "punctuation.definition.tag.end.csound-document"
135
- },
136
- "2": {
137
- "name": "entity.name.tag.end.csound-document"
125
+ "name": "entity.name.tag.csound-document"
138
126
  },
139
127
  "3": {
140
128
  "name": "punctuation.definition.tag.end.csound-document"
141
129
  }
142
- }
143
- },
144
- {
145
- "name": "meta.cabbage-gui.csound-document",
146
- "begin": "(\u003c)(Cabbage)(\u003e)",
147
- "end": "(\u003c/)(Cabbage)(\u003e)",
148
- "patterns": [
149
- {
150
- "name": "comment.line.cabbage-gui.csound-document",
151
- "begin": ";",
152
- "end": "$",
153
- "beginCaptures": {
154
- "0": {
155
- "name": "punctuation.definition.comment.line.cabbage-gui.csound-document"
156
- }
157
- }
158
- },
159
- {
160
- "include": "source.csound#macroUses"
161
- },
162
- {
163
- "include": "source.csound#preprocessorDirectives"
164
- },
165
- {
166
- "include": "source.csound#floatingPointNumbers"
167
- },
168
- {
169
- "include": "source.csound#decimalNumbers"
170
- },
171
- {
172
- "name": "string.quoted.cabbage-gui.csound-document",
173
- "begin": "\"",
174
- "end": "\"",
175
- "patterns": [
176
- {
177
- "include": "source.csound#macroUses"
178
- }
179
- ],
180
- "beginCaptures": {
181
- "0": {
182
- "name": "punctuation.definition.string.begin.cabbage-gui.csound-document"
183
- }
184
- },
185
- "endCaptures": {
186
- "0": {
187
- "name": "punctuation.definition.string.end.cabbage-gui.csound-document"
188
- }
189
- }
190
- },
191
- {
192
- "match": "^[ \t]*(?i:(button|checkbox|combobox|encoder|hrange|hslider|numberbox|rslider|vrange|vslider|xypad|csoundoutput|filebutton|form|gentable|groupbox|hostbpm|hostplaying|hostppqpos|hosttime|image|infobutton|keyboard|label|line|loadbutton|signaldisplay|socketreceive|socketsend|soundfiler|source|stepper|textbox|texteditor)|(hslider2|hslider3|vslider2|vslider3|directorylist|fftdisplay|hostrecording|listbox|multitab|patmatrix|popupmenu|pvsview|recordbutton|snapshot|sourcebutton|table|transport))\\b",
193
- "captures": {
194
- "1": {
195
- "name": "keyword.widget-type.cabbage-gui.csound-document"
196
- },
197
- "2": {
198
- "name": "invalid.deprecated.cabbage-gui.csound-document"
199
- }
200
- }
201
- },
202
- {
203
- "match": "\\b(?i:(active|address|align|alpha|amprange|arrowbackgroundcolour|arrowcolour|backgroundcolor|backgroundcolour|ballcolour|blacknotecolour|bounds|caption|channel|channelarray|channels|channeltype|color:0|color:1|color|colour:0|colour:1|colour|corners|displaytype|file|fill|fontcolor:0|fontcolor:1|fontcolor|fontcolour:0|fontcolour:1|fontcolour|fontstyle|guirefresh|highlightcolour|identchannel|imgdebug|imgfile|imgpath|items|keywidth|kind|latched|linethickness|max|menucolor|middlec|min|mode|noteseparatorcolour|numberofsteps|outlinecolor|outlinecolour|outlinethickness|plant|pluginid|populate|popup|popuptext|pos|radiogroup|range|rangex|rangey|refreshfiles|rescale|rotate|samplerange|scrubberposition|shape|show|signalvariable|size|sliderincr|tablebackgroundcolour|tablecolor|tablecolour|tablegridcolor|tablegridcolour|tablenumber|tablenumbers|text|textbox|textcolor|textcolour|titlebarcolour|trackercolor|trackercolour|trackerthickness|updaterate|value|valuetextbox|velocity|visible|whitenotecolour|widgetarray|wrap|zoom)|(bold|ffttablenumber|gradient|logger|scalex|scaley|scroll|scrollbars|tablebackgroundcolor))\\b",
204
- "captures": {
205
- "1": {
206
- "name": "support.function.widget-identifier.cabbage-gui.csound-document"
207
- },
208
- "2": {
209
- "name": "invalid.deprecated.cabbage-gui.csound-document"
210
- }
211
- }
212
- }
213
- ],
214
- "beginCaptures": {
215
- "1": {
216
- "name": "punctuation.definition.tag.begin.csound-document"
217
- },
218
- "2": {
219
- "name": "entity.name.tag.begin.csound-document"
220
- },
221
- "3": {
222
- "name": "punctuation.definition.tag.begin.csound-document"
223
- }
224
130
  },
225
131
  "endCaptures": {
226
132
  "1": {
227
- "name": "punctuation.definition.tag.end.csound-document"
133
+ "name": "punctuation.definition.tag.begin.csound-document"
228
134
  },
229
135
  "2": {
230
- "name": "entity.name.tag.end.csound-document"
136
+ "name": "entity.name.tag.csound-document"
231
137
  },
232
138
  "3": {
233
139
  "name": "punctuation.definition.tag.end.csound-document"
@@ -242,27 +148,23 @@
242
148
  "tags": {
243
149
  "patterns": [
244
150
  {
245
- "begin": "(\u003c)([0-9A-Za-z:-]+)(\u003e)",
246
- "end": "(\u003c/)([0-9A-Za-z:-]+)(\u003e)",
151
+ "begin": "(\u003c/?)([\\w:-]+)",
152
+ "end": "\u003e",
153
+ "patterns": [
154
+ {
155
+ "include": "text.xml#tagStuff"
156
+ }
157
+ ],
247
158
  "beginCaptures": {
248
159
  "1": {
249
160
  "name": "punctuation.definition.tag.begin.csound-document"
250
161
  },
251
162
  "2": {
252
- "name": "entity.name.tag.begin.csound-document"
253
- },
254
- "3": {
255
- "name": "punctuation.definition.tag.begin.csound-document"
163
+ "name": "entity.name.tag.csound-document"
256
164
  }
257
165
  },
258
166
  "endCaptures": {
259
- "1": {
260
- "name": "punctuation.definition.tag.end.csound-document"
261
- },
262
- "2": {
263
- "name": "entity.name.tag.end.csound-document"
264
- },
265
- "3": {
167
+ "0": {
266
168
  "name": "punctuation.definition.tag.end.csound-document"
267
169
  }
268
170
  }
@@ -0,0 +1,180 @@
1
+ {
2
+ "name": ".curlrc",
3
+ "scopeName": "source.curlrc",
4
+ "patterns": [
5
+ {
6
+ "include": "#main"
7
+ }
8
+ ],
9
+ "repository": {
10
+ "comment": {
11
+ "name": "comment.line.number-sign.curlrc",
12
+ "begin": "^#",
13
+ "end": "$",
14
+ "beginCaptures": {
15
+ "0": {
16
+ "name": "punctuation.definition.comment.curlrc"
17
+ }
18
+ }
19
+ },
20
+ "cookieField": {
21
+ "name": "meta.cookie.curlrc",
22
+ "match": "([^\\s=;]+)(=)([^\\s=;]*)(;)?",
23
+ "captures": {
24
+ "1": {
25
+ "name": "variable.assignment.cookie.name.curlrc"
26
+ },
27
+ "2": {
28
+ "patterns": [
29
+ {
30
+ "include": "etc#eql"
31
+ }
32
+ ]
33
+ },
34
+ "3": {
35
+ "name": "constant.other.cookie.value.curlrc"
36
+ }
37
+ }
38
+ },
39
+ "main": {
40
+ "patterns": [
41
+ {
42
+ "include": "#comment"
43
+ },
44
+ {
45
+ "include": "#shortOptions"
46
+ }
47
+ ]
48
+ },
49
+ "separators": {
50
+ "patterns": [
51
+ {
52
+ "include": "etc#eql"
53
+ },
54
+ {
55
+ "include": "etc#colon"
56
+ }
57
+ ]
58
+ },
59
+ "shortOptions": {
60
+ "patterns": [
61
+ {
62
+ "match": "^(-)?([:#012346aBfgGhiIjJklLMnNOpqQRsSvV])(?=\\s|$)",
63
+ "captures": {
64
+ "1": {
65
+ "name": "punctuation.definition.dash.short.option.curlrc"
66
+ },
67
+ "2": {
68
+ "name": "entity.short.option.name.curlrc"
69
+ }
70
+ }
71
+ },
72
+ {
73
+ "name": "meta.option.$2.curlrc",
74
+ "begin": "^(-)?([cDdKoT])(\\s*=|\\s*:|\\s+)",
75
+ "end": "$",
76
+ "patterns": [
77
+ {
78
+ "include": "#string"
79
+ },
80
+ {
81
+ "include": "etc#bareword"
82
+ }
83
+ ],
84
+ "beginCaptures": {
85
+ "1": {
86
+ "name": "punctuation.definition.dash.short.option.curlrc"
87
+ },
88
+ "2": {
89
+ "name": "entity.short.option.name.curlrc"
90
+ },
91
+ "3": {
92
+ "patterns": [
93
+ {
94
+ "include": "#separators"
95
+ }
96
+ ]
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "name": "meta.option.$2.curlrc",
102
+ "begin": "^(-)?(b)(\\s*=|\\s*:|\\s+)",
103
+ "end": "$",
104
+ "patterns": [
105
+ {
106
+ "name": "string.quoted.double.cookie-data.curlrc",
107
+ "begin": "\"(?=[^\"=]*=)",
108
+ "end": "\"|(?=$)",
109
+ "patterns": [
110
+ {
111
+ "include": "#cookieField"
112
+ },
113
+ {
114
+ "include": "etc#bareword"
115
+ }
116
+ ],
117
+ "beginCaptures": {
118
+ "0": {
119
+ "name": "punctuation.definition.string.begin.curlrc"
120
+ }
121
+ },
122
+ "endCaptures": {
123
+ "0": {
124
+ "name": "punctuation.definition.string.end.curlrc"
125
+ }
126
+ }
127
+ },
128
+ {
129
+ "include": "#cookieField"
130
+ },
131
+ {
132
+ "include": "etc#bareword"
133
+ }
134
+ ],
135
+ "beginCaptures": {
136
+ "1": {
137
+ "name": "punctuation.definition.dash.short.option.curlrc"
138
+ },
139
+ "2": {
140
+ "name": "entity.short.option.name.curlrc"
141
+ },
142
+ "3": {
143
+ "patterns": [
144
+ {
145
+ "include": "#separators"
146
+ }
147
+ ]
148
+ }
149
+ }
150
+ }
151
+ ]
152
+ },
153
+ "string": {
154
+ "name": "string.quoted.double.curlrc",
155
+ "begin": "\"",
156
+ "end": "\"|(?=$)",
157
+ "patterns": [
158
+ {
159
+ "name": "constant.character.escape.backslash.curlrc",
160
+ "match": "(\\\\)[\\\\\"tnrv]",
161
+ "captures": {
162
+ "1": {
163
+ "name": "punctuation.definition.escape.backslash.gitconfig"
164
+ }
165
+ }
166
+ }
167
+ ],
168
+ "beginCaptures": {
169
+ "0": {
170
+ "name": "punctuation.definition.string.begin.curlrc"
171
+ }
172
+ },
173
+ "endCaptures": {
174
+ "0": {
175
+ "name": "punctuation.definition.string.end.curlrc"
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }