mirror of
https://codeberg.org/ProgramSnail/tree-sitter-lang.git
synced 2025-12-09 16:18:50 +00:00
references deduction in function definitions (reference modifiers can be added to argument names)
This commit is contained in:
parent
2e0dfdf3fa
commit
8cc264fa5a
2 changed files with 32 additions and 1 deletions
|
|
@ -56,6 +56,7 @@ module.exports = grammar({
|
|||
choice(field('name', $.simple_name_identifier), seq('(', field('name', $.operator), ')')),
|
||||
repeat(seq(
|
||||
optional($.annotation_identifier),
|
||||
optional(choice(choice('->', 'out'), choice('<-', 'in'), choice('<>', 'ref'))),
|
||||
$.argument_name_identifier,
|
||||
optional('?'),
|
||||
)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue