tree-sitter-objectscript 1.7.4 → 1.7.5

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 CHANGED
@@ -17,10 +17,10 @@
17
17
  #define LANGUAGE_VERSION 15
18
18
  #define STATE_COUNT 26409
19
19
  #define LARGE_STATE_COUNT 14353
20
- #define SYMBOL_COUNT 599
20
+ #define SYMBOL_COUNT 600
21
21
  #define ALIAS_COUNT 5
22
- #define TOKEN_COUNT 289
23
- #define EXTERNAL_TOKEN_COUNT 29
22
+ #define TOKEN_COUNT 290
23
+ #define EXTERNAL_TOKEN_COUNT 30
24
24
  #define FIELD_COUNT 0
25
25
  #define MAX_ALIAS_SEQUENCE_LENGTH 11
26
26
  #define MAX_RESERVED_WORD_SET_SIZE 0
@@ -293,344 +293,345 @@ enum ts_symbol_identifiers {
293
293
  sym__argumentless_loop = 263,
294
294
  sym__whitespace = 264,
295
295
  sym_tag = 265,
296
- sym_angled_bracket_fenced_text = 266,
297
- sym_paren_fenced_text = 267,
298
- sym_embedded_sql_marker = 268,
299
- sym_embedded_sql_reverse_marker = 269,
300
- sym__line_comment_inner = 270,
301
- sym__block_comment_inner = 271,
302
- sym_macro_value_line_with_continue = 272,
303
- sym_sentinel = 273,
304
- sym__bol = 274,
305
- sym__termination = 275,
306
- sym__zbreak_device_termination = 276,
307
- sym__post_conditional_id = 277,
308
- sym__xecute_arg_invalid = 278,
309
- sym__zw_block = 279,
310
- sym_html_marker = 280,
311
- sym_html_marker_reversed = 281,
312
- sym_embedded_js_special_case = 282,
313
- sym_embedded_js_special_case_complete = 283,
314
- sym_pound_if_special_case = 284,
315
- sym_pound_if_special_case_else = 285,
316
- sym_pound_if_special_case_else_if = 286,
317
- sym_mnemonic = 287,
318
- sym_tag_end_if = 288,
319
- sym_source_file = 289,
320
- sym_expression = 290,
321
- sym_expr_atom = 291,
322
- sym_expr_tail = 292,
323
- sym_parenthetical_expression = 293,
324
- sym_unary_operator = 294,
325
- sym_binary_operator = 295,
326
- sym_pattern_operator = 296,
327
- sym_pattern_expression = 297,
328
- sym_class_method_call = 298,
329
- sym_class_ref = 299,
330
- sym_superclass_method_call = 300,
331
- sym_extrinsic_function = 301,
332
- sym_line_ref = 302,
333
- sym_label_offset = 303,
334
- sym_routine_ref = 304,
335
- sym_dollarsf = 305,
336
- sym_method_args = 306,
337
- sym_method_arg = 307,
338
- sym_byref_arg = 308,
339
- sym_variadic_arg = 309,
340
- sym_glvn = 310,
341
- sym_gvn = 311,
342
- sym_lvn = 312,
343
- sym_ssvn = 313,
344
- sym_sql_field_reference = 314,
345
- sym_sql_field_modifier = 315,
346
- sym_sql_field_identifier = 316,
347
- sym_oref_chain_expr = 317,
348
- sym_oref_chain_segment = 318,
349
- sym_oref_method = 319,
350
- sym_oref_property = 320,
351
- sym_instance_variable = 321,
352
- sym_member_name = 322,
353
- sym_oref_parameter = 323,
354
- sym_subscripts = 324,
355
- sym_relative_dot_method = 325,
356
- sym_relative_dot_property = 326,
357
- sym_relative_dot_parameter = 327,
358
- sym_system_defined_variable = 328,
359
- sym_system_defined_function = 329,
360
- sym_dollar_text = 330,
361
- sym_dollar_bitlogic = 331,
362
- sym_bitlogic_expression = 332,
363
- sym_bitlogic_atom = 333,
364
- sym_dollar_function = 334,
365
- sym_dollar_select = 335,
366
- sym_dollar_case = 336,
367
- sym_dollar_list = 337,
368
- sym_built_in_func_with_pos_options = 338,
369
- sym_dollar_method = 339,
370
- sym_dollar_arg_pair = 340,
371
- sym_dollar_func_pos = 341,
372
- sym_unary_expression = 342,
373
- sym_indirection = 343,
374
- sym_identifier_segment_immediate_special = 344,
375
- sym_identifier_segment_immediate = 345,
376
- sym_macro = 346,
377
- sym_macro_constant = 347,
378
- sym_macro_function = 348,
379
- sym_json_object_literal = 349,
380
- sym_json_object_literal_pair = 350,
381
- sym_json_objectscript_expr = 351,
382
- sym_json_literal = 352,
383
- sym_json_array_literal = 353,
384
- sym_json_boolean_literal = 354,
385
- sym_statements = 355,
386
- sym_line_comment_1 = 356,
387
- sym_line_comment_2 = 357,
388
- sym_line_comment_3 = 358,
389
- sym_line_comment_4 = 359,
390
- sym_block_comment = 360,
391
- sym_statement = 361,
392
- sym_keyword_pound_ifndef = 362,
393
- sym_keyword_quit = 363,
394
- sym_keyword_js = 364,
395
- sym_dotted_statement = 365,
396
- sym_variable_datatype = 366,
397
- sym_pound_dim = 367,
398
- sym_pound_define = 368,
399
- sym_pound_define_variable_args = 369,
400
- sym_pound_def1arg = 370,
401
- sym_pound_def1arg_variable_arg = 371,
402
- sym_pound_if = 372,
403
- sym_pound_ifdef = 373,
404
- sym_pound_ifndef = 374,
405
- sym_pound_elseif = 375,
406
- sym_pound_else = 376,
407
- sym_pound_import = 377,
408
- sym_pound_include = 378,
409
- sym_macro_value_line = 379,
410
- sym_macro_value = 380,
411
- sym_command_set = 381,
412
- sym_set_argument = 382,
413
- sym_set_target_list = 383,
414
- sym_set_target = 384,
415
- sym_oref_set_target = 385,
416
- sym_command_write = 386,
417
- sym_write_argument = 387,
418
- sym_write_device_control = 388,
419
- sym_write_device_fflf = 389,
420
- sym_write_device_tab = 390,
421
- sym_write_device_char = 391,
422
- sym_write_mnemonic = 392,
423
- sym_mnemonic_name = 393,
424
- sym_command_do = 394,
425
- sym_do_parameter = 395,
426
- sym_instance_method_call = 396,
427
- sym_routine_tag_call = 397,
428
- sym_print_statement = 398,
429
- sym_print_argument = 399,
430
- sym_command_for = 400,
431
- sym_for_parameter = 401,
432
- sym_for_parameter_arg = 402,
433
- sym_command_while = 403,
434
- sym_command_kill = 404,
435
- sym_kill_argument = 405,
436
- sym_kill_target = 406,
437
- sym_command_lock = 407,
438
- sym_command_lock_argument = 408,
439
- sym_command_lock_arguments_variant_1 = 409,
440
- sym_command_lock_arguments_variant_2 = 410,
441
- sym_locktype = 411,
442
- sym_timeout = 412,
443
- sym_command_read = 413,
444
- sym_read_argument = 414,
445
- sym_read_fchar = 415,
446
- sym_read_variable = 416,
447
- sym_command_open = 417,
448
- sym_open_argument = 418,
449
- sym_command_close = 419,
450
- sym_close_parameters = 420,
451
- sym_close_argument = 421,
452
- sym_close_rename = 422,
453
- sym_close_parameter_option_value = 423,
454
- sym_use_argument = 424,
455
- sym_device_keywords = 425,
456
- sym_open_parameters = 426,
457
- sym_command_use = 427,
458
- sym_command_dowhile = 428,
459
- sym_command_new = 429,
460
- sym_command_new_argument = 430,
461
- sym_command_new_item = 431,
462
- sym_command_if = 432,
463
- sym_command_else = 433,
464
- sym_elseif_block = 434,
465
- sym_else_block = 435,
466
- sym_command_throw = 436,
467
- sym_command_trycatch = 437,
468
- sym_catch_block = 438,
469
- sym_command_job = 439,
470
- sym_job_argument = 440,
471
- sym_command_break = 441,
472
- sym_command_merge = 442,
473
- sym_merge_argument = 443,
474
- sym_command_return = 444,
475
- sym_command_quit = 445,
476
- sym_command_goto = 446,
477
- sym_goto_argument = 447,
478
- sym_command_halt_or_hang = 448,
479
- sym_command_continue = 449,
480
- sym_command_tcommit = 450,
481
- sym_command_trollback = 451,
482
- sym_command_tstart = 452,
483
- sym_xecute_argument = 453,
484
- sym_command_xecute = 454,
485
- sym_command_view = 455,
486
- sym_view_parameter = 456,
487
- sym_command_zbreak = 457,
488
- sym_zbreak_arg = 458,
489
- sym_zbreak_location = 459,
490
- sym_zbreak_condition = 460,
491
- sym_zbreak_arguments = 461,
492
- sym_device = 462,
493
- sym_command_zkill = 463,
494
- sym_command_zn = 464,
495
- sym_command_zsu = 465,
496
- sym_command_ztrap = 466,
497
- sym_command_zwrite = 467,
498
- sym_command_zz = 468,
499
- sym_embedded_html = 469,
500
- sym_embedded_xml = 470,
501
- sym_embedded_sql = 471,
502
- sym_embedded_sql_amp = 472,
503
- sym_embedded_sql_hash = 473,
504
- sym_embedded_js = 474,
505
- sym_tag_with_params = 475,
506
- sym_procedure_pub_vars = 476,
507
- sym_procedure = 477,
508
- sym_objectscript_built_in_command = 478,
509
- sym_command_zload = 479,
510
- sym_commands_with_printlist = 480,
511
- sym_parameter_list = 481,
512
- sym_command_macro = 482,
513
- sym_tag_parameter = 483,
514
- sym_post_conditional = 484,
515
- sym_json_array_literal_post_cond = 485,
516
- sym_json_boolean_literal_post_cond = 486,
517
- sym_json_literal_post_cond = 487,
518
- sym_json_objectscript_expr_post_cond = 488,
519
- sym_json_object_literal_pair_post_cond = 489,
520
- sym_json_object_literal_post_cond = 490,
521
- sym_parenthetical_expression_post_cond = 491,
522
- sym_macro_function_post_cond = 492,
523
- sym_macro_constant_post_cond = 493,
524
- sym_macro_post_cond = 494,
525
- sym_objectscript_identifier_post_cond = 495,
526
- sym_objectscript_identifier_special_post_cond = 496,
527
- sym_lvn_post_cond = 497,
528
- sym_gvn_post_cond = 498,
529
- sym_identifier_segment_immediate_post_cond = 499,
530
- sym_identifier_segment_immediate_special_post_cond = 500,
531
- sym_ssvn_post_cond = 501,
532
- sym_member_name_post_cond = 502,
533
- sym_instance_variable_post_cond = 503,
534
- sym_sql_field_identifier_post_cond = 504,
535
- sym_sql_field_modifier_post_cond = 505,
536
- sym_sql_field_reference_post_cond = 506,
537
- sym_system_defined_variable_post_cond = 507,
538
- sym_label_offset_post_cond = 508,
539
- sym_routine_ref_post_cond = 509,
540
- sym_indirection_post_cond = 510,
541
- sym_extrinsic_function_post_cond = 511,
542
- sym_oref_property_post_cond = 512,
543
- sym_relative_dot_property_post_cond = 513,
544
- sym_oref_method_post_cond = 514,
545
- sym_relative_dot_method_post_cond = 515,
546
- sym_oref_parameter_post_cond = 516,
547
- sym_relative_dot_parameter_post_cond = 517,
548
- sym_class_name_post_cond = 518,
549
- sym_class_ref_post_cond = 519,
550
- sym_class_method_call_post_cond = 520,
551
- sym_oref_chain_segment_post_cond = 521,
552
- sym_oref_chain_expr_post_cond = 522,
553
- sym_superclass_method_call_post_cond = 523,
554
- sym_unary_operator_post_cond = 524,
555
- sym_unary_expression_post_cond = 525,
556
- sym_expr_atom_post_cond = 526,
557
- sym_binary_operator_post_cond = 527,
558
- sym_pattern_expression_post_cond = 528,
559
- sym_pattern_operator_post_cond = 529,
560
- sym_expr_tail_post_cond = 530,
561
- sym_expression_post_cond = 531,
562
- aux_sym_expression_repeat1 = 532,
563
- aux_sym_routine_ref_repeat1 = 533,
564
- aux_sym_dollarsf_repeat1 = 534,
565
- aux_sym_method_args_repeat1 = 535,
566
- aux_sym_sql_field_reference_repeat1 = 536,
567
- aux_sym_sql_field_identifier_repeat1 = 537,
568
- aux_sym_member_name_repeat1 = 538,
569
- aux_sym_subscripts_repeat1 = 539,
570
- aux_sym_bitlogic_expression_repeat1 = 540,
571
- aux_sym_dollar_select_repeat1 = 541,
572
- aux_sym_dollar_case_repeat1 = 542,
573
- aux_sym_dollar_list_repeat1 = 543,
574
- aux_sym_built_in_func_with_pos_options_repeat1 = 544,
575
- aux_sym_json_object_literal_repeat1 = 545,
576
- aux_sym_json_array_literal_repeat1 = 546,
577
- aux_sym_statements_repeat1 = 547,
578
- aux_sym_dotted_statement_repeat1 = 548,
579
- aux_sym_variable_datatype_repeat1 = 549,
580
- aux_sym_pound_dim_repeat1 = 550,
581
- aux_sym_pound_define_variable_args_repeat1 = 551,
582
- aux_sym_pound_if_repeat1 = 552,
583
- aux_sym_pound_import_repeat1 = 553,
584
- aux_sym_macro_value_repeat1 = 554,
585
- aux_sym_command_set_repeat1 = 555,
586
- aux_sym_set_target_list_repeat1 = 556,
587
- aux_sym_command_write_repeat1 = 557,
588
- aux_sym_write_device_fflf_repeat1 = 558,
589
- aux_sym_command_do_repeat1 = 559,
590
- aux_sym_command_do_repeat2 = 560,
591
- aux_sym_command_do_repeat3 = 561,
592
- aux_sym_command_for_repeat1 = 562,
593
- aux_sym_for_parameter_repeat1 = 563,
594
- aux_sym_command_kill_repeat1 = 564,
595
- aux_sym_kill_argument_repeat1 = 565,
596
- aux_sym_command_lock_repeat1 = 566,
597
- aux_sym_command_lock_arguments_variant_2_repeat1 = 567,
598
- aux_sym_command_read_repeat1 = 568,
599
- aux_sym_read_argument_repeat1 = 569,
600
- aux_sym_command_open_repeat1 = 570,
601
- aux_sym_command_close_repeat1 = 571,
602
- aux_sym_close_parameters_repeat1 = 572,
603
- aux_sym_open_parameters_repeat1 = 573,
604
- aux_sym_command_use_repeat1 = 574,
605
- aux_sym_command_new_repeat1 = 575,
606
- aux_sym_command_new_argument_repeat1 = 576,
607
- aux_sym_command_if_repeat1 = 577,
608
- aux_sym_command_job_repeat1 = 578,
609
- aux_sym_job_argument_repeat1 = 579,
610
- aux_sym_command_merge_repeat1 = 580,
611
- aux_sym_command_return_repeat1 = 581,
612
- aux_sym_command_goto_repeat1 = 582,
613
- aux_sym_xecute_argument_repeat1 = 583,
614
- aux_sym_command_xecute_repeat1 = 584,
615
- aux_sym_zbreak_arguments_repeat1 = 585,
616
- aux_sym_device_repeat1 = 586,
617
- aux_sym_command_zkill_repeat1 = 587,
618
- aux_sym_procedure_pub_vars_repeat1 = 588,
619
- aux_sym_commands_with_printlist_repeat1 = 589,
620
- aux_sym_parameter_list_repeat1 = 590,
621
- aux_sym_json_array_literal_post_cond_repeat1 = 591,
622
- aux_sym_json_object_literal_post_cond_repeat1 = 592,
623
- aux_sym_gvn_post_cond_repeat1 = 593,
624
- aux_sym_member_name_post_cond_repeat1 = 594,
625
- aux_sym_sql_field_identifier_post_cond_repeat1 = 595,
626
- aux_sym_sql_field_reference_post_cond_repeat1 = 596,
627
- aux_sym_oref_chain_expr_post_cond_repeat1 = 597,
628
- aux_sym_expression_post_cond_repeat1 = 598,
629
- alias_sym_bracket = 599,
630
- alias_sym_do_statement_after = 600,
631
- alias_sym_macro_def = 601,
632
- alias_sym_method_name = 602,
633
- alias_sym_property_name = 603,
296
+ sym_routine = 266,
297
+ sym_angled_bracket_fenced_text = 267,
298
+ sym_paren_fenced_text = 268,
299
+ sym_embedded_sql_marker = 269,
300
+ sym_embedded_sql_reverse_marker = 270,
301
+ sym__line_comment_inner = 271,
302
+ sym__block_comment_inner = 272,
303
+ sym_macro_value_line_with_continue = 273,
304
+ sym_sentinel = 274,
305
+ sym__bol = 275,
306
+ sym__termination = 276,
307
+ sym__zbreak_device_termination = 277,
308
+ sym__post_conditional_id = 278,
309
+ sym__xecute_arg_invalid = 279,
310
+ sym__zw_block = 280,
311
+ sym_html_marker = 281,
312
+ sym_html_marker_reversed = 282,
313
+ sym_embedded_js_special_case = 283,
314
+ sym_embedded_js_special_case_complete = 284,
315
+ sym_pound_if_special_case = 285,
316
+ sym_pound_if_special_case_else = 286,
317
+ sym_pound_if_special_case_else_if = 287,
318
+ sym_mnemonic = 288,
319
+ sym_tag_end_if = 289,
320
+ sym_source_file = 290,
321
+ sym_expression = 291,
322
+ sym_expr_atom = 292,
323
+ sym_expr_tail = 293,
324
+ sym_parenthetical_expression = 294,
325
+ sym_unary_operator = 295,
326
+ sym_binary_operator = 296,
327
+ sym_pattern_operator = 297,
328
+ sym_pattern_expression = 298,
329
+ sym_class_method_call = 299,
330
+ sym_class_ref = 300,
331
+ sym_superclass_method_call = 301,
332
+ sym_extrinsic_function = 302,
333
+ sym_line_ref = 303,
334
+ sym_label_offset = 304,
335
+ sym_routine_ref = 305,
336
+ sym_dollarsf = 306,
337
+ sym_method_args = 307,
338
+ sym_method_arg = 308,
339
+ sym_byref_arg = 309,
340
+ sym_variadic_arg = 310,
341
+ sym_glvn = 311,
342
+ sym_gvn = 312,
343
+ sym_lvn = 313,
344
+ sym_ssvn = 314,
345
+ sym_sql_field_reference = 315,
346
+ sym_sql_field_modifier = 316,
347
+ sym_sql_field_identifier = 317,
348
+ sym_oref_chain_expr = 318,
349
+ sym_oref_chain_segment = 319,
350
+ sym_oref_method = 320,
351
+ sym_oref_property = 321,
352
+ sym_instance_variable = 322,
353
+ sym_member_name = 323,
354
+ sym_oref_parameter = 324,
355
+ sym_subscripts = 325,
356
+ sym_relative_dot_method = 326,
357
+ sym_relative_dot_property = 327,
358
+ sym_relative_dot_parameter = 328,
359
+ sym_system_defined_variable = 329,
360
+ sym_system_defined_function = 330,
361
+ sym_dollar_text = 331,
362
+ sym_dollar_bitlogic = 332,
363
+ sym_bitlogic_expression = 333,
364
+ sym_bitlogic_atom = 334,
365
+ sym_dollar_function = 335,
366
+ sym_dollar_select = 336,
367
+ sym_dollar_case = 337,
368
+ sym_dollar_list = 338,
369
+ sym_built_in_func_with_pos_options = 339,
370
+ sym_dollar_method = 340,
371
+ sym_dollar_arg_pair = 341,
372
+ sym_dollar_func_pos = 342,
373
+ sym_unary_expression = 343,
374
+ sym_indirection = 344,
375
+ sym_identifier_segment_immediate_special = 345,
376
+ sym_identifier_segment_immediate = 346,
377
+ sym_macro = 347,
378
+ sym_macro_constant = 348,
379
+ sym_macro_function = 349,
380
+ sym_json_object_literal = 350,
381
+ sym_json_object_literal_pair = 351,
382
+ sym_json_objectscript_expr = 352,
383
+ sym_json_literal = 353,
384
+ sym_json_array_literal = 354,
385
+ sym_json_boolean_literal = 355,
386
+ sym_statements = 356,
387
+ sym_line_comment_1 = 357,
388
+ sym_line_comment_2 = 358,
389
+ sym_line_comment_3 = 359,
390
+ sym_line_comment_4 = 360,
391
+ sym_block_comment = 361,
392
+ sym_statement = 362,
393
+ sym_keyword_pound_ifndef = 363,
394
+ sym_keyword_quit = 364,
395
+ sym_keyword_js = 365,
396
+ sym_dotted_statement = 366,
397
+ sym_variable_datatype = 367,
398
+ sym_pound_dim = 368,
399
+ sym_pound_define = 369,
400
+ sym_pound_define_variable_args = 370,
401
+ sym_pound_def1arg = 371,
402
+ sym_pound_def1arg_variable_arg = 372,
403
+ sym_pound_if = 373,
404
+ sym_pound_ifdef = 374,
405
+ sym_pound_ifndef = 375,
406
+ sym_pound_elseif = 376,
407
+ sym_pound_else = 377,
408
+ sym_pound_import = 378,
409
+ sym_pound_include = 379,
410
+ sym_macro_value_line = 380,
411
+ sym_macro_value = 381,
412
+ sym_command_set = 382,
413
+ sym_set_argument = 383,
414
+ sym_set_target_list = 384,
415
+ sym_set_target = 385,
416
+ sym_oref_set_target = 386,
417
+ sym_command_write = 387,
418
+ sym_write_argument = 388,
419
+ sym_write_device_control = 389,
420
+ sym_write_device_fflf = 390,
421
+ sym_write_device_tab = 391,
422
+ sym_write_device_char = 392,
423
+ sym_write_mnemonic = 393,
424
+ sym_mnemonic_name = 394,
425
+ sym_command_do = 395,
426
+ sym_do_parameter = 396,
427
+ sym_instance_method_call = 397,
428
+ sym_routine_tag_call = 398,
429
+ sym_print_statement = 399,
430
+ sym_print_argument = 400,
431
+ sym_command_for = 401,
432
+ sym_for_parameter = 402,
433
+ sym_for_parameter_arg = 403,
434
+ sym_command_while = 404,
435
+ sym_command_kill = 405,
436
+ sym_kill_argument = 406,
437
+ sym_kill_target = 407,
438
+ sym_command_lock = 408,
439
+ sym_command_lock_argument = 409,
440
+ sym_command_lock_arguments_variant_1 = 410,
441
+ sym_command_lock_arguments_variant_2 = 411,
442
+ sym_locktype = 412,
443
+ sym_timeout = 413,
444
+ sym_command_read = 414,
445
+ sym_read_argument = 415,
446
+ sym_read_fchar = 416,
447
+ sym_read_variable = 417,
448
+ sym_command_open = 418,
449
+ sym_open_argument = 419,
450
+ sym_command_close = 420,
451
+ sym_close_parameters = 421,
452
+ sym_close_argument = 422,
453
+ sym_close_rename = 423,
454
+ sym_close_parameter_option_value = 424,
455
+ sym_use_argument = 425,
456
+ sym_device_keywords = 426,
457
+ sym_open_parameters = 427,
458
+ sym_command_use = 428,
459
+ sym_command_dowhile = 429,
460
+ sym_command_new = 430,
461
+ sym_command_new_argument = 431,
462
+ sym_command_new_item = 432,
463
+ sym_command_if = 433,
464
+ sym_command_else = 434,
465
+ sym_elseif_block = 435,
466
+ sym_else_block = 436,
467
+ sym_command_throw = 437,
468
+ sym_command_trycatch = 438,
469
+ sym_catch_block = 439,
470
+ sym_command_job = 440,
471
+ sym_job_argument = 441,
472
+ sym_command_break = 442,
473
+ sym_command_merge = 443,
474
+ sym_merge_argument = 444,
475
+ sym_command_return = 445,
476
+ sym_command_quit = 446,
477
+ sym_command_goto = 447,
478
+ sym_goto_argument = 448,
479
+ sym_command_halt_or_hang = 449,
480
+ sym_command_continue = 450,
481
+ sym_command_tcommit = 451,
482
+ sym_command_trollback = 452,
483
+ sym_command_tstart = 453,
484
+ sym_xecute_argument = 454,
485
+ sym_command_xecute = 455,
486
+ sym_command_view = 456,
487
+ sym_view_parameter = 457,
488
+ sym_command_zbreak = 458,
489
+ sym_zbreak_arg = 459,
490
+ sym_zbreak_location = 460,
491
+ sym_zbreak_condition = 461,
492
+ sym_zbreak_arguments = 462,
493
+ sym_device = 463,
494
+ sym_command_zkill = 464,
495
+ sym_command_zn = 465,
496
+ sym_command_zsu = 466,
497
+ sym_command_ztrap = 467,
498
+ sym_command_zwrite = 468,
499
+ sym_command_zz = 469,
500
+ sym_embedded_html = 470,
501
+ sym_embedded_xml = 471,
502
+ sym_embedded_sql = 472,
503
+ sym_embedded_sql_amp = 473,
504
+ sym_embedded_sql_hash = 474,
505
+ sym_embedded_js = 475,
506
+ sym_tag_with_params = 476,
507
+ sym_procedure_pub_vars = 477,
508
+ sym_procedure = 478,
509
+ sym_objectscript_built_in_command = 479,
510
+ sym_command_zload = 480,
511
+ sym_commands_with_printlist = 481,
512
+ sym_parameter_list = 482,
513
+ sym_command_macro = 483,
514
+ sym_tag_parameter = 484,
515
+ sym_post_conditional = 485,
516
+ sym_json_array_literal_post_cond = 486,
517
+ sym_json_boolean_literal_post_cond = 487,
518
+ sym_json_literal_post_cond = 488,
519
+ sym_json_objectscript_expr_post_cond = 489,
520
+ sym_json_object_literal_pair_post_cond = 490,
521
+ sym_json_object_literal_post_cond = 491,
522
+ sym_parenthetical_expression_post_cond = 492,
523
+ sym_macro_function_post_cond = 493,
524
+ sym_macro_constant_post_cond = 494,
525
+ sym_macro_post_cond = 495,
526
+ sym_objectscript_identifier_post_cond = 496,
527
+ sym_objectscript_identifier_special_post_cond = 497,
528
+ sym_lvn_post_cond = 498,
529
+ sym_gvn_post_cond = 499,
530
+ sym_identifier_segment_immediate_post_cond = 500,
531
+ sym_identifier_segment_immediate_special_post_cond = 501,
532
+ sym_ssvn_post_cond = 502,
533
+ sym_member_name_post_cond = 503,
534
+ sym_instance_variable_post_cond = 504,
535
+ sym_sql_field_identifier_post_cond = 505,
536
+ sym_sql_field_modifier_post_cond = 506,
537
+ sym_sql_field_reference_post_cond = 507,
538
+ sym_system_defined_variable_post_cond = 508,
539
+ sym_label_offset_post_cond = 509,
540
+ sym_routine_ref_post_cond = 510,
541
+ sym_indirection_post_cond = 511,
542
+ sym_extrinsic_function_post_cond = 512,
543
+ sym_oref_property_post_cond = 513,
544
+ sym_relative_dot_property_post_cond = 514,
545
+ sym_oref_method_post_cond = 515,
546
+ sym_relative_dot_method_post_cond = 516,
547
+ sym_oref_parameter_post_cond = 517,
548
+ sym_relative_dot_parameter_post_cond = 518,
549
+ sym_class_name_post_cond = 519,
550
+ sym_class_ref_post_cond = 520,
551
+ sym_class_method_call_post_cond = 521,
552
+ sym_oref_chain_segment_post_cond = 522,
553
+ sym_oref_chain_expr_post_cond = 523,
554
+ sym_superclass_method_call_post_cond = 524,
555
+ sym_unary_operator_post_cond = 525,
556
+ sym_unary_expression_post_cond = 526,
557
+ sym_expr_atom_post_cond = 527,
558
+ sym_binary_operator_post_cond = 528,
559
+ sym_pattern_expression_post_cond = 529,
560
+ sym_pattern_operator_post_cond = 530,
561
+ sym_expr_tail_post_cond = 531,
562
+ sym_expression_post_cond = 532,
563
+ aux_sym_expression_repeat1 = 533,
564
+ aux_sym_routine_ref_repeat1 = 534,
565
+ aux_sym_dollarsf_repeat1 = 535,
566
+ aux_sym_method_args_repeat1 = 536,
567
+ aux_sym_sql_field_reference_repeat1 = 537,
568
+ aux_sym_sql_field_identifier_repeat1 = 538,
569
+ aux_sym_member_name_repeat1 = 539,
570
+ aux_sym_subscripts_repeat1 = 540,
571
+ aux_sym_bitlogic_expression_repeat1 = 541,
572
+ aux_sym_dollar_select_repeat1 = 542,
573
+ aux_sym_dollar_case_repeat1 = 543,
574
+ aux_sym_dollar_list_repeat1 = 544,
575
+ aux_sym_built_in_func_with_pos_options_repeat1 = 545,
576
+ aux_sym_json_object_literal_repeat1 = 546,
577
+ aux_sym_json_array_literal_repeat1 = 547,
578
+ aux_sym_statements_repeat1 = 548,
579
+ aux_sym_dotted_statement_repeat1 = 549,
580
+ aux_sym_variable_datatype_repeat1 = 550,
581
+ aux_sym_pound_dim_repeat1 = 551,
582
+ aux_sym_pound_define_variable_args_repeat1 = 552,
583
+ aux_sym_pound_if_repeat1 = 553,
584
+ aux_sym_pound_import_repeat1 = 554,
585
+ aux_sym_macro_value_repeat1 = 555,
586
+ aux_sym_command_set_repeat1 = 556,
587
+ aux_sym_set_target_list_repeat1 = 557,
588
+ aux_sym_command_write_repeat1 = 558,
589
+ aux_sym_write_device_fflf_repeat1 = 559,
590
+ aux_sym_command_do_repeat1 = 560,
591
+ aux_sym_command_do_repeat2 = 561,
592
+ aux_sym_command_do_repeat3 = 562,
593
+ aux_sym_command_for_repeat1 = 563,
594
+ aux_sym_for_parameter_repeat1 = 564,
595
+ aux_sym_command_kill_repeat1 = 565,
596
+ aux_sym_kill_argument_repeat1 = 566,
597
+ aux_sym_command_lock_repeat1 = 567,
598
+ aux_sym_command_lock_arguments_variant_2_repeat1 = 568,
599
+ aux_sym_command_read_repeat1 = 569,
600
+ aux_sym_read_argument_repeat1 = 570,
601
+ aux_sym_command_open_repeat1 = 571,
602
+ aux_sym_command_close_repeat1 = 572,
603
+ aux_sym_close_parameters_repeat1 = 573,
604
+ aux_sym_open_parameters_repeat1 = 574,
605
+ aux_sym_command_use_repeat1 = 575,
606
+ aux_sym_command_new_repeat1 = 576,
607
+ aux_sym_command_new_argument_repeat1 = 577,
608
+ aux_sym_command_if_repeat1 = 578,
609
+ aux_sym_command_job_repeat1 = 579,
610
+ aux_sym_job_argument_repeat1 = 580,
611
+ aux_sym_command_merge_repeat1 = 581,
612
+ aux_sym_command_return_repeat1 = 582,
613
+ aux_sym_command_goto_repeat1 = 583,
614
+ aux_sym_xecute_argument_repeat1 = 584,
615
+ aux_sym_command_xecute_repeat1 = 585,
616
+ aux_sym_zbreak_arguments_repeat1 = 586,
617
+ aux_sym_device_repeat1 = 587,
618
+ aux_sym_command_zkill_repeat1 = 588,
619
+ aux_sym_procedure_pub_vars_repeat1 = 589,
620
+ aux_sym_commands_with_printlist_repeat1 = 590,
621
+ aux_sym_parameter_list_repeat1 = 591,
622
+ aux_sym_json_array_literal_post_cond_repeat1 = 592,
623
+ aux_sym_json_object_literal_post_cond_repeat1 = 593,
624
+ aux_sym_gvn_post_cond_repeat1 = 594,
625
+ aux_sym_member_name_post_cond_repeat1 = 595,
626
+ aux_sym_sql_field_identifier_post_cond_repeat1 = 596,
627
+ aux_sym_sql_field_reference_post_cond_repeat1 = 597,
628
+ aux_sym_oref_chain_expr_post_cond_repeat1 = 598,
629
+ aux_sym_expression_post_cond_repeat1 = 599,
630
+ alias_sym_bracket = 600,
631
+ alias_sym_do_statement_after = 601,
632
+ alias_sym_macro_def = 602,
633
+ alias_sym_method_name = 603,
634
+ alias_sym_property_name = 604,
634
635
  };
