Skip to content

Commit

Permalink
feat: add context for solidity
Browse files Browse the repository at this point in the history
  • Loading branch information
meetmangukiya committed Oct 14, 2023
1 parent 4cf6426 commit ef449a2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions queries/solidity/context.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
(contract_declaration) @context
(library_declaration) @context
(interface_declaration) @context

(event_definition) @context
(constructor_definition) @context
(function_definition) @context
(modifier_definition) @context
(fallback_receive_definition) @context

(block_statement) @context
(if_statement) @context
(emit_statement) @context
(revert_statement) @context
(try_statement) @context
(catch_clause) @context
(for_statement) @context
(while_statement) @context
(do_while_statement) @context

(call_expression) @context
(error_declaration) @context
(struct_declaration) @context
(enum_declaration) @context

0 comments on commit ef449a2

Please sign in to comment.