mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-06 12:27:42 +03:00
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";
This commit is contained in:
parent
e65f28d41a
commit
a8248c50e1
2 changed files with 4 additions and 1 deletions
|
@ -1 +1,4 @@
|
|||
; inherits: c
|
||||
(raw_string_literal
|
||||
delimiter: (raw_string_delimiter) @injection.language
|
||||
(raw_string_content) @injection.content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue