From e9e693780c647c46c37336af9a4b44d343a526f6 Mon Sep 17 00:00:00 2001 From: Yoann Padioleau Date: Tue, 22 Mar 2022 15:31:51 +0100 Subject: [PATCH] Name intermediate rule for ocaml-tree-sitter --- grammar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grammar.js b/grammar.js index 8e5713de..eeae2743 100644 --- a/grammar.js +++ b/grammar.js @@ -845,11 +845,12 @@ module.exports = grammar({ interpreted_string_literal: $ => seq( '"', repeat(choice( - token.immediate(prec(1, /[^"\n\\]+/)), + $._interpreted_string_literal_basic_content, $.escape_sequence )), '"' ), + _interpreted_string_literal_basic_content: $ => token.immediate(prec(1, /[^"\n\\]+/)), escape_sequence: $ => token.immediate(seq( '\\',