Allow semicolons after simple_statements
@@ -37,7 +37,7 @@ module.exports = grammar({
module: $ => repeat($._statement),
_statement: $ => choice(
- seq($._simple_statement, optional(repeat(seq($._semicolon, $._simple_statement))), repeat1($._newline)),
+ seq($._simple_statement, optional(repeat(seq($._semicolon, $._simple_statement))), optional($._semicolon), repeat1($._newline)),
$._compound_statement
),
@@ -359,6 +359,7 @@ module.exports = grammar({
seq(
$._simple_statement,
optional(repeat(seq($._semicolon, $._simple_statement))),
+ optional($._semicolon),
$._newline
),
seq(
