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"
}
]
} }
] ]
} }