blob: cda7090777d788bc84eb815c71fff9ab33a2f7c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
[
; Body fold will "join" the next adjacent fold into a SUPER fold.
; This is an issue with the grammar.
; (body)
(if_statement)
(elif_clause)
(else_clause)
(for_statement)
(while_statement)
(class_definition)
(enum_definition)
(match_statement)
(pattern_section)
(function_definition)
(lambda)
(constructor_definition)
] @fold
; It's nice to be able to fold the if/elif/else clauses and the entire
; if_statement.
(if_statement
(body) @fold)
; Fold strings that are probably doc strings.
(expression_statement
(string) @fold)
|