feat: add python context queries

Add context queries for the sticky-context feature, so python classes
and functions show up as well
pull/6118/merge^2
David Vogt 9 months ago
parent 12ffcb0d39
commit 2f3b481142

@ -0,0 +1,15 @@
(function_definition
_ parameters: (_) @context.params
) @context
(class_definition) @context
[
(if_statement)
(for_statement)
(while_statement)
(with_statement)
(try_statement)
(match_statement)
(case_clause)
] @context
Loading…
Cancel
Save