tree-sitter-objectscript 1.9.5 → 1.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/src/parser.c +15 -15
- package/expr/grammar.js +3 -3
- package/expr/src/node-types.json +1 -1
- package/expr/src/parser.c +15 -15
- package/objectscript/src/node-types.json +9 -24
- package/objectscript/src/parser.c +104 -104
- package/objectscript_routine/src/parser.c +15 -15
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/tree-sitter-objectscript.node +0 -0
- package/prebuilds/darwin-x64/tree-sitter-objectscript.node +0 -0
- package/prebuilds/linux-arm64/tree-sitter-objectscript.node +0 -0
- package/prebuilds/linux-x64/tree-sitter-objectscript.node +0 -0
- package/prebuilds/win32-arm64/tree-sitter-objectscript.node +0 -0
- package/prebuilds/win32-x64/tree-sitter-objectscript.node +0 -0
- package/tree-sitter.json +1 -1
- package/udl/grammar.js +20 -19
- package/udl/src/node-types.json +9 -24
- package/udl/src/parser.c +68 -68
|
@@ -133,7 +133,7 @@ enum ts_symbol_identifiers {
|
|
|
133
133
|
anon_sym_false = 103,
|
|
134
134
|
sym_json_null_literal = 104,
|
|
135
135
|
sym_identifier = 105,
|
|
136
|
-
|
|
136
|
+
aux_sym__quote_permitting_identifier_token1 = 106,
|
|
137
137
|
anon_sym_SLASH_SLASH = 107,
|
|
138
138
|
anon_sym_POUND_SEMI = 108,
|
|
139
139
|
anon_sym_SEMI = 109,
|
|
@@ -379,7 +379,7 @@ enum ts_symbol_identifiers {
|
|
|
379
379
|
sym_json_array_literal = 349,
|
|
380
380
|
sym_json_boolean_literal = 350,
|
|
381
381
|
sym__expression_list = 351,
|
|
382
|
-
|
|
382
|
+
sym__quote_permitting_identifier = 352,
|
|
383
383
|
sym_line_comment_1 = 353,
|
|
384
384
|
sym_line_comment_2 = 354,
|
|
385
385
|
sym_line_comment_3 = 355,
|
|
@@ -713,7 +713,7 @@ static const char * const ts_symbol_names[] = {
|
|
|
713
713
|
[anon_sym_false] = "false",
|
|
714
714
|
[sym_json_null_literal] = "json_null_literal",
|
|
715
715
|
[sym_identifier] = "identifier",
|
|
716
|
-
[
|
|
716
|
+
[aux_sym__quote_permitting_identifier_token1] = "identifier",
|
|
717
717
|
[anon_sym_SLASH_SLASH] = "//",
|
|
718
718
|
[anon_sym_POUND_SEMI] = "#;",
|
|
719
719
|
[anon_sym_SEMI] = ";",
|
|
@@ -959,7 +959,7 @@ static const char * const ts_symbol_names[] = {
|
|
|
959
959
|
[sym_json_array_literal] = "json_array_literal",
|
|
960
960
|
[sym_json_boolean_literal] = "json_boolean_literal",
|
|
961
961
|
[sym__expression_list] = "_expression_list",
|
|
962
|
-
[
|
|
962
|
+
[sym__quote_permitting_identifier] = "class_name",
|
|
963
963
|
[sym_line_comment_1] = "line_comment_1",
|
|
964
964
|
[sym_line_comment_2] = "line_comment_2",
|
|
965
965
|
[sym_line_comment_3] = "line_comment_3",
|
|
@@ -1293,7 +1293,7 @@ static const TSSymbol ts_symbol_map[] = {
|
|
|
1293
1293
|
[anon_sym_false] = anon_sym_false,
|
|
1294
1294
|
[sym_json_null_literal] = sym_json_null_literal,
|
|
1295
1295
|
[sym_identifier] = sym_identifier,
|
|
1296
|
-
[
|
|
1296
|
+
[aux_sym__quote_permitting_identifier_token1] = sym_identifier,
|
|
1297
1297
|
[anon_sym_SLASH_SLASH] = anon_sym_SLASH_SLASH,
|
|
1298
1298
|
[anon_sym_POUND_SEMI] = anon_sym_POUND_SEMI,
|
|
1299
1299
|
[anon_sym_SEMI] = anon_sym_SEMI,
|
|
@@ -1539,7 +1539,7 @@ static const TSSymbol ts_symbol_map[] = {
|
|
|
1539
1539
|
[sym_json_array_literal] = sym_json_array_literal,
|
|
1540
1540
|
[sym_json_boolean_literal] = sym_json_boolean_literal,
|
|
1541
1541
|
[sym__expression_list] = sym__expression_list,
|
|
1542
|
-
[
|
|
1542
|
+
[sym__quote_permitting_identifier] = sym_class_name,
|
|
1543
1543
|
[sym_line_comment_1] = sym_line_comment_1,
|
|
1544
1544
|
[sym_line_comment_2] = sym_line_comment_2,
|
|
1545
1545
|
[sym_line_comment_3] = sym_line_comment_3,
|
|
@@ -2191,9 +2191,9 @@ static const TSSymbolMetadata ts_symbol_metadata[] = {
|
|
|
2191
2191
|
.visible = true,
|
|
2192
2192
|
.named = true,
|
|
2193
2193
|
},
|
|
2194
|
-
[
|
|
2195
|
-
.visible =
|
|
2196
|
-
.named =
|
|
2194
|
+
[aux_sym__quote_permitting_identifier_token1] = {
|
|
2195
|
+
.visible = true,
|
|
2196
|
+
.named = true,
|
|
2197
2197
|
},
|
|
2198
2198
|
[anon_sym_SLASH_SLASH] = {
|
|
2199
2199
|
.visible = true,
|
|
@@ -3175,7 +3175,7 @@ static const TSSymbolMetadata ts_symbol_metadata[] = {
|
|
|
3175
3175
|
.visible = false,
|
|
3176
3176
|
.named = true,
|
|
3177
3177
|
},
|
|
3178
|
-
[
|
|
3178
|
+
[sym__quote_permitting_identifier] = {
|
|
3179
3179
|
.visible = true,
|
|
3180
3180
|
.named = true,
|
|
3181
3181
|
},
|
|
@@ -32981,7 +32981,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
|
|
32981
32981
|
('a' <= lookahead && lookahead <= 'z')) ADVANCE(1638);
|
|
32982
32982
|
END_STATE();
|
|
32983
32983
|
case 1639:
|
|
32984
|
-
ACCEPT_TOKEN(
|
|
32984
|
+
ACCEPT_TOKEN(aux_sym__quote_permitting_identifier_token1);
|
|
32985
32985
|
if (lookahead == '"') ADVANCE(85);
|
|
32986
32986
|
END_STATE();
|
|
32987
32987
|
case 1640:
|
|
@@ -934123,10 +934123,10 @@ static const uint16_t ts_small_parse_table[] = {
|
|
|
934123
934123
|
ACTIONS(13), 1,
|
|
934124
934124
|
anon_sym_SLASH_SLASH_SLASH,
|
|
934125
934125
|
STATE(11603), 1,
|
|
934126
|
-
|
|
934126
|
+
sym__quote_permitting_identifier,
|
|
934127
934127
|
ACTIONS(13125), 2,
|
|
934128
934128
|
sym_identifier,
|
|
934129
|
-
|
|
934129
|
+
aux_sym__quote_permitting_identifier_token1,
|
|
934130
934130
|
ACTIONS(15), 4,
|
|
934131
934131
|
sym__whitespace,
|
|
934132
934132
|
sym_inline_comment,
|
|
@@ -1008792,7 +1008792,7 @@ static const TSParseActionEntry ts_parse_actions[] = {
|
|
|
1008792
1008792
|
[15668] = {.entry = {.count = 1, .reusable = true}}, SHIFT(1660),
|
|
1008793
1008793
|
[15670] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12220),
|
|
1008794
1008794
|
[15672] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7812),
|
|
1008795
|
-
[15674] = {.entry = {.count = 1, .reusable = true}}, REDUCE(
|
|
1008795
|
+
[15674] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__quote_permitting_identifier, 1, 0, 0),
|
|
1008796
1008796
|
[15676] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11206),
|
|
1008797
1008797
|
[15678] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11215),
|
|
1008798
1008798
|
[15680] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7603),
|
|
@@ -1009897,7 +1009897,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_objectscript_routine(void) {
|
|
|
1009897
1009897
|
.metadata = {
|
|
1009898
1009898
|
.major_version = 1,
|
|
1009899
1009899
|
.minor_version = 9,
|
|
1009900
|
-
.patch_version =
|
|
1009900
|
+
.patch_version = 6,
|
|
1009901
1009901
|
},
|
|
1009902
1009902
|
};
|
|
1009903
1009903
|
return &language;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/tree-sitter.json
CHANGED
package/udl/grammar.js
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
/// <reference types="tree-sitter-cli/dsl" />
|
|
12
11
|
// @ts-check
|
|
13
12
|
const keyword_rules = require('../common/keywords');
|
|
@@ -65,7 +64,7 @@ module.exports = define_grammar(objectscript_core, {
|
|
|
65
64
|
class_definition: ($) =>
|
|
66
65
|
seq(
|
|
67
66
|
$.keyword_class,
|
|
68
|
-
alias($.
|
|
67
|
+
alias($._quote_permitting_identifier, $.class_name),
|
|
69
68
|
optional($.class_extends),
|
|
70
69
|
optional($.class_keywords),
|
|
71
70
|
$.class_body,
|
|
@@ -115,7 +114,7 @@ module.exports = define_grammar(objectscript_core, {
|
|
|
115
114
|
query: ($) =>
|
|
116
115
|
seq(
|
|
117
116
|
$.keyword_query,
|
|
118
|
-
alias($.
|
|
117
|
+
alias($._quote_permitting_identifier, $.query_name),
|
|
119
118
|
$.arguments,
|
|
120
119
|
$.return_type,
|
|
121
120
|
optional($.query_keywords),
|
|
@@ -132,7 +131,7 @@ module.exports = define_grammar(objectscript_core, {
|
|
|
132
131
|
trigger: ($) =>
|
|
133
132
|
seq(
|
|
134
133
|
$.keyword_trigger,
|
|
135
|
-
alias($.
|
|
134
|
+
alias($._quote_permitting_identifier, $.trigger_name),
|
|
136
135
|
choice($.core_trigger, $.external_trigger),
|
|
137
136
|
),
|
|
138
137
|
|
|
@@ -149,7 +148,7 @@ module.exports = define_grammar(objectscript_core, {
|
|
|
149
148
|
property: ($) =>
|
|
150
149
|
seq(
|
|
151
150
|
$.keyword_property,
|
|
152
|
-
alias($.
|
|
151
|
+
alias($._quote_permitting_identifier, $.property_name),
|
|
153
152
|
optional($.return_type),
|
|
154
153
|
optional($.property_keywords),
|
|
155
154
|
';',
|
|
@@ -158,7 +157,7 @@ module.exports = define_grammar(objectscript_core, {
|
|
|
158
157
|
relationship: ($) =>
|
|
159
158
|
seq(
|
|
160
159
|
alias(/Relationship/i, $.keyword_relationship),
|
|
161
|
-
alias($.
|
|
160
|
+
alias($._quote_permitting_identifier, $.relationship_name),
|
|
162
161
|
optional($.return_type),
|
|
163
162
|
$.relationship_keywords,
|
|
164
163
|
';',
|
|
@@ -167,17 +166,19 @@ module.exports = define_grammar(objectscript_core, {
|
|
|
167
166
|
foreignkey: ($) =>
|
|
168
167
|
seq(
|
|
169
168
|
$.keyword_foreignkey,
|
|
170
|
-
alias($.
|
|
169
|
+
alias($._quote_permitting_identifier, $.foreignkey_name),
|
|
171
170
|
alias(token.immediate('('), $.bracket),
|
|
172
|
-
alias($.
|
|
173
|
-
repeat(
|
|
171
|
+
alias($._quote_permitting_identifier, $.property_name),
|
|
172
|
+
repeat(
|
|
173
|
+
seq(',', alias($._quote_permitting_identifier, $.property_name)),
|
|
174
|
+
),
|
|
174
175
|
alias(token.immediate(')'), $.bracket),
|
|
175
176
|
$.keyword_references,
|
|
176
|
-
alias($.
|
|
177
|
+
alias($._quote_permitting_identifier, $.class_name),
|
|
177
178
|
optional(
|
|
178
179
|
seq(
|
|
179
180
|
alias('(', $.bracket),
|
|
180
|
-
alias($.
|
|
181
|
+
alias($._quote_permitting_identifier, $.index_name),
|
|
181
182
|
alias(')', $.bracket),
|
|
182
183
|
),
|
|
183
184
|
),
|
|
@@ -206,7 +207,7 @@ module.exports = define_grammar(objectscript_core, {
|
|
|
206
207
|
parameter: ($) =>
|
|
207
208
|
seq(
|
|
208
209
|
$.keyword_parameter,
|
|
209
|
-
alias($.
|
|
210
|
+
alias($._quote_permitting_identifier, $.parameter_name),
|
|
210
211
|
optional($.parameter_type),
|
|
211
212
|
optional($.parameter_keywords),
|
|
212
213
|
optional(seq('=', $.default_argument_value)),
|
|
@@ -216,7 +217,7 @@ module.exports = define_grammar(objectscript_core, {
|
|
|
216
217
|
projection: ($) =>
|
|
217
218
|
seq(
|
|
218
219
|
$.keyword_projection,
|
|
219
|
-
alias($.
|
|
220
|
+
alias($._quote_permitting_identifier, $.projection_name),
|
|
220
221
|
$.return_type,
|
|
221
222
|
optional($.projection_keywords),
|
|
222
223
|
';',
|
|
@@ -226,14 +227,14 @@ module.exports = define_grammar(objectscript_core, {
|
|
|
226
227
|
choice(
|
|
227
228
|
seq(
|
|
228
229
|
$.keyword_index,
|
|
229
|
-
alias($.
|
|
230
|
+
alias($._quote_permitting_identifier, $.index_name),
|
|
230
231
|
seq($.keyword_on, $.index_properties),
|
|
231
232
|
optional($.index_keywords),
|
|
232
233
|
';',
|
|
233
234
|
),
|
|
234
235
|
seq(
|
|
235
236
|
$.keyword_index,
|
|
236
|
-
alias($.
|
|
237
|
+
alias($._quote_permitting_identifier, $.index_name),
|
|
237
238
|
$.extent_index_keywords,
|
|
238
239
|
';',
|
|
239
240
|
),
|
|
@@ -248,7 +249,7 @@ module.exports = define_grammar(objectscript_core, {
|
|
|
248
249
|
seq($.index_property, optional(seq($.keyword_as, $.index_type))),
|
|
249
250
|
index_property: ($) =>
|
|
250
251
|
seq(
|
|
251
|
-
$.
|
|
252
|
+
$._quote_permitting_identifier,
|
|
252
253
|
optional(
|
|
253
254
|
seq(
|
|
254
255
|
alias('(', $.bracket),
|
|
@@ -278,7 +279,7 @@ module.exports = define_grammar(objectscript_core, {
|
|
|
278
279
|
xdata: ($) =>
|
|
279
280
|
seq(
|
|
280
281
|
$.keyword_xdata,
|
|
281
|
-
alias($.
|
|
282
|
+
alias($._quote_permitting_identifier, $.xdata_name),
|
|
282
283
|
choice($.xdata_xml, $.xdata_any),
|
|
283
284
|
),
|
|
284
285
|
|
|
@@ -296,14 +297,14 @@ module.exports = define_grammar(objectscript_core, {
|
|
|
296
297
|
storage: ($) =>
|
|
297
298
|
seq(
|
|
298
299
|
$.keyword_storage,
|
|
299
|
-
alias($.
|
|
300
|
+
alias($._quote_permitting_identifier, $.storage_name),
|
|
300
301
|
optional($.storage_keywords),
|
|
301
302
|
$.storage_body,
|
|
302
303
|
),
|
|
303
304
|
|
|
304
305
|
method_definition: ($) =>
|
|
305
306
|
seq(
|
|
306
|
-
alias($.
|
|
307
|
+
alias($._quote_permitting_identifier, $.method_name),
|
|
307
308
|
$.arguments,
|
|
308
309
|
optional($.return_type),
|
|
309
310
|
choice(
|
package/udl/src/node-types.json
CHANGED
|
@@ -3236,7 +3236,7 @@
|
|
|
3236
3236
|
"fields": {},
|
|
3237
3237
|
"children": {
|
|
3238
3238
|
"multiple": false,
|
|
3239
|
-
"required":
|
|
3239
|
+
"required": true,
|
|
3240
3240
|
"types": [
|
|
3241
3241
|
{
|
|
3242
3242
|
"type": "identifier",
|
|
@@ -3508,7 +3508,7 @@
|
|
|
3508
3508
|
"fields": {},
|
|
3509
3509
|
"children": {
|
|
3510
3510
|
"multiple": false,
|
|
3511
|
-
"required":
|
|
3511
|
+
"required": true,
|
|
3512
3512
|
"types": [
|
|
3513
3513
|
{
|
|
3514
3514
|
"type": "identifier",
|
|
@@ -3545,11 +3545,11 @@
|
|
|
3545
3545
|
"named": true
|
|
3546
3546
|
},
|
|
3547
3547
|
{
|
|
3548
|
-
"type": "
|
|
3548
|
+
"type": "identifier",
|
|
3549
3549
|
"named": true
|
|
3550
3550
|
},
|
|
3551
3551
|
{
|
|
3552
|
-
"type": "
|
|
3552
|
+
"type": "index_property_type",
|
|
3553
3553
|
"named": true
|
|
3554
3554
|
}
|
|
3555
3555
|
]
|
|
@@ -4854,7 +4854,7 @@
|
|
|
4854
4854
|
"fields": {},
|
|
4855
4855
|
"children": {
|
|
4856
4856
|
"multiple": false,
|
|
4857
|
-
"required":
|
|
4857
|
+
"required": true,
|
|
4858
4858
|
"types": [
|
|
4859
4859
|
{
|
|
4860
4860
|
"type": "identifier",
|
|
@@ -5450,7 +5450,7 @@
|
|
|
5450
5450
|
"fields": {},
|
|
5451
5451
|
"children": {
|
|
5452
5452
|
"multiple": false,
|
|
5453
|
-
"required":
|
|
5453
|
+
"required": true,
|
|
5454
5454
|
"types": [
|
|
5455
5455
|
{
|
|
5456
5456
|
"type": "identifier",
|
|
@@ -5690,21 +5690,6 @@
|
|
|
5690
5690
|
]
|
|
5691
5691
|
}
|
|
5692
5692
|
},
|
|
5693
|
-
{
|
|
5694
|
-
"type": "quote_permitting_identifier",
|
|
5695
|
-
"named": true,
|
|
5696
|
-
"fields": {},
|
|
5697
|
-
"children": {
|
|
5698
|
-
"multiple": false,
|
|
5699
|
-
"required": false,
|
|
5700
|
-
"types": [
|
|
5701
|
-
{
|
|
5702
|
-
"type": "identifier",
|
|
5703
|
-
"named": true
|
|
5704
|
-
}
|
|
5705
|
-
]
|
|
5706
|
-
}
|
|
5707
|
-
},
|
|
5708
5693
|
{
|
|
5709
5694
|
"type": "quoted_member_name",
|
|
5710
5695
|
"named": true,
|
|
@@ -5842,7 +5827,7 @@
|
|
|
5842
5827
|
"fields": {},
|
|
5843
5828
|
"children": {
|
|
5844
5829
|
"multiple": false,
|
|
5845
|
-
"required":
|
|
5830
|
+
"required": true,
|
|
5846
5831
|
"types": [
|
|
5847
5832
|
{
|
|
5848
5833
|
"type": "identifier",
|
|
@@ -6735,7 +6720,7 @@
|
|
|
6735
6720
|
"fields": {},
|
|
6736
6721
|
"children": {
|
|
6737
6722
|
"multiple": false,
|
|
6738
|
-
"required":
|
|
6723
|
+
"required": true,
|
|
6739
6724
|
"types": [
|
|
6740
6725
|
{
|
|
6741
6726
|
"type": "identifier",
|
|
@@ -7137,7 +7122,7 @@
|
|
|
7137
7122
|
"fields": {},
|
|
7138
7123
|
"children": {
|
|
7139
7124
|
"multiple": false,
|
|
7140
|
-
"required":
|
|
7125
|
+
"required": true,
|
|
7141
7126
|
"types": [
|
|
7142
7127
|
{
|
|
7143
7128
|
"type": "identifier",
|