2022-01-18 22:15:26 +01:00
|
|
|
((function_call
|
|
|
|
|
name: [
|
|
|
|
|
(identifier) @_cdef_identifier
|
|
|
|
|
(_ _ (identifier) @_cdef_identifier)
|
|
|
|
|
]
|
|
|
|
|
arguments: (arguments (string content: _ @c)))
|
|
|
|
|
(#eq? @_cdef_identifier "cdef"))
|
|
|
|
|
|
|
|
|
|
((function_call
|
|
|
|
|
name: (_) @_vimcmd_identifier
|
|
|
|
|
arguments: (arguments (string content: _ @vim)))
|
|
|
|
|
(#any-of? @_vimcmd_identifier "vim.cmd" "vim.api.nvim_command" "vim.api.nvim_exec"))
|
2021-11-17 03:14:22 +01:00
|
|
|
|
2022-04-06 09:01:11 -07:00
|
|
|
((function_call
|
|
|
|
|
name: (_) @_vimcmd_identifier
|
|
|
|
|
arguments: (arguments (string content: _ @query) .))
|
|
|
|
|
(#eq? @_vimcmd_identifier "vim.treesitter.query.set_query"))
|
|
|
|
|
|
2022-08-20 13:33:45 +05:30
|
|
|
;; highlight string as query if starts with `;; query`
|
2022-08-21 14:07:53 +05:30
|
|
|
((string ("string_content") @query) (#lua-match? @query "^%s*;+%s?query"))
|
2022-08-20 13:33:45 +05:30
|
|
|
|
2021-04-30 13:22:12 -05:00
|
|
|
(comment) @comment
|