Skip to content

Commit c4d90f0

Browse files
committed
refactor: fix typo
1 parent 57beca0 commit c4d90f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

grammar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ module.exports = grammar({
114114
':',
115115
field('ty', optional($._type)),
116116
'=',
117-
field('val', choice(
117+
field('init', choice(
118118
$._expr,
119119
$.underscore,
120120
)),
@@ -203,8 +203,8 @@ module.exports = grammar({
203203
if_expr: $ => seq(
204204
'if',
205205
field('cond', $._expr),
206-
field('tru', $.block),
207-
optional(field('fls', $._else_clause)),
206+
field('body', $.block),
207+
optional(field('el', $._else_clause)),
208208
),
209209

210210
_else_clause: $ => seq(

0 commit comments

Comments
 (0)