mirror of
https://codeberg.org/ProgramSnail/tree-sitter-lang.git
synced 2025-12-07 15:18:56 +00:00
result / optional return type modifiers for functions (one for all returns)
This commit is contained in:
parent
9c44228eec
commit
24015fd8df
2 changed files with 43 additions and 7 deletions
|
|
@ -56,6 +56,7 @@ module.exports = grammar({
|
|||
repeat(seq($.constraint, ';')),
|
||||
optional($._var_let),
|
||||
choice(field('name', $.simple_name_identifier), seq('(', field('name', $.operator), ')')),
|
||||
optional($._optional_result),
|
||||
repeat(seq(
|
||||
optional($.annotation_identifier),
|
||||
optional($._reference),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue