diff --git a/grammar.js b/grammar.js index 624af69..299313d 100644 --- a/grammar.js +++ b/grammar.js @@ -441,6 +441,6 @@ module.exports = grammar({ line_comment: ($) => token(prec(PREC.COMMENT, seq("#", /.*/))), _eol: ($) => token(prec(PREC.EOL, "\n")), - _end: ($) => seq(choice(";", $._eol)), + _end: ($) => choice(";", $._eol), }, }); diff --git a/src/grammar.json b/src/grammar.json index 0ca6060..9eca909 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -2244,20 +2244,15 @@ } }, "_end": { - "type": "SEQ", + "type": "CHOICE", "members": [ { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": ";" - }, - { - "type": "SYMBOL", - "name": "_eol" - } - ] + "type": "STRING", + "value": ";" + }, + { + "type": "SYMBOL", + "name": "_eol" } ] }