Add break expressions
This commit is contained in:
parent
bb6875a11d
commit
d32fd4fd6c
5 changed files with 1559 additions and 1391 deletions
|
|
@ -51,6 +51,7 @@ module.exports = grammar({
|
|||
$.if_expression,
|
||||
$.while_expression,
|
||||
$.for_expression,
|
||||
$.break_expression,
|
||||
),
|
||||
|
||||
nil_literal: (_) => "nil",
|
||||
|
|
@ -204,6 +205,8 @@ module.exports = grammar({
|
|||
"do",
|
||||
field("body", $._expr),
|
||||
),
|
||||
|
||||
break_expression: (_) => "break",
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue