github-linguist 7.2.0 → 7.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/documentation.markdown.injection.haxe.json +22 -0
- data/grammars/etc.json +7 -0
- data/grammars/file.lasso.json +3 -1
- data/grammars/source.abap.json +111 -21
- data/grammars/source.ats.json +17 -87
- data/grammars/source.ballerina.json +1 -1
- data/grammars/source.clarion.json +6 -6
- data/grammars/source.editorconfig.json +322 -0
- data/grammars/source.gfm.json +3 -1
- data/grammars/source.hx.json +1 -1
- data/grammars/source.hxml.json +4 -4
- data/grammars/source.hy.json +429 -0
- data/grammars/source.js.jsx.json +3 -1
- data/grammars/source.jsonnet.json +197 -0
- data/grammars/source.kotlin.json +23 -2
- data/grammars/source.mcfunction-snapshot.json +3053 -0
- data/grammars/source.mcfunction.json +1260 -0
- data/grammars/source.modula-3.json +1 -1
- data/grammars/source.reason.json +3 -0
- data/grammars/source.renpy.json +4 -4
- data/grammars/source.scheme.json +1 -1
- data/grammars/source.solidity.json +189 -0
- data/grammars/source.ssh-config.json +110 -0
- data/grammars/source.ts.json +6 -3
- data/grammars/source.tsx.json +6 -3
- data/grammars/source.viml.json +4 -0
- data/grammars/source.vyper.json +213 -0
- data/grammars/source.zig.json +1 -1
- data/grammars/text.conllu.json +45 -0
- data/grammars/text.html.basic.json +3 -1
- data/grammars/text.html.vue.json +6 -2
- data/grammars/text.rtf.json +143 -0
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/generated.rb +5 -5
- data/lib/linguist/heuristics.yml +12 -5
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +54 -2
- data/lib/linguist/samples.json +3151 -247
- metadata +13 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86603f44f39b23e23746df2c131546fa359a5fd0
|
4
|
+
data.tar.gz: 122a2f19f6ab8106c4e6aa562ebe4a000aae2a9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bd9189bfd2cf6644d8bff5f51e34356ecf3578c4af10831167976e5d90f3afc0fc7fbfd5c2e197829626e5586f450ab359dc0c7bcde809a72aacd57f217ee3a
|
7
|
+
data.tar.gz: d52728c646c33353c333c7e08b70bd5e1e6e6462d894f770be2f7a40e94205cc42ddb30286bdd54c8ba7132c82b1b4266e09df0c386986fa5a86bff1727967af
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"scopeName": "documentation.markdown.injection.haxe",
|
3
|
+
"patterns": [
|
4
|
+
{
|
5
|
+
"include": "#markdown-comment"
|
6
|
+
}
|
7
|
+
],
|
8
|
+
"repository": {
|
9
|
+
"markdown-comment": {
|
10
|
+
"begin": "(?\u003c=/\\*\\*)([^*]|\\*(?!/))*$",
|
11
|
+
"while": "(^|\\G)\\s*(?:\\*(?![*\\w]))?(?!\\/)(?=([^*]|[*](?!\\/))*$)",
|
12
|
+
"patterns": [
|
13
|
+
{},
|
14
|
+
{},
|
15
|
+
{
|
16
|
+
"include": "source.hx#javadoc-tags"
|
17
|
+
},
|
18
|
+
{}
|
19
|
+
]
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
data/grammars/etc.json
CHANGED
@@ -22,6 +22,9 @@
|
|
22
22
|
{
|
23
23
|
"include": "#eql"
|
24
24
|
},
|
25
|
+
{
|
26
|
+
"include": "#dot"
|
27
|
+
},
|
25
28
|
{
|
26
29
|
"include": "#bareword"
|
27
30
|
}
|
@@ -45,6 +48,10 @@
|
|
45
48
|
}
|
46
49
|
}
|
47
50
|
},
|
51
|
+
"dot": {
|
52
|
+
"name": "punctuation.delimiter.separator.property.period.dot",
|
53
|
+
"match": "\\."
|
54
|
+
},
|
48
55
|
"eql": {
|
49
56
|
"name": "keyword.operator.assignment.key-value.equals-sign",
|
50
57
|
"match": "="
|
data/grammars/file.lasso.json
CHANGED
data/grammars/source.abap.json
CHANGED
@@ -81,7 +81,7 @@
|
|
81
81
|
},
|
82
82
|
{
|
83
83
|
"name": "meta.block.begin.implementation.abap",
|
84
|
-
"begin": "(?i)^\\s*(class
|
84
|
+
"begin": "(?i)^\\s*(class)\\s([a-z_/][a-z_0-9/]*)",
|
85
85
|
"end": "\\s*\\.\\s*\\n?",
|
86
86
|
"patterns": [
|
87
87
|
{
|
@@ -108,9 +108,98 @@
|
|
108
108
|
}
|
109
109
|
}
|
110
110
|
},
|
111
|
+
{
|
112
|
+
"begin": "(?ix)^\\s*(method)\\s(?:([a-z_\\/][a-z_0-9\\/]*)~)?([a-z_\\/][a-z_0-9\\/]*)",
|
113
|
+
"end": "\\s*\\.\\s*\\n?",
|
114
|
+
"patterns": [
|
115
|
+
{
|
116
|
+
"name": "storage.modifier.method.abap",
|
117
|
+
"match": "(?ix)(?\u003c=^|\\s)(BY\\s+DATABASE(\\s+PROCEDURE|\\s+FUNCTION))(?=\\s+|\\.)"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"name": "storage.modifier.method.abap",
|
121
|
+
"match": "(?ix)(?\u003c=^|\\s)(FOR\\s+(HDB|LLANG))(?=\\s+|\\.)"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"name": "storage.modifier.method.abap",
|
125
|
+
"match": "(?ix)(?\u003c=\\s)(OPTIONS\\s+(READ-ONLY|DETERMINISTIC|SUPPRESS\\s+SYNTAX\\s+ERRORS))(?=\\s+|\\.)"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"name": "storage.modifier.method.abap",
|
129
|
+
"match": "(?ix)(?\u003c=^|\\s)(LANGUAGE\\s+SQLSCRIPT)(?=\\s+|\\.)"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"match": "(?ix)(?\u003c=\\s)(USING)\\s+([a-z_\\/][a-z_0-9\\/]*)+(?=\\s+|\\.)",
|
133
|
+
"captures": {
|
134
|
+
"1": {
|
135
|
+
"name": "storage.modifier.method.abap"
|
136
|
+
}
|
137
|
+
}
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"begin": "(?=[A-Za-z_][A-Za-z0-9_]*)",
|
141
|
+
"end": "(?![A-Za-z0-9_])",
|
142
|
+
"patterns": [
|
143
|
+
{
|
144
|
+
"include": "#generic_names"
|
145
|
+
}
|
146
|
+
]
|
147
|
+
}
|
148
|
+
],
|
149
|
+
"beginCaptures": {
|
150
|
+
"1": {
|
151
|
+
"name": "storage.type.block.abap"
|
152
|
+
},
|
153
|
+
"2": {
|
154
|
+
"name": "entity.name.type.abap"
|
155
|
+
},
|
156
|
+
"3": {
|
157
|
+
"name": "entity.name.function.abap"
|
158
|
+
}
|
159
|
+
}
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"begin": "(?ix)^\\s*(INTERFACE)\\s([a-z_\\/][a-z_0-9\\/]*)",
|
163
|
+
"end": "\\s*\\.\\s*\\n?",
|
164
|
+
"patterns": [
|
165
|
+
{
|
166
|
+
"name": "storage.modifier.method.abap",
|
167
|
+
"match": "(?ix)(?\u003c=^|\\s)(DEFERRED|PUBLIC)(?=\\s+|\\.)"
|
168
|
+
}
|
169
|
+
],
|
170
|
+
"beginCaptures": {
|
171
|
+
"1": {
|
172
|
+
"name": "storage.type.block.abap"
|
173
|
+
},
|
174
|
+
"2": {
|
175
|
+
"name": "entity.name.type.abap"
|
176
|
+
}
|
177
|
+
}
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"begin": "(?ix)^\\s*(FORM)\\s([a-z_\\/][a-z_0-9\\/]*)",
|
181
|
+
"end": "\\s*\\.\\s*\\n?",
|
182
|
+
"patterns": [
|
183
|
+
{
|
184
|
+
"name": "storage.modifier.form.abap",
|
185
|
+
"match": "(?ix)(?\u003c=^|\\s)(USING|TABLES|CHANGING)(?=\\s+|\\.)"
|
186
|
+
},
|
187
|
+
{
|
188
|
+
"include": "#abaptypes"
|
189
|
+
}
|
190
|
+
],
|
191
|
+
"beginCaptures": {
|
192
|
+
"1": {
|
193
|
+
"name": "storage.type.block.abap"
|
194
|
+
},
|
195
|
+
"2": {
|
196
|
+
"name": "entity.name.type.abap"
|
197
|
+
}
|
198
|
+
}
|
199
|
+
},
|
111
200
|
{
|
112
201
|
"name": "storage.type.block.end.abap",
|
113
|
-
"match": "(?i)(endclass|endmethod|endform)"
|
202
|
+
"match": "(?i)(endclass|endmethod|endform|endinterface)"
|
114
203
|
},
|
115
204
|
{
|
116
205
|
"name": "variable.other.field.symbol.abap",
|
@@ -125,6 +214,9 @@
|
|
125
214
|
{
|
126
215
|
"include": "#operators"
|
127
216
|
},
|
217
|
+
{
|
218
|
+
"include": "#builtin_functions"
|
219
|
+
},
|
128
220
|
{
|
129
221
|
"include": "#abaptypes"
|
130
222
|
},
|
@@ -138,20 +230,32 @@
|
|
138
230
|
"match": "(?ix)(?\u003c=\\s)(initial|null|space|abap_true|abap_false|table_line)(?=\\s|\\.|,)"
|
139
231
|
},
|
140
232
|
"abaptypes": {
|
141
|
-
"
|
142
|
-
|
233
|
+
"patterns": [
|
234
|
+
{
|
235
|
+
"name": "support.type.abap",
|
236
|
+
"match": "(?ix)\\s(abap_bool|data|string|xstring|any|clike|csequence|numeric|xsequence|c|n|i|p|f|d|t|x)(?=\\s|\\.|,)"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"name": "keyword.control.simple.abap",
|
240
|
+
"match": "(?ix)\\s(TYPE|REF|TO|STANDARD|SORTED|HASHED|INDEX|TABLE|WITH|UNIQUE|NON-UNIQUE|SECONDARY|DEFAULT|KEY)(?=\\s|\\.|,)"
|
241
|
+
}
|
242
|
+
]
|
143
243
|
},
|
144
244
|
"arithmetic_operator": {
|
145
245
|
"name": "keyword.operator.arithmetic.abap",
|
146
246
|
"match": "(?\u003c=\\s)(\\+|\\-|\\*|\\*\\*|/|%)(?=\\s)"
|
147
247
|
},
|
248
|
+
"builtin_functions": {
|
249
|
+
"name": "entity.name.function.builtin.abap",
|
250
|
+
"match": "(?ix)(?\u003c=\\s)(abs|sign|ceil|floor|trunc|frac|acos|asin|atan|cos|sin|tan|cosh|sinh|tanh|exp|log|log10|sqrt|strlen|xstrlen|charlen|lines|numofchar|dbmaxlen|round|rescale|nmax|nmin|cmax|cmin|boolc|boolx|xsdbool|contains|contains_any_of|contains_any_not_of|matches|line_exists|ipow|char_off|count|count_any_of|count_any_not_of|distance|condense|concat_lines_of|escape|find|find_end|find_any_of|find_any_not_of|insert|match|repeat|replace|reverse|segment|shift_left|shift_right|substring|substring_after|substring_from|substring_before|substring_to|to_upper|to_lower|to_mixed|from_mixed|translate|bit-set|line_index)(?=\\()"
|
251
|
+
},
|
148
252
|
"comparison_operator": {
|
149
253
|
"name": "keyword.operator.comparison.abap",
|
150
254
|
"match": "(?i)(?\u003c=\\s)(\u003c|\u003e|\u003c\\=|\u003e\\=|\\=|\u003c\u003e|eq|ne|lt|le|gt|ge|cs|cp)(?=\\s)"
|
151
255
|
},
|
152
256
|
"control_keywords": {
|
153
257
|
"name": "keyword.control.flow.abap",
|
154
|
-
"match": "(?ix)(^|\\s)(\n\t at|case|catch|continue|do|elseif|else|endat|endcase|enddo|endif|\n\t endloop|endon|if|loop|on|raise|try
|
258
|
+
"match": "(?ix)(^|\\s)(\n\t at|case|catch|continue|do|elseif|else|endat|endcase|enddo|endif|\n\t endloop|endon|if|loop|on|raise|try)(?=\\s|\\.|:)"
|
155
259
|
},
|
156
260
|
"generic_names": {
|
157
261
|
"match": "[A-Za-z_][A-Za-z0-9_]*"
|
@@ -179,23 +283,13 @@
|
|
179
283
|
},
|
180
284
|
"main_keywords": {
|
181
285
|
"name": "keyword.control.simple.abap",
|
182
|
-
"match": "(?ix)(?\u003c=^|\\s)(\n\t abstract|add|add-corresponding|adjacent|alias|aliases|all|append|appending|ascending|as|assert|assign|assigned|assigning|association|authority-check|\n\t back|begin|binary|block|bound|break-point|by|byte|\n\t call|cast|changing|check|class-data|class-method|class-methods|clear|close|cnt|collect|commit|character|\n\t corresponding|communication|component|compute|concatenate|condense|constants|conv|count|\n\t controls|convert|create|currency|\n\t data|descending|default|define|deferred|delete|describe|detail|display|divide|divide-corresponding|display-mode|duplicates|\n\t deleting|\n\t editor-call|end|endexec|endfunction|ending|
|
183
|
-
},
|
184
|
-
"math_operators": {
|
185
|
-
"name": "keyword.operator.math.abap",
|
186
|
-
"match": "(?ix)\\s(abs|sign|ceil|floor|trunc|frac|acos|asin|\n\t atan|cos|sin|tan|cosh|sinh|tanh|exp|log|log10|sqrt)\\("
|
286
|
+
"match": "(?ix)(?\u003c=^|\\s)(\n\t abstract|add|add-corresponding|adjacent|alias|aliases|all|append|appending|ascending|as|assert|assign|assigned|assigning|association|authority-check|\n\t back|begin|binary|block|bound|break-point|by|byte|\n\t call|cast|changing|check|class-data|class-method|class-methods|clear|close|cnt|collect|commit|cond|character|\n\t corresponding|communication|component|compute|concatenate|condense|constants|conv|count|\n\t controls|convert|create|currency|\n\t data|descending|default|define|deferred|delete|describe|detail|display|divide|divide-corresponding|display-mode|duplicates|\n\t deleting|\n\t editor-call|end|endexec|endfunction|ending|endmodule|end-of-definition|end-of-page|end-of-selection|end-test-injection|end-test-seam|exit-command|\n\t endprovide|endselect|endtry|endwhile|enum|event|events|exec|exit|export|\n\t exporting|extract|exception|exceptions|\n\t field-symbols|field-groups|field|first|fetch|fields|format|frame|free|from|function|find|for|function-pool|\n\t generate|get|\n\t handle|hide|hashed|\n\t include|import|importing|index|infotypes|initial|initialization|\n\t id|is|in|interface|interfaces|input|insert|into|\n\t\t\tkey|\n\t left-justified|leave|like|line|line-count|line-size|load|local|log-point|length|left|leading|lower|\n\t matchcode|method|mesh|message|message-id|methods|modify|module|move|move-corresponding|multiply|multiply-corresponding|match|\n\t\t\tnew|new-line|new-page|new-section|no|no-gap|no-gaps|no-sign|no-zero|non-unique|number|\n\t occurrence|object|obligatory|of|overlay|optional|others|occurrences|occurs|offset|options|\n\t pack|parameters|perform|places|position|print-control|private|program|protected|provide|public|put|\n\t radiobutton|raising|ranges|receive|receiving|redefinition|reference|refresh|regex|reject|results|requested|\n\t ref|replace|report|reserve|restore|result|return|returning|right-justified|rollback|read|read-only|rp-provide-from-last|run|\n\t scan|screen|scroll|search|select|select-options|selection-screen|stamp|source|subkey|\n\t separated|set|shift|single|skip|sort|sorted|split|standard|stamp|starting|start-of-selection|sum|subtract-corresponding|statics|step|stop|structure|submatches|submit|subtract|summary|supplied|suppress|section|syntax-check|syntax-trace|system-call|switch|\n\t tables|table|task|testing|test-seam|test-injection|then|time|times|title|titlebar|to|top-of-page|trailing|transfer|transformation|translate|transporting|types|type|type-pool|type-pools|\n\t unassign|unique|uline|unpack|update|upper|using|\n\t value|\n\t when|while|window|write|where|with|work|\n\t\txml)(?=\\s|\\.|:|,)"
|
187
287
|
},
|
188
288
|
"operators": {
|
189
289
|
"patterns": [
|
190
290
|
{
|
191
291
|
"include": "#other_operator"
|
192
292
|
},
|
193
|
-
{
|
194
|
-
"include": "#math_operators"
|
195
|
-
},
|
196
|
-
{
|
197
|
-
"include": "#string_operators"
|
198
|
-
},
|
199
293
|
{
|
200
294
|
"include": "#arithmetic_operator"
|
201
295
|
},
|
@@ -211,13 +305,9 @@
|
|
211
305
|
"name": "keyword.operator.other.abap",
|
212
306
|
"match": "\\s(\u0026\u0026|\\?\\=)\\s"
|
213
307
|
},
|
214
|
-
"string_operators": {
|
215
|
-
"name": "keyword.operator.string.abap",
|
216
|
-
"match": "(?ix)\\s(strlen|xstrlen|charlen|lines|numofchar|dbmaxlen)\\("
|
217
|
-
},
|
218
308
|
"system_fields": {
|
219
309
|
"name": "variable.language.abap",
|
220
|
-
"match": "(?ix)\\b(sy-)(abcde|batch|binpt|calld|callr|colno|cpage|cprog|cucol|curow|datar|datlo|datum|dayst|dbcnt|dbnam|dbsysc|dyngr|dynnr|fdayw|fdpos|host|index|langu|ldbpg|lilli|linct|linno|linsz|lisel|listi|loopc|lsind|macol|mandt|marow|modno|msgid|msgno|msgty|msgv[1-4]|opsysc|pagno|pfkey|repid|saprl|scols|slset|spono|srows|staco|staro|stepl|subrc|sysid|tabix|tcode|tfill|timlo|title|tleng|tvar[0-9]|tzone|ucomm|uline|uname|uzeit|vline|wtitl|zonlo)(?=\\.|\\s)"
|
310
|
+
"match": "(?ix)\\b(sy-)(abcde|batch|binpt|calld|callr|colno|cpage|cprog|cucol|curow|datar|datlo|datum|dayst|dbcnt|dbnam|dbsysc|dyngr|dynnr|fdayw|fdpos|host|index|langu|ldbpg|lilli|linct|linno|linsz|lisel|listi|loopc|lsind|macol|mandt|marow|modno|msgid|msgli|msgno|msgty|msgv[1-4]|opsysc|pagno|pfkey|repid|saprl|scols|slset|spono|srows|staco|staro|stepl|subrc|sysid|tabix|tcode|tfill|timlo|title|tleng|tvar[0-9]|tzone|ucomm|uline|uname|uzeit|vline|wtitl|zonlo)(?=\\.|\\s)"
|
221
311
|
}
|
222
312
|
}
|
223
313
|
}
|
data/grammars/source.ats.json
CHANGED
@@ -2,12 +2,6 @@
|
|
2
2
|
"name": "ATS",
|
3
3
|
"scopeName": "source.ats",
|
4
4
|
"patterns": [
|
5
|
-
{
|
6
|
-
"include": "#quantifier_curly"
|
7
|
-
},
|
8
|
-
{
|
9
|
-
"include": "#quantifier_square"
|
10
|
-
},
|
11
5
|
{
|
12
6
|
"include": "#block"
|
13
7
|
},
|
@@ -18,10 +12,7 @@
|
|
18
12
|
"include": "#comment_line"
|
19
13
|
},
|
20
14
|
{
|
21
|
-
"include": "#
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"include": "#comment_block_sml"
|
15
|
+
"include": "#comment_block"
|
25
16
|
},
|
26
17
|
{
|
27
18
|
"include": "#embed"
|
@@ -30,13 +21,13 @@
|
|
30
21
|
"include": "#operators"
|
31
22
|
},
|
32
23
|
{
|
33
|
-
"include": "#
|
24
|
+
"include": "#quantifier_curly"
|
34
25
|
},
|
35
26
|
{
|
36
|
-
"include": "#
|
27
|
+
"include": "#quantifier_square"
|
37
28
|
},
|
38
29
|
{
|
39
|
-
"include": "#
|
30
|
+
"include": "#quantifier_arrow"
|
40
31
|
},
|
41
32
|
{
|
42
33
|
"include": "#keywords"
|
@@ -44,9 +35,6 @@
|
|
44
35
|
{
|
45
36
|
"include": "#keywords_types"
|
46
37
|
},
|
47
|
-
{
|
48
|
-
"include": "#false_true"
|
49
|
-
},
|
50
38
|
{
|
51
39
|
"include": "#string"
|
52
40
|
},
|
@@ -61,16 +49,12 @@
|
|
61
49
|
},
|
62
50
|
{
|
63
51
|
"include": "#number"
|
64
|
-
},
|
65
|
-
{
|
66
|
-
"include": "#identifier"
|
67
52
|
}
|
68
53
|
],
|
69
54
|
"repository": {
|
70
55
|
"block": {
|
71
|
-
"
|
72
|
-
"
|
73
|
-
"end": "\\}",
|
56
|
+
"begin": "(?\u003c=where|=|^|then|else|\\$rec|\\$rec_t|\\$rec_vt)(?:\\s*){",
|
57
|
+
"end": "}",
|
74
58
|
"patterns": [
|
75
59
|
{
|
76
60
|
"include": "$self"
|
@@ -82,19 +66,13 @@
|
|
82
66
|
"name": "string.quoted.double",
|
83
67
|
"match": "(')([^\\\\]{0,1}|\\\\(\\\\|[abefpnrtv'\"?]|[0-3]\\d{0,2}|[4-7]\\d?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,8}))(')"
|
84
68
|
},
|
85
|
-
"
|
86
|
-
"name": "comment.block",
|
87
|
-
"begin": "/\\*",
|
88
|
-
"end": "\\*/",
|
89
|
-
"applyEndPatternLast": true
|
90
|
-
},
|
91
|
-
"comment_block_sml": {
|
69
|
+
"comment_block": {
|
92
70
|
"name": "comment.block",
|
93
71
|
"begin": "\\(\\*",
|
94
72
|
"end": "\\*\\)",
|
95
73
|
"patterns": [
|
96
74
|
{
|
97
|
-
"include": "#
|
75
|
+
"include": "#comment_block"
|
98
76
|
}
|
99
77
|
],
|
100
78
|
"applyEndPatternLast": true
|
@@ -104,7 +82,7 @@
|
|
104
82
|
"match": "//.*$"
|
105
83
|
},
|
106
84
|
"comment_rest": {
|
107
|
-
"name": "comment
|
85
|
+
"name": "comment",
|
108
86
|
"begin": "////",
|
109
87
|
"end": ".\\z",
|
110
88
|
"patterns": [
|
@@ -114,66 +92,18 @@
|
|
114
92
|
],
|
115
93
|
"applyEndPatternLast": true
|
116
94
|
},
|
117
|
-
"definition_function": {
|
118
|
-
"name": "meta.function-definition",
|
119
|
-
"begin": "\\b(?:castfn|fn|fun|implement|implmnt|infixl|infixr|infix|overload|postfix|praxi|prfn|prfun|primplement|primplmnt|var)\\b",
|
120
|
-
"end": "\\b[a-zA-Z][a-zA-Z0-9_']*\\b",
|
121
|
-
"patterns": [
|
122
|
-
{
|
123
|
-
"include": "$self"
|
124
|
-
}
|
125
|
-
],
|
126
|
-
"beginCaptures": {
|
127
|
-
"0": {
|
128
|
-
"name": "keyword"
|
129
|
-
}
|
130
|
-
},
|
131
|
-
"endCaptures": {
|
132
|
-
"0": {
|
133
|
-
"name": "entity.name.function"
|
134
|
-
}
|
135
|
-
}
|
136
|
-
},
|
137
|
-
"definition_type": {
|
138
|
-
"name": "meta.type-definition",
|
139
|
-
"begin": "\\b(abstype|abst@ype|abst0pe|absvtype|absvt@ype|absvt0pe|absviewtype|absviewt@ype|absviewt0pe|absview|absprop|datatype|datavtype|dataviewtype|dataview|dataprop|datasort|sortdef|propdef|viewdef|viewtypedef|vtypedef|stadef|stacst|typedef)\\b",
|
140
|
-
"end": "\\b[a-zA-Z][a-zA-Z0-9_']*\\b",
|
141
|
-
"patterns": [
|
142
|
-
{
|
143
|
-
"include": "$self"
|
144
|
-
}
|
145
|
-
],
|
146
|
-
"beginCaptures": {
|
147
|
-
"0": {
|
148
|
-
"name": "keyword"
|
149
|
-
}
|
150
|
-
},
|
151
|
-
"endCaptures": {
|
152
|
-
"0": {
|
153
|
-
"name": "entity.name.type storage.type"
|
154
|
-
}
|
155
|
-
}
|
156
|
-
},
|
157
95
|
"embed": {
|
158
96
|
"name": "meta",
|
159
97
|
"begin": "(%{)",
|
160
98
|
"end": "(%})"
|
161
99
|
},
|
162
|
-
"false_true": {
|
163
|
-
"name": "constant.language.boolean",
|
164
|
-
"match": "\\b(?:false|true)\\b"
|
165
|
-
},
|
166
|
-
"identifier": {
|
167
|
-
"name": "identifier",
|
168
|
-
"match": "\\b[a-zA-Z][a-zA-Z0-9_']*\\b"
|
169
|
-
},
|
170
100
|
"keywords": {
|
171
101
|
"name": "keyword",
|
172
|
-
"match": "(\\#|\\$)(\\w+)|\\b(castfn|and|andalso|assume|as|begin|break|case(\\+|-)?|class|continue|dynload|dyn|else|end|exception|extern|fix|fn|for|fun|if|implement|implmnt|primplement|primplmnt|infixl|infixr|infix|in|lam|let|llam|local|macdef|macrodef|method|modprop|modtype|module|nonfix|object|of|op|or|orelse|overload|par|postfix|praxi|prefix|prfn|prfun|prval|rec|
|
102
|
+
"match": "(\\#|\\$)(\\w+)|\\b(castfn|and|andalso|assume|as|begin|break|case(\\+|-)?|class|continue|dynload|dyn|else|end|exception|extern|fix|fn|for|fun|if|implement|implmnt|primplement|primplmnt|infixl|infixr|infix|in|lam|let|llam|local|macdef|macrodef|method|modprop|modtype|module|nonfix|object|of|op|or|orelse|overload|par|postfix|praxi|prefix|prfn|prfun|prval|rec|sif|staif|staload|stavar|sta|struct|symelim|symintr|then|try|union|val(\\+|-)?|var|when|where|while|withprop|withtype|withviewtype|withview|with)\\b"
|
173
103
|
},
|
174
104
|
"keywords_types": {
|
175
105
|
"name": "keyword",
|
176
|
-
"match": "(\\#|\\$)(\\w+)|\\b(abstype|abst@ype|abst0pe|absvtype|absvt@ype|absvt0pe|absviewtype|absviewt@ype|absviewt0pe|absview|absprop|datatype|datavtype|dataviewtype|dataview|dataprop|datasort|sortdef|propdef|viewdef|viewtypedef|vtypedef|stadef|typedef)\\b"
|
106
|
+
"match": "(\\#|\\$)(\\w+)|\\b(abstype|abst@ype|abst0pe|absvtype|absvt@ype|absvt0pe|absviewtype|absviewt@ype|absviewt0pe|absview|absprop|datatype|datavtype|dataviewtype|dataview|dataprop|datasort|sortdef|propdef|viewdef|viewtypedef|vtypedef|stadef|typedef|)\\b"
|
177
107
|
},
|
178
108
|
"number": {
|
179
109
|
"name": "constant.numeric",
|
@@ -189,14 +119,14 @@
|
|
189
119
|
"end": "\u003e"
|
190
120
|
},
|
191
121
|
"quantifier_curly": {
|
192
|
-
"name": "support.type
|
193
|
-
"begin": "
|
194
|
-
"end": "
|
122
|
+
"name": "support.type",
|
123
|
+
"begin": "({)",
|
124
|
+
"end": "(})"
|
195
125
|
},
|
196
126
|
"quantifier_square": {
|
197
|
-
"name": "support.type
|
198
|
-
"begin": "\\[
|
199
|
-
"end": "\\]"
|
127
|
+
"name": "support.type",
|
128
|
+
"begin": "(\\[)",
|
129
|
+
"end": "(\\])"
|
200
130
|
},
|
201
131
|
"records": {
|
202
132
|
"begin": "('|@)({)",
|
@@ -485,7 +485,7 @@
|
|
485
485
|
},
|
486
486
|
{
|
487
487
|
"name": "keyword.other.ballerina",
|
488
|
-
"match": "\\b(import|version|public|private|attach|as|native|documentation|lock|new|record|limit|ascending|descending|check|start|done|untaint|onretry|oncommit|onabort|scope|compensate|compensation|primarykey|channel|abstract|extern|final|listener|remote|client|__init)\\b"
|
488
|
+
"match": "\\b(import|version|public|private|attach|as|native|documentation|lock|new|record|limit|ascending|descending|check|start|done|untaint|onretry|oncommit|onabort|scope|compensate|compensation|primarykey|channel|abstract|extern|final|listener|remote|client|is|__init)\\b"
|
489
489
|
},
|
490
490
|
{
|
491
491
|
"name": "keyword.other.siddhi.ballerina",
|