mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
feat(ruby): add injection pattern to support rbs-inline style
This commit is contained in:
parent
37e1287daa
commit
6d71fc6cb5
1 changed files with 4 additions and 0 deletions
|
|
@ -1,6 +1,10 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#match? @injection.content "(^#:|\\@rbs)")
|
||||
(#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