mirror of
https://github.com/nvim-treesitter/nvim-treesitter-context
synced 2024-09-16 14:14:03 +02:00
feat(fennel): improve queries
This commit is contained in:
parent
ba4289ad34
commit
4fe0a54e86
1 changed files with 17 additions and 2 deletions
|
@ -1,6 +1,21 @@
|
|||
[
|
||||
(quote_reader_macro)
|
||||
(quasi_quote_reader_macro)
|
||||
(quote_form)
|
||||
(fn_form)
|
||||
(lambda_form)
|
||||
(hashfn_form)
|
||||
(table)
|
||||
(macro_form)
|
||||
(case_form)
|
||||
(match_form)
|
||||
(case_try_form)
|
||||
(match_try_form)
|
||||
] @context
|
||||
|
||||
(list
|
||||
call: (symbol) @_sym
|
||||
(#eq? @_sym "when")) @context
|
||||
|
||||
(hashfn_reader_macro
|
||||
expression: (list
|
||||
call: (symbol) @_sym
|
||||
(#eq? @_sym "do"))) @context
|
||||
|
|
Loading…
Reference in a new issue