mirror of https://github.com/helix-editor/helix
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";pull/5419/head^2
parent
e65f28d41a
commit
a8248c50e1
@ -1 +1,4 @@
|
||||
; inherits: c
|
||||
(raw_string_literal
|
||||
delimiter: (raw_string_delimiter) @injection.language
|
||||
(raw_string_content) @injection.content)
|
||||
|
Loading…
Reference in New Issue