grammar: remove seq from the _end rule

This commit is contained in:
Dmitriy Pleshevskiy 2023-06-21 18:40:57 +03:00
parent 6b5e1d9123
commit 95479ef189
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985
2 changed files with 8 additions and 13 deletions

View file

@ -441,6 +441,6 @@ module.exports = grammar({
line_comment: ($) => token(prec(PREC.COMMENT, seq("#", /.*/))), line_comment: ($) => token(prec(PREC.COMMENT, seq("#", /.*/))),
_eol: ($) => token(prec(PREC.EOL, "\n")), _eol: ($) => token(prec(PREC.EOL, "\n")),
_end: ($) => seq(choice(";", $._eol)), _end: ($) => choice(";", $._eol),
}, },
}); });

View file

@ -2244,20 +2244,15 @@
} }
}, },
"_end": { "_end": {
"type": "SEQ", "type": "CHOICE",
"members": [ "members": [
{ {
"type": "CHOICE", "type": "STRING",
"members": [ "value": ";"
{ },
"type": "STRING", {
"value": ";" "type": "SYMBOL",
}, "name": "_eol"
{
"type": "SYMBOL",
"name": "_eol"
}
]
} }
] ]
} }