git.iko.soy
/
helix
readme
files
commits
refs
on
master
help
sign in
Add indents for python, but it's not perfect. (#837)
bb011f9
WindSoilder
5 years ago
runtime/queries/python/indents.toml
new file
+39
compare with master
unified
split
@@ -0,0 +1,39 @@
1
+
indent = [
2
+
"list",
3
+
"tuple",
4
+
"dictionary",
5
+
"set",
6
+
7
+
"if_statement",
8
+
"for_statement",
9
+
"while_statement",
10
+
"with_statement",
11
+
"try_statement",
12
+
"import_from_statement",
13
+
14
+
"parenthesized_expression",
15
+
"generator_expression",
16
+
"list_comprehension",
17
+
"set_comprehension",
18
+
"dictionary_comprehension",
19
+
20
+
"tuple_pattern",
21
+
"list_pattern",
22
+
"argument_list",
23
+
"parameters",
24
+
"binary_operator",
25
+
26
+
"function_definition",
27
+
"class_definition",
28
+
]
29
+
30
+
outdent = [
31
+
")",
32
+
"]",
33
+
"}",
34
+
"return_statement",
35
+
"pass_statement",
36
+
"raise_statement",
37
+
]
38
+
39
+
ignore = ["string"]
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list