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";
commita8248c50e1017cbba42c602d480d3c4ffa7162a0
authorSam McCall <sam.mccall@gmail.com>
dateWed 11 Jan 2023, 02:57 (4 years ago)
parente65f28d
languages.toml+1−1
@@ -221,7 +221,7 @@ args = { console = "internalConsole", attachCommands = [ "platform select remote
221221
222222[[grammar]]
223223name = "cpp"
224−source = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "d5e90fba898f320db48d81ddedd78d52c67c1fed" }
224+source = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "2d2c4aee8672af4c7c8edff68e7dd4c07e88d2b1" }
225225
226226[[language]]
227227name = "crystal"
runtime/queries/cpp/injections.scm+3
@@ -1 +1,4 @@
11; inherits: c
2+(raw_string_literal
3+ delimiter: (raw_string_delimiter) @injection.language
4+ (raw_string_content) @injection.content)