mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
injections(teal): fix cdef injection
This commit is contained in:
parent
46858cfeea
commit
351eefd988
1 changed files with 15 additions and 0 deletions
|
|
@ -7,6 +7,21 @@
|
|||
)
|
||||
|
||||
(#eq? @_cdef_identifier "cdef")
|
||||
(#match? @c "^[\"']")
|
||||
(#offset! @c 0 1 0 -1)
|
||||
)
|
||||
|
||||
(
|
||||
(function_call
|
||||
(index
|
||||
(identifier) @_cdef_identifier)
|
||||
(arguments
|
||||
(string) @c)
|
||||
)
|
||||
|
||||
(#eq? @_cdef_identifier "cdef")
|
||||
(#match? @c "^\\[\\[")
|
||||
(#offset! @c 0 2 0 -2)
|
||||
)
|
||||
|
||||
(comment) @comment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue