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( seq(
'"', '"',
repeat( repeat(
choice( choice(token.immediate(/[^"\n\\\$]+/), $.escape_sequence, $.expansion)
token.immediate(prec(1, /[^"\n\\\$]+/)),
$.escape_sequence,
$.expansion
)
), ),
'"' '"'
), ),

View file

@ -1389,14 +1389,10 @@
"members": [ "members": [
{ {
"type": "IMMEDIATE_TOKEN", "type": "IMMEDIATE_TOKEN",
"content": {
"type": "PREC",
"value": 1,
"content": { "content": {
"type": "PATTERN", "type": "PATTERN",
"value": "[^\"\\n\\\\\\$]+" "value": "[^\"\\n\\\\\\$]+"
} }
}
}, },
{ {
"type": "SYMBOL", "type": "SYMBOL",