Add return type to function declarations
This commit is contained in:
parent
1e5f7cd5d5
commit
76b558a982
5 changed files with 1738 additions and 1628 deletions
|
|
@ -283,6 +283,7 @@ module.exports = grammar({
|
|||
_function_declaration_common: ($) => seq(
|
||||
field("name", $.identifier),
|
||||
field("parameters", $.parameters),
|
||||
optional(seq(":", field("return_type", $.identifier))),
|
||||
),
|
||||
|
||||
parameters: ($) => seq(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue