mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
injections(cpp): add injections for raw string literals
the delimiter describes the language to use for the injection content
```cpp
auto python_code = R"python(
import os
if __name__ == '__main__':
print(os.name)
)python";
```
This commit is contained in:
parent
d8c84521dc
commit
ed021ac3af
1 changed files with 4 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
|||
(preproc_arg) @cpp
|
||||
|
||||
(comment) @comment
|
||||
|
||||
(raw_string_literal
|
||||
delimiter: (raw_string_delimiter) @language
|
||||
(raw_string_content) @content)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue