Rejigger the terminator.

pull/70/head
Rob Rix 2016-02-18 10:47:51 +07:00
parent 86bfd32b03
commit ee4571748e
1 changed files with 1 additions and 3 deletions

@ -8,9 +8,7 @@ module.exports = grammar({
],
rules: {
program: $ => $._compound_statement,
_compound_statement: $ => seq($._statement, repeat(seq($._terminator, $._expression)), optional($._terminator)),
program: $ => repeat(seq($._statement, optional($._terminator))),
_statement: $ => choice($._expression),
_expression: $ => choice($._argument),