Add return type to function declarations

This commit is contained in:
Bruno BELANYI 2022-06-01 22:07:05 +02:00
parent 1e5f7cd5d5
commit 76b558a982
5 changed files with 1738 additions and 1628 deletions

View file

@ -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(