mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -04:00
Add c injection for ffi.cdef to lua
This commit is contained in:
parent
91578cc2c8
commit
748ac8f781
1 changed files with 10 additions and 0 deletions
10
queries/lua/injections.scm
Normal file
10
queries/lua/injections.scm
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
(
|
||||||
|
(function_call
|
||||||
|
(field_expression
|
||||||
|
(property_identifier) @_cdef_identifier)
|
||||||
|
(arguments
|
||||||
|
(string) @c)
|
||||||
|
)
|
||||||
|
|
||||||
|
(#eq? @_cdef_identifier "cdef")
|
||||||
|
)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue