mirror of
https://codeberg.org/ProgramSnail/tree-sitter-lang.git
synced 2026-01-02 20:08:17 +00:00
minor fixes
This commit is contained in:
parent
d218e02a78
commit
befa2f0395
4 changed files with 1069 additions and 1064 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue