Skip to content

Commit

Permalink
Merge pull request helix-editor#3 from winged/sticky-context
Browse files Browse the repository at this point in the history
add python context queries
  • Loading branch information
SoraTenshi authored Oct 18, 2023
2 parents 12ffcb0 + 2f3b481 commit 4026e7d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions runtime/queries/python/context.scm
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4026e7d

Please sign in to comment.