From 63b21914a54b3fd6d704a0eb3d1f15413599dbc9 Mon Sep 17 00:00:00 2001 From: Camden Cheek Date: Sun, 20 Jun 2021 11:57:44 -0600 Subject: [PATCH] remove unnecessary precedence --- grammar.js | 6 +----- src/grammar.json | 8 ++------ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/grammar.js b/grammar.js index 9a000b9..e1378bf 100644 --- a/grammar.js +++ b/grammar.js @@ -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) ), '"' ), diff --git a/src/grammar.json b/src/grammar.json index 6de8208..febf851 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -1390,12 +1390,8 @@ { "type": "IMMEDIATE_TOKEN", "content": { - "type": "PREC", - "value": 1, - "content": { - "type": "PATTERN", - "value": "[^\"\\n\\\\\\$]+" - } + "type": "PATTERN", + "value": "[^\"\\n\\\\\\$]+" } }, {