635
636
 
636
637
  static const char * const ts_symbol_names[] = {
@@ -900,6 +901,7 @@ static const char * const ts_symbol_names[] = {
900
901
  [sym__argumentless_loop] = "_argumentless_loop",
901
902
  [sym__whitespace] = "_whitespace",
902
903
  [sym_tag] = "tag",
904
+ [sym_routine] = "routine",
903
905
  [sym_angled_bracket_fenced_text] = "angled_bracket_fenced_text",
904
906
  [sym_paren_fenced_text] = "paren_fenced_text",
905
907
  [sym_embedded_sql_marker] = "embedded_sql_marker",
@@ -1507,6 +1509,7 @@ static const TSSymbol ts_symbol_map[] = {
1507
1509
  [sym__argumentless_loop] = sym__argumentless_loop,
1508
1510
  [sym__whitespace] = sym__whitespace,
1509
1511
  [sym_tag] = sym_tag,
1512
+ [sym_routine] = sym_routine,
1510
1513
  [sym_angled_bracket_fenced_text] = sym_angled_bracket_fenced_text,
1511
1514
  [sym_paren_fenced_text] = sym_paren_fenced_text,
1512
1515
  [sym_embedded_sql_marker] = sym_embedded_sql_marker,
@@ -2912,6 +2915,10 @@ static const TSSymbolMetadata ts_symbol_metadata[] = {
2912
2915
  .visible = true,
2913
2916
  .named = true,
2914
2917
  },
2918
+ [sym_routine] = {
2919
+ .visible = true,
2920
+ .named = true,
2921
+ },
2915
2922
  [sym_angled_bracket_fenced_text] = {
2916
2923
  .visible = true,
2917
2924
  .named = true,
@@ -73744,6 +73751,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
73744
73751
  [sym__argumentless_loop] = ACTIONS(1),
73745
73752
  [sym__whitespace] = ACTIONS(13),
73746
73753
  [sym_tag] = ACTIONS(1),
73754
+ [sym_routine] = ACTIONS(1),
73747
73755
  [sym_angled_bracket_fenced_text] = ACTIONS(1),
73748
73756
  [sym_paren_fenced_text] = ACTIONS(1),
73749
73757
  [sym_embedded_sql_marker] = ACTIONS(1),
@@ -1979730,29 +1979738,30 @@ enum ts_external_scanner_symbol_identifiers {
1979730
1979738
  ts_external_token__argumentless_loop = 3,
1979731
1979739
  ts_external_token__whitespace = 4,
1979732
1979740
  ts_external_token_tag = 5,
1979733
- ts_external_token_angled_bracket_fenced_text = 6,
1979734
- ts_external_token_paren_fenced_text = 7,
1979735
- ts_external_token_embedded_sql_marker = 8,
1979736
- ts_external_token_embedded_sql_reverse_marker = 9,
1979737
- ts_external_token__line_comment_inner = 10,
1979738
- ts_external_token__block_comment_inner = 11,
1979739
- ts_external_token_macro_value_line_with_continue = 12,
1979740
- ts_external_token_sentinel = 13,
1979741
- ts_external_token__bol = 14,
1979742
- ts_external_token__termination = 15,
1979743
- ts_external_token__zbreak_device_termination = 16,
1979744
- ts_external_token__post_conditional_id = 17,
1979745
- ts_external_token__xecute_arg_invalid = 18,
1979746
- ts_external_token__zw_block = 19,
1979747
- ts_external_token_html_marker = 20,
1979748
- ts_external_token_html_marker_reversed = 21,
1979749
- ts_external_token_embedded_js_special_case = 22,
1979750
- ts_external_token_embedded_js_special_case_complete = 23,
1979751
- ts_external_token_pound_if_special_case = 24,
1979752
- ts_external_token_pound_if_special_case_else = 25,
1979753
- ts_external_token_pound_if_special_case_else_if = 26,
1979754
- ts_external_token_mnemonic = 27,
1979755
- ts_external_token_tag_end_if = 28,
1979741
+ ts_external_token_routine = 6,
1979742
+ ts_external_token_angled_bracket_fenced_text = 7,
1979743
+ ts_external_token_paren_fenced_text = 8,
1979744
+ ts_external_token_embedded_sql_marker = 9,
1979745
+ ts_external_token_embedded_sql_reverse_marker = 10,
1979746
+ ts_external_token__line_comment_inner = 11,
1979747
+ ts_external_token__block_comment_inner = 12,
1979748
+ ts_external_token_macro_value_line_with_continue = 13,
1979749
+ ts_external_token_sentinel = 14,
1979750
+ ts_external_token__bol = 15,
1979751
+ ts_external_token__termination = 16,
1979752
+ ts_external_token__zbreak_device_termination = 17,
1979753
+ ts_external_token__post_conditional_id = 18,
1979754
+ ts_external_token__xecute_arg_invalid = 19,
1979755
+ ts_external_token__zw_block = 20,
1979756
+ ts_external_token_html_marker = 21,
1979757
+ ts_external_token_html_marker_reversed = 22,
1979758
+ ts_external_token_embedded_js_special_case = 23,
1979759
+ ts_external_token_embedded_js_special_case_complete = 24,
1979760
+ ts_external_token_pound_if_special_case = 25,
1979761
+ ts_external_token_pound_if_special_case_else = 26,
1979762
+ ts_external_token_pound_if_special_case_else_if = 27,
1979763
+ ts_external_token_mnemonic = 28,
1979764
+ ts_external_token_tag_end_if = 29,
1979756
1979765
  };
1979757
1979766
 
1979758
1979767
  static const TSSymbol ts_external_scanner_symbol_map[EXTERNAL_TOKEN_COUNT] = {
@@ -1979762,6 +1979771,7 @@ static const TSSymbol ts_external_scanner_symbol_map[EXTERNAL_TOKEN_COUNT] = {
1979762
1979771
  [ts_external_token__argumentless_loop] = sym__argumentless_loop,
1979763
1979772
  [ts_external_token__whitespace] = sym__whitespace,
1979764
1979773
  [ts_external_token_tag] = sym_tag,
1979774
+ [ts_external_token_routine] = sym_routine,
1979765
1979775
  [ts_external_token_angled_bracket_fenced_text] = sym_angled_bracket_fenced_text,
1979766
1979776
  [ts_external_token_paren_fenced_text] = sym_paren_fenced_text,
1979767
1979777
  [ts_external_token_embedded_sql_marker] = sym_embedded_sql_marker,
@@ -1979795,6 +1979805,7 @@ static const bool ts_external_scanner_states[47][EXTERNAL_TOKEN_COUNT] = {
1979795
1979805
  [ts_external_token__argumentless_loop] = true,
1979796
1979806
  [ts_external_token__whitespace] = true,
1979797
1979807
  [ts_external_token_tag] = true,
1979808
+ [ts_external_token_routine] = true,
1979798
1979809
  [ts_external_token_angled_bracket_fenced_text] = true,
1979799
1979810
  [ts_external_token_paren_fenced_text] = true,
1979800
1979811
  [ts_external_token_embedded_sql_marker] = true,
@@ -1980126,7 +1980137,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_objectscript_core(void) {
1980126
1980137
  .metadata = {
1980127
1980138
  .major_version = 1,
1980128
1980139
  .minor_version = 7,
1980129
- .patch_version = 4,
1980140
+ .patch_version = 5,
1980130
1980141
  },
1980131
1980142
  };
1980132
1980143
  return &language;