remove unnecessary precedence

This commit is contained in:
Camden Cheek 2021-06-20 11:57:44 -06:00
parent 739747c15a
commit 63b21914a5
No known key found for this signature in database
GPG key ID: 595BFFE3A04E48B9
2 changed files with 3 additions and 11 deletions

View file

@ -293,11 +293,7 @@ module.exports = grammar({
seq(
'"',
repeat(
choice(
token.immediate(prec(1, /[^"\n\\\$]+/)),
$.escape_sequence,
$.expansion
)
choice(token.immediate(/[^"\n\\\$]+/), $.escape_sequence, $.expansion)
),
'"'
),

View file

@ -1390,12 +1390,8 @@
{
"type": "IMMEDIATE_TOKEN",
"content": {
"type": "PREC",
"value": 1,
"content": {
"type": "PATTERN",
"value": "[^\"\\n\\\\\\$]+"
}
"type": "PATTERN",
"value": "[^\"\\n\\\\\\$]+"
}
},
{