Skip to content

Commit

Permalink
feat(ruby): add missing context patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsmartens authored and lewis6991 committed Jul 6, 2024
1 parent 7f69542 commit f56a143
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions queries/ruby/context.scm
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,37 @@
"shared_context"
"shared_examples")
) @context

(case
(when (_) @context.end)*
(else (_) @context.end)?
) @context

(for
(_) @context.end
) @context

(while
(_) @context.end
) @context

(until
(_) @context.end
) @context

(begin
(_) @context.end
) @context

(rescue
(_) @context.end
) @context

(ensure
(_) @context.end
) @context

(lambda
(_) @context.end
) @context

0 comments on commit f56a143

Please sign in to comment.