mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
23 lines
728 B
Scheme
23 lines
728 B
Scheme
((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" "vim.api.nvim_cmd"))
|
|
|
|
; ((function_call
|
|
; name: (_) @_vimcmd_identifier
|
|
; arguments: (arguments (string content: _ @query) .))
|
|
; (#eq? @_vimcmd_identifier "vim.treesitter.query.set_query"))
|
|
|
|
; ;; highlight string as query if starts with `;; query`
|
|
; ((string ("string_content") @query) (#lua-match? @query "^%s*;+%s?query"))
|
|
|
|
; (comment) @comment
|