mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(ruby): add injection pattern to support rbs-inline style
This commit is contained in:
parent
c38b8ba6b9
commit
29bfb18a0d
1 changed files with 12 additions and 0 deletions
|
|
@ -1,6 +1,18 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#lua-match? @injection.content "^#:")
|
||||
(#set! injection.language "rbs"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#lua-match? @injection.content "^#%s+@rbs")
|
||||
(#set! injection.language "rbs"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#lua-match? @injection.content "^#%s+|")
|
||||
(#set! injection.language "rbs"))
|
||||
|
||||
(heredoc_body
|
||||
(heredoc_content) @injection.content
|
||||
(heredoc_end) @injection.language)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue