mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 01:10:02 -04:00
injections: add more regex injections
This commit is contained in:
parent
5aacb06135
commit
9018fb26cc
5 changed files with 12 additions and 1 deletions
|
|
@ -6,3 +6,8 @@
|
|||
(line_comment)
|
||||
(block_comment)
|
||||
] @comment
|
||||
|
||||
((prefixed_string_literal
|
||||
prefix: (identifier) @_prefix) @regex
|
||||
(#eq? @_prefix "r")
|
||||
(#offset! @regex 0 2 0 -1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue