mirror of
https://github.com/nvim-treesitter/nvim-treesitter-context
synced 2024-09-16 14:14:03 +02:00
feat(ruby): add missing context patterns
This commit is contained in:
parent
7f69542054
commit
f56a1430f2
1 changed files with 34 additions and 0 deletions
|
@ -51,3 +51,37 @@
|
||||||
"shared_context"
|
"shared_context"
|
||||||
"shared_examples")
|
"shared_examples")
|
||||||
) @context
|
) @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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue