Skip to content

Commit 31dc291

Browse files
committed
fix: add val field to return
1 parent 1d21bcf commit 31dc291

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

grammar.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ module.exports = grammar({
188188
)),
189189

190190
return_expr: $ => prec.right(choice(
191-
seq('return', $._expr),
191+
seq(
192+
'return',
193+
field('val', $._expr),
194+
),
192195
'return',
193196
)),
194197

0 commit comments

Comments
 (0)