Add break expressions

This commit is contained in:
Bruno BELANYI 2022-06-01 20:23:46 +02:00
parent bb6875a11d
commit d32fd4fd6c
5 changed files with 1559 additions and 1391 deletions

View file

@ -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",
}
});