mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(ruby): update queries to support rbs-inline syntax (#8282)
This commit is contained in:
parent
2144e88dac
commit
2696fb8326
3 changed files with 38 additions and 1 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