mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-17 17:38:01 +00:00
21 lines
448 B
Scheme
21 lines
448 B
Scheme
; inherits: quote
|
|
|
|
(function_declaration
|
|
"fn" @open.function) @scope.function
|
|
(return_expression
|
|
"return" @mid.function.1)
|
|
|
|
; 'else' and 'else if'
|
|
(else_clause
|
|
"else" @mid.if.1 (if_statement "if" @mid.if.1)?)
|
|
|
|
; if
|
|
((if_statement
|
|
"if" @open.if) @scope.if
|
|
(#not-has-parent? @scope.if else_clause))
|
|
|
|
; Loops
|
|
(while_statement "while" @open.loop) @scope.loop
|
|
(break_expression "break" @mid.loop.1)
|
|
(continue_expression "continue" @mid.loop.2)
|