From a8248c50e1017cbba42c602d480d3c4ffa7162a0 Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Wed, 11 Jan 2023 02:57:10 +0100 Subject: Update tree-sitter-cpp, support injections in tagged rawstrings (#5457) The grammar now exposes the delimiter of raw-strings. We can now inject the inner grammar in cases like: const char* script = R"js( alert('hello world!'); )js";--- runtime/queries/cpp/injections.scm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/queries/cpp') diff --git a/runtime/queries/cpp/injections.scm b/runtime/queries/cpp/injections.scm index a5a5208c..fb783bb6 100644 --- a/runtime/queries/cpp/injections.scm +++ b/runtime/queries/cpp/injections.scm @@ -1 +1,4 @@ ; inherits: c +(raw_string_literal + delimiter: (raw_string_delimiter) @injection.language + (raw_string_content) @injection.content) -- cgit v1.2.3-70-g09d2