minor fixes

This commit is contained in:
ProgramSnail 2023-07-17 23:14:39 +03:00
parent d218e02a78
commit befa2f0395
4 changed files with 1069 additions and 1064 deletions

View file

@ -13,9 +13,9 @@ module.exports = grammar({
// --- sources
source_file: $ => repeat1($.statement),
source_file: $ => repeat1($._statement),
statement: $ => choice(
_statement: $ => choice(
$.import,
$.type_definition,
$.function_definition,
@ -57,6 +57,7 @@ module.exports = grammar({
repeat(seq(
optional($.annotation_identifier),
$.argument_name_identifier,
optional('?'),
)),
optional(seq(':', repeat1(seq(
optional($.annotation_identifier),