Initial public release of Warp.
Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# source: https://peps.python.org/pep-0008/#indentation
|
||||
display_name: "Python"
|
||||
indent_unit:
|
||||
space: 4
|
||||
comment_prefix: "#"
|
||||
brackets:
|
||||
- start: "{"
|
||||
end: "}"
|
||||
- start: "("
|
||||
end: ")"
|
||||
- start: "["
|
||||
end: "]"
|
||||
@@ -0,0 +1,7 @@
|
||||
(comment) @comment
|
||||
|
||||
; Function definitions
|
||||
(function_definition name: (identifier) @definition.def)
|
||||
|
||||
; Class declarations
|
||||
(class_definition name: (identifier) @definition.class)
|
||||
@@ -0,0 +1,36 @@
|
||||
[
|
||||
(list)
|
||||
(tuple)
|
||||
(dictionary)
|
||||
(set)
|
||||
|
||||
(if_statement)
|
||||
(for_statement)
|
||||
(while_statement)
|
||||
(with_statement)
|
||||
(try_statement)
|
||||
(match_statement)
|
||||
(case_clause)
|
||||
(import_from_statement)
|
||||
|
||||
(parenthesized_expression)
|
||||
(generator_expression)
|
||||
(list_comprehension)
|
||||
(set_comprehension)
|
||||
(dictionary_comprehension)
|
||||
|
||||
(tuple_pattern)
|
||||
(list_pattern)
|
||||
(argument_list)
|
||||
(parameters)
|
||||
(binary_operator)
|
||||
|
||||
(function_definition)
|
||||
(class_definition)
|
||||
] @indent
|
||||
|
||||
[
|
||||
")"
|
||||
"]"
|
||||
"}"
|
||||
] @outdent
|
||||
Reference in New Issue
Block a user