grammar: remove seq from the _end rule
This commit is contained in:
parent
6b5e1d9123
commit
95479ef189
2 changed files with 8 additions and 13 deletions
|
@ -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),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -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"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue