github-linguist 5.0.11 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/source.antlr.json +2 -2
- data/grammars/source.batchfile.json +31 -39
- data/grammars/source.c++.json +2 -2
- data/grammars/source.c.json +1 -1
- data/grammars/source.capnp.json +2 -2
- data/grammars/source.chapel.json +2 -2
- data/grammars/source.clojure.json +3 -1
- data/grammars/source.coffee.json +6 -6
- data/grammars/source.crystal.json +1 -1
- data/grammars/source.csound-document.json +20 -5
- data/grammars/source.csound-score.json +1 -1
- data/grammars/source.csound.json +7 -20
- data/grammars/source.css.less.json +2 -2
- data/grammars/source.cython.json +2 -2
- data/grammars/source.dart.json +16 -20
- data/grammars/source.ditroff.json +3 -3
- data/grammars/source.elixir.json +3 -3
- data/grammars/source.erlang.json +1 -1
- data/grammars/source.fan.json +345 -0
- data/grammars/source.fancy.json +1 -1
- data/grammars/source.gdb.json +1 -1
- data/grammars/source.gdb.session.json +1 -1
- data/grammars/source.gdscript.json +1 -1
- data/grammars/source.gfm.json +16 -0
- data/grammars/source.grace.json +1 -1
- data/grammars/source.harbour.json +1 -1
- data/grammars/source.idl.json +1 -1
- data/grammars/source.java.json +2 -2
- data/grammars/source.jison.json +45 -7
- data/grammars/source.jisonlex.json +13 -3
- data/grammars/source.js.json +7 -7
- data/grammars/source.js.regexp.json +2 -2
- data/grammars/source.jsdoc.json +24 -49
- data/grammars/source.livescript.json +4 -4
- data/grammars/source.logtalk.json +1 -1
- data/grammars/source.lsl.json +1 -1
- data/grammars/source.lua.json +5 -7
- data/grammars/source.mask.json +2 -2
- data/grammars/source.nim.json +2 -2
- data/grammars/source.nim_filter.json +2 -2
- data/grammars/source.nimcfg.json +2 -2
- data/grammars/source.nix.json +2 -2
- data/grammars/source.nu.json +2 -2
- data/grammars/source.pan.json +711 -0
- data/grammars/source.pawn.json +1 -1
- data/grammars/source.perl6fe.json +384 -7
- data/grammars/source.php.zephir.json +2 -2
- data/grammars/source.reason.json +2 -2
- data/grammars/source.ring.json +277 -0
- data/grammars/source.rust.json +8 -3
- data/grammars/source.scad.json +2 -2
- data/grammars/source.shell.json +1 -1
- data/grammars/source.smalltalk.json +83 -16
- data/grammars/source.spin.json +2 -2
- data/grammars/source.sqf.json +1 -1
- data/grammars/source.supercollider.json +2 -2
- data/grammars/source.swift.json +41 -2
- data/grammars/source.tl.json +264 -0
- data/grammars/source.toml.json +3 -3
- data/grammars/source.vhdl.json +1 -1
- data/grammars/source.webassembly.json +344 -0
- data/grammars/source.yaml.json +2 -2
- data/grammars/text.haml.json +3 -3
- data/grammars/text.html.handlebars.json +17 -8
- data/grammars/text.html.markdown.source.gfm.mson.json +1 -1
- data/grammars/text.html.php.blade.json +987 -440
- data/grammars/text.html.php.json +6 -6
- data/grammars/text.html.soy.json +3 -3
- data/grammars/text.html.vue.json +10 -10
- data/grammars/text.marko.json +3 -3
- data/grammars/text.roff.json +6 -3
- data/lib/linguist/heuristics.rb +4 -4
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +54 -4
- data/lib/linguist/samples.json +3030 -470
- data/lib/linguist/vendor.yml +3 -0
- data/lib/linguist/version.rb +1 -1
- metadata +7 -2
@@ -0,0 +1,277 @@
|
|
1
|
+
{
|
2
|
+
"name": "ring",
|
3
|
+
"scopeName": "source.ring",
|
4
|
+
"fileTypes": [
|
5
|
+
"ring",
|
6
|
+
"rh"
|
7
|
+
],
|
8
|
+
"repository": {
|
9
|
+
"block_doc_comment": {
|
10
|
+
"comment": "Block documentation comment",
|
11
|
+
"name": "comment.block.documentation.ring",
|
12
|
+
"begin": "/\\*[!\\*][^\\*]",
|
13
|
+
"end": "\\*/",
|
14
|
+
"patterns": [
|
15
|
+
{
|
16
|
+
"include": "#block_doc_comment"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"include": "#block_comment"
|
20
|
+
}
|
21
|
+
]
|
22
|
+
},
|
23
|
+
"block_comment": {
|
24
|
+
"comment": "Block comment",
|
25
|
+
"name": "comment.block.ring",
|
26
|
+
"begin": "/\\*",
|
27
|
+
"end": "\\*/",
|
28
|
+
"patterns": [
|
29
|
+
{
|
30
|
+
"include": "#block_doc_comment"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"include": "#block_comment"
|
34
|
+
}
|
35
|
+
]
|
36
|
+
},
|
37
|
+
"line_doc_comment": {
|
38
|
+
"comment": "Single-line documentation comment",
|
39
|
+
"name": "comment.line.documentation.ring",
|
40
|
+
"match": "//[!/][^/].*$"
|
41
|
+
},
|
42
|
+
"line_comment": {
|
43
|
+
"comment": "Single-line comment",
|
44
|
+
"name": "comment.line.double-slash.ring",
|
45
|
+
"match": "//[#].*$"
|
46
|
+
},
|
47
|
+
"escaped_character": {
|
48
|
+
"name": "constant.character.escape.ring",
|
49
|
+
"match": "\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)"
|
50
|
+
},
|
51
|
+
"sigils": {
|
52
|
+
"comment": "Sigil",
|
53
|
+
"name": "keyword.operator.sigil.ring",
|
54
|
+
"match": "[@]|[:]{2}|[+]{2}(?=[a-zA-Z0-9_\\(\\[\\|\\\"]+)"
|
55
|
+
},
|
56
|
+
"string_literal": {
|
57
|
+
"comment": "Double-quote string",
|
58
|
+
"name": "string.quoted.double.ring",
|
59
|
+
"begin": "\"",
|
60
|
+
"end": "\"",
|
61
|
+
"patterns": [
|
62
|
+
{
|
63
|
+
"include": "#escaped_character"
|
64
|
+
}
|
65
|
+
]
|
66
|
+
},
|
67
|
+
"self": {
|
68
|
+
"comment": "Self variable",
|
69
|
+
"name": "variable.self.language.ring",
|
70
|
+
"match": "\\b(Self|SELF|self)\\b"
|
71
|
+
},
|
72
|
+
"null": {
|
73
|
+
"comment": "null variable",
|
74
|
+
"name": "variable.null.language.ring",
|
75
|
+
"match": "\\b(NULL|null|Null)\\b"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"patterns": [
|
79
|
+
{
|
80
|
+
"include": "#block_doc_comment"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"include": "#block_comment"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"include": "#line_doc_comment"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"include": "#line_comment"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"include": "#sigils"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"comment": "Attribute",
|
96
|
+
"name": "meta.attribute.ring",
|
97
|
+
"begin": "#\\!?\\[",
|
98
|
+
"end": "\\]",
|
99
|
+
"patterns": [
|
100
|
+
{
|
101
|
+
"include": "#string_literal"
|
102
|
+
}
|
103
|
+
]
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"comment": "Single-quote string (character literal)",
|
107
|
+
"name": "string.quoted.single.ring",
|
108
|
+
"match": "'([^'\\\\]|\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.))'"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"include": "#string_literal"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"comment": "Floating point number (fraction)",
|
115
|
+
"name": "constant.numeric.float.ring",
|
116
|
+
"match": "\\b[0-9][0-9_]*\\.[0-9][0-9_]*([eE][+-][0-9_]+)?(f32|f64)?\\b"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"comment": "Integer number (decimal)",
|
120
|
+
"name": "constant.numeric.integer.decimal.ring",
|
121
|
+
"match": "\\b[0-9][0-9_]*([ui](8|16|32|64)?)?\\b"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"comment": "Static storage modifier",
|
125
|
+
"name": "storage.modifier.static.ring",
|
126
|
+
"match": "\\b(PRIVATE|private|Private)\\b"
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"comment": "Boolean constant",
|
130
|
+
"name": "constant.language.boolean.ring",
|
131
|
+
"match": "(TRUE|true|True|FALSE|false|False)"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"comment": "variable name",
|
135
|
+
"name": "variable.name.special.ring",
|
136
|
+
"match": "\\b_[a-z][A-Za-z0-9_]*|\\s(i|j)\\s\\b"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"comment": "Control keyword",
|
140
|
+
"name": "keyword.control.ring",
|
141
|
+
"match": "\\b(EXIT|exit|Exit|LOOP|loop|Loop|BUT|but|But|ELSE|else|Else|IF|if|If|FOR|for|For|IN|in|In|TO|to|To|STEP|step|Step|NEXT|next|Next|SWITCH|switch|Switch|OFF|off|Off|ON|on|On|OTHER|other|Other|RETURN|return|Return|WHILE|while|While|DO|do|Do|END|end|End|AGAIN|again|Again|Try|try|Try|CATCH|catch|Catch|DONE|done|Done)\\b"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"comment": "ring keywords",
|
145
|
+
"name": "keyword.command.ring",
|
146
|
+
"match": "\\b(IF|if|If|TO|to|To|OR|or|Or|AND|and|And|NOT|not|Not|FOR|for|For|NEW|new|New|FUNC|func|Func|FROM|from|From|NEXT|next|Next|LOAD|load|Load|ELSE|else|Else|SEE|see|See|WHILE|while|While|OK|ok|Ok|CLASS|class|Class|BREAK|break|Break|RETURN|return|Return|BUT|but|But|END|end|End|GIVE|give|Give|BYE|bye|Bye|EXIT|exit|Exit|TRY|try|Try|CATCH|catch|Catch|DONE|done|Done|SWITCH|switch|Switch|ON|on|On|OTHER|other|Other|OFF|off|Off|IN|in|In|LOOP|loop|Loop|PACKAGE|package|Package|IMPORT|import|Import|PRIVATE|private|Private|STEP|step|Step|DO|do|Do|AGAIN|again|Again|CALL|call|Call)\\b"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"include": "#types"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"include": "#self"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"include": "#null"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"include": "#lifetime"
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"include": "#ref_lifetime"
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"match": "(=|\\+=|-=)",
|
165
|
+
"name": "keyword.operator.assignment.ring"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"match": "(\\<=|>=|==|!=|NOT|not|Not|\\<>|\\<|>|\\$|\\sOR\\s|\\sAND\\s|\\sNOT\\s|\\sand\\s|\\sor\\s|\\snot\\s)",
|
169
|
+
"name": "keyword.operator.comparison.ring"
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"comment": "Standard library macro",
|
173
|
+
"name": "support.function.std.ring",
|
174
|
+
"match": "\\b(len|add|del|get|clock|lower|upper|input|ascii|char|date|time|filename|getchar|system|random|timelist|adddays|diffdays|isstring|isnumber|islist|type|isnull|isobject|hex|dec|number|string|str2hex|hex2str|str2list|list2str|left|right|trim|copy|substr|lines|strcmp|eval|raise|assert|isalnum|isalpha|iscntrl|isdigit|isgraph|islower|isprint|ispunct|isspace|isupper|isxdigit|locals|globals|functions|cfunctions|islocal|isglobal|isfunction|iscfunction|packages|ispackage|classes|isclass|packageclasses|ispackageclass|classname|objectid|attributes|methods|isattribute|ismethod|isprivateattribute|isprivatemethod|addattribute|addmethod|getattribute|setattribute|mergemethods|list|find|min|max|insert|sort|reverse|binarysearch|sin|cos|tan|asin|acos|atan|atan2|sinh|cosh|tanh|exp|log|log10|ceil|floor|fabs|pow|sqrt|unsigned|decimals|murmur3hash|fopen|fclose|fflush|freopen|tempfile|tempname|fseek|ftell|rewind|fgetpos|fsetpos|clearerr|feof|ferror|perror|rename|remove|fgetc|fgets|fputc|fputs|ungetc|fread|fwrite|dir|read|write|fexists|ismsdos|iswindows|iswindows64|isunix|ismacosx|islinux|isfreebsd|isandroid|windowsnl|mysql_info|mysql_init|mysql_error|mysql_connect|mysql_close|mysql_query|mysql_result|mysql_insert_id|mysql_columns|mysql_result2|mysql_next_result|mysql_escape_string|mysql_autocommit|mysql_commit|mysql_rollback|odbc_init|odbc_drivers|odbc_datasources|odbc_close|odbc_connect|odbc_disconnect|odbc_execute|odbc_colcount|odbc_fetch|odbc_getdata|odbc_tables|odbc_columns|odbc_autocommit|odbc_commit|odbc_rollback|md5|sha1|sha256|sha512|sha384|sha224|encrypt|decrypt|randbytes|download|sendemail|loadlib|closelib|callgc|varptr|intvalue)!"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"comment": "Function call",
|
178
|
+
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(",
|
179
|
+
"captures": {
|
180
|
+
"1": {
|
181
|
+
"name": "entity.name.function.ring"
|
182
|
+
}
|
183
|
+
}
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"comment": "Method call",
|
187
|
+
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*).([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(",
|
188
|
+
"captures": {
|
189
|
+
"1": {
|
190
|
+
"name": "entity.name.method.ring"
|
191
|
+
}
|
192
|
+
}
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"comment": "Class variable usage",
|
196
|
+
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*).([a-zA-Z_][a-zA-Z0-9_]*)",
|
197
|
+
"captures": {
|
198
|
+
"1": {
|
199
|
+
"name": "variable.name.object.ring"
|
200
|
+
},
|
201
|
+
"2": {
|
202
|
+
"name": "variable.name.member.ring"
|
203
|
+
}
|
204
|
+
}
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"comment": "Function definition",
|
208
|
+
"begin": "\\b(FUNC|func|Func)\\s+([a-zA-Z_][a-zA-Z0-9_]*)",
|
209
|
+
"end": "[\\n]",
|
210
|
+
"beginCaptures": {
|
211
|
+
"1": {
|
212
|
+
"name": "keyword.other.fn.ring"
|
213
|
+
},
|
214
|
+
"2": {
|
215
|
+
"name": "entity.name.function.ring"
|
216
|
+
}
|
217
|
+
},
|
218
|
+
"patterns": [
|
219
|
+
{
|
220
|
+
"include": "$self"
|
221
|
+
}
|
222
|
+
]
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"comment": "CLASS definition",
|
226
|
+
"begin": "\\b(CLASS|class|Class)\\s+([a-zA-Z_][a-zA-Z0-9_]*)(?:\\s+(FROM|from|From)\\s+([a-zA-Z_][a-zA-Z0-9_]*))?",
|
227
|
+
"end": "[\\n]",
|
228
|
+
"beginCaptures": {
|
229
|
+
"1": {
|
230
|
+
"name": "keyword.class.ring"
|
231
|
+
},
|
232
|
+
"2": {
|
233
|
+
"name": "entity.name.class.ring"
|
234
|
+
},
|
235
|
+
"3": {
|
236
|
+
"name": "keyword.class.inherit.ring"
|
237
|
+
},
|
238
|
+
"4": {
|
239
|
+
"name": "entity.name.parent.class.ring"
|
240
|
+
}
|
241
|
+
},
|
242
|
+
"patterns": [
|
243
|
+
{
|
244
|
+
"include": "$self"
|
245
|
+
}
|
246
|
+
]
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"comment": "Method definition",
|
250
|
+
"begin": "\\b(FUNC|func|Func)\\s+((?:(?:[a-zA-Z_][a-zA-Z0-9_]*):)?(?:[a-zA-Z_][a-zA-Z0-9_]*))",
|
251
|
+
"end": "[\\n]",
|
252
|
+
"beginCaptures": {
|
253
|
+
"1": {
|
254
|
+
"name": "keyword.method.fn.ring"
|
255
|
+
},
|
256
|
+
"2": {
|
257
|
+
"name": "entity.name.method.ring"
|
258
|
+
}
|
259
|
+
},
|
260
|
+
"patterns": [
|
261
|
+
{
|
262
|
+
"include": "$self"
|
263
|
+
}
|
264
|
+
]
|
265
|
+
},
|
266
|
+
{
|
267
|
+
"comment": "Variable declaration",
|
268
|
+
"begin": "=",
|
269
|
+
"end": "",
|
270
|
+
"patterns": [
|
271
|
+
{
|
272
|
+
"include": "$self"
|
273
|
+
}
|
274
|
+
]
|
275
|
+
}
|
276
|
+
]
|
277
|
+
}
|
data/grammars/source.rust.json
CHANGED
@@ -47,7 +47,7 @@
|
|
47
47
|
},
|
48
48
|
"escaped_character": {
|
49
49
|
"name": "constant.character.escape.rust",
|
50
|
-
"match": "\\\\(x
|
50
|
+
"match": "\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)"
|
51
51
|
},
|
52
52
|
"string_literal": {
|
53
53
|
"comment": "Double-quote string literal",
|
@@ -299,7 +299,7 @@
|
|
299
299
|
{
|
300
300
|
"comment": "Single-quote string literal (character)",
|
301
301
|
"name": "string.quoted.single.rust",
|
302
|
-
"match": "b?'([^'\\\\]|\\\\(x
|
302
|
+
"match": "b?'([^'\\\\]|\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.))'"
|
303
303
|
},
|
304
304
|
{
|
305
305
|
"include": "#string_literal"
|
@@ -360,7 +360,12 @@
|
|
360
360
|
{
|
361
361
|
"comment": "Keyword",
|
362
362
|
"name": "keyword.other.rust",
|
363
|
-
"match": "\\b(crate|extern|mod|let|
|
363
|
+
"match": "\\b(crate|extern|mod|let|ref|use|super|move)\\b"
|
364
|
+
},
|
365
|
+
{
|
366
|
+
"comment": "Reserved keyword",
|
367
|
+
"name": "invalid.deprecated.rust",
|
368
|
+
"match": "\\b(abstract|alignof|become|do|final|macro|offsetof|override|priv|proc|pure|sizeof|typeof|virtual|yield)\\b"
|
364
369
|
},
|
365
370
|
{
|
366
371
|
"include": "#unsafe"
|
data/grammars/source.scad.json
CHANGED
@@ -76,7 +76,7 @@
|
|
76
76
|
"name": "string.quoted.single.scad",
|
77
77
|
"patterns": [
|
78
78
|
{
|
79
|
-
"match": "\\\\(x
|
79
|
+
"match": "\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)",
|
80
80
|
"name": "constant.character.escape.scad"
|
81
81
|
}
|
82
82
|
]
|
@@ -97,7 +97,7 @@
|
|
97
97
|
"name": "string.quoted.double.scad",
|
98
98
|
"patterns": [
|
99
99
|
{
|
100
|
-
"match": "\\\\(x
|
100
|
+
"match": "\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)",
|
101
101
|
"name": "constant.character.escape.scad"
|
102
102
|
}
|
103
103
|
]
|
data/grammars/source.shell.json
CHANGED
@@ -8,8 +8,16 @@
|
|
8
8
|
"name": "Smalltalk",
|
9
9
|
"patterns": [
|
10
10
|
{
|
11
|
-
"match": "\\b(
|
12
|
-
"name": "
|
11
|
+
"match": "\\b(class)\\b",
|
12
|
+
"name": "storage.type.$1.smalltalk"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"match": "\\b(extend|super|self)\\b",
|
16
|
+
"name": "storage.modifier.$1.smalltalk"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"match": "\\b(yourself|new|Smalltalk)\\b",
|
20
|
+
"name": "keyword.control.$1.smalltalk"
|
13
21
|
},
|
14
22
|
{
|
15
23
|
"match": ":=",
|
@@ -23,25 +31,35 @@
|
|
23
31
|
{
|
24
32
|
"captures": {
|
25
33
|
"1": {
|
26
|
-
"name": "punctuation.
|
34
|
+
"name": "punctuation.definition.instance-variables.begin.smalltalk"
|
27
35
|
},
|
28
36
|
"2": {
|
29
|
-
"
|
37
|
+
"patterns": [
|
38
|
+
{
|
39
|
+
"match": "\\w+",
|
40
|
+
"name": "support.type.variable.declaration.smalltalk"
|
41
|
+
}
|
42
|
+
]
|
30
43
|
},
|
31
44
|
"3": {
|
32
|
-
"name": "punctuation.
|
45
|
+
"name": "punctuation.definition.instance-variables.end.smalltalk"
|
33
46
|
}
|
34
47
|
},
|
35
|
-
"match": "(\\|)
|
48
|
+
"match": "(\\|)(\\s*\\w[\\w ]*)(\\|)"
|
36
49
|
},
|
37
50
|
{
|
38
51
|
"captures": {
|
39
52
|
"1": {
|
40
|
-
"
|
53
|
+
"patterns": [
|
54
|
+
{
|
55
|
+
"match": ":\\w+",
|
56
|
+
"name": "entity.name.function.block.smalltalk"
|
57
|
+
}
|
58
|
+
]
|
41
59
|
}
|
42
60
|
},
|
43
61
|
"comment": "Parse the blocks like: [ :a :b | ...... ]",
|
44
|
-
"match": "\\[\\s
|
62
|
+
"match": "\\[((\\s+|:\\w+)*)\\|"
|
45
63
|
},
|
46
64
|
{
|
47
65
|
"match": "<(?!<|=)|>(?!<|=|>)|<=|>=|=|==|~=|~~|>>|\\^",
|
@@ -70,24 +88,38 @@
|
|
70
88
|
"1": {
|
71
89
|
"name": "entity.other.inherited-class.smalltalk"
|
72
90
|
},
|
73
|
-
"
|
91
|
+
"3": {
|
74
92
|
"name": "keyword.control.smalltalk"
|
75
93
|
},
|
76
94
|
"4": {
|
77
95
|
"name": "entity.name.type.class.smalltalk"
|
78
96
|
}
|
79
97
|
},
|
80
|
-
"match": "(\\w
|
98
|
+
"match": "(\\w+)(\\s+(subclass:))\\s*(\\w*)",
|
81
99
|
"name": "meta.class.smalltalk"
|
82
100
|
},
|
83
101
|
{
|
84
102
|
"begin": "\"",
|
103
|
+
"beginCaptures": {
|
104
|
+
"0": {
|
105
|
+
"name": "punctuation.definition.comment.begin.smalltalk"
|
106
|
+
}
|
107
|
+
},
|
85
108
|
"end": "\"",
|
86
|
-
"
|
109
|
+
"endCaptures": {
|
110
|
+
"0": {
|
111
|
+
"name": "punctuation.definition.comment.end.smalltalk"
|
112
|
+
}
|
113
|
+
},
|
114
|
+
"name": "comment.block.smalltalk"
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"match": "\\b(true|false)\\b",
|
118
|
+
"name": "constant.language.boolean.smalltalk"
|
87
119
|
},
|
88
120
|
{
|
89
|
-
"match": "\\b(
|
90
|
-
"name": "constant.language.smalltalk"
|
121
|
+
"match": "\\b(nil)\\b",
|
122
|
+
"name": "constant.language.nil.smalltalk"
|
91
123
|
},
|
92
124
|
{
|
93
125
|
"captures": {
|
@@ -100,29 +132,64 @@
|
|
100
132
|
"name": "constant.other.messages.smalltalk"
|
101
133
|
},
|
102
134
|
{
|
135
|
+
"captures": {
|
136
|
+
"1": {
|
137
|
+
"name": "punctuation.definition.constant.smalltalk"
|
138
|
+
}
|
139
|
+
},
|
103
140
|
"comment": "symbols",
|
104
|
-
"match": "#[a-zA-Z_][a-zA-Z0-9_:]*",
|
141
|
+
"match": "(#)[a-zA-Z_][a-zA-Z0-9_:]*",
|
105
142
|
"name": "constant.other.symbol.smalltalk"
|
106
143
|
},
|
107
144
|
{
|
108
145
|
"begin": "#\\[",
|
146
|
+
"beginCaptures": {
|
147
|
+
"0": {
|
148
|
+
"name": "punctuation.definition.constant.begin.smalltalk"
|
149
|
+
}
|
150
|
+
},
|
109
151
|
"comment": "ByteArray Constructor. Unfortunely this dont validate only numbers. TODO.",
|
110
152
|
"end": "\\]",
|
153
|
+
"endCaptures": {
|
154
|
+
"0": {
|
155
|
+
"name": "punctuation.definition.constant.end.smalltalk"
|
156
|
+
}
|
157
|
+
},
|
111
158
|
"name": "constant.other.bytearray.smalltalk"
|
112
159
|
},
|
113
160
|
{
|
114
161
|
"begin": "#\\(",
|
162
|
+
"beginCaptures": {
|
163
|
+
"0": {
|
164
|
+
"name": "punctuation.definition.constant.begin.smalltalk"
|
165
|
+
}
|
166
|
+
},
|
115
167
|
"comment": "Array Constructor",
|
116
168
|
"end": "\\)",
|
169
|
+
"endCaptures": {
|
170
|
+
"0": {
|
171
|
+
"name": "punctuation.definition.constant.end.smalltalk"
|
172
|
+
}
|
173
|
+
},
|
117
174
|
"name": "constant.other.array.smalltalk"
|
118
175
|
},
|
119
176
|
{
|
120
177
|
"begin": "'",
|
178
|
+
"beginCaptures": {
|
179
|
+
"0": {
|
180
|
+
"name": "punctuation.definition.string.begin.smalltalk"
|
181
|
+
}
|
182
|
+
},
|
121
183
|
"end": "'",
|
122
|
-
"
|
184
|
+
"endCaptures": {
|
185
|
+
"0": {
|
186
|
+
"name": "punctuation.definition.string.end.smalltalk"
|
187
|
+
}
|
188
|
+
},
|
189
|
+
"name": "string.quoted.single.smalltalk"
|
123
190
|
},
|
124
191
|
{
|
125
|
-
"match": "\\b(0[xX]
|
192
|
+
"match": "\\b(0[xX][0-9A-Fa-f](?>_?[0-9A-Fa-f])*|\\d(?>_?\\d)*(\\.(?![^[:space:][:digit:]])(?>_?\\d)*)?([eE][-+]?\\d(?>_?\\d)*)?|0[bB][01]+)\\b",
|
126
193
|
"name": "constant.numeric.smalltalk"
|
127
194
|
},
|
128
195
|
{
|