From 9ae70cc410bd042b5cf119c571db323436caf08b Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Fri, 1 Jul 2022 19:16:16 +0900 Subject: Disable tree-sitter python indents, use fallback for now There's been a lot of complaints about the state of python indentation and the fallback actually works better until the solution proposed in https://github.com/helix-editor/helix/issues/763#issuecomment-1137894973= is implemented. --- runtime/queries/python/indents.scm | 38 ------------------------------------- runtime/queries/python/indents.scm_ | 38 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 38 deletions(-) delete mode 100644 runtime/queries/python/indents.scm create mode 100644 runtime/queries/python/indents.scm_ (limited to 'runtime') diff --git a/runtime/queries/python/indents.scm b/runtime/queries/python/indents.scm deleted file mode 100644 index 810ff52f..00000000 --- a/runtime/queries/python/indents.scm +++ /dev/null @@ -1,38 +0,0 @@ -[ - (list) - (tuple) - (dictionary) - (set) - - (if_statement) - (for_statement) - (while_statement) - (with_statement) - (try_statement) - (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 - -[ - ")" - "]" - "}" - (return_statement) - (pass_statement) - (raise_statement) -] @outdent - diff --git a/runtime/queries/python/indents.scm_ b/runtime/queries/python/indents.scm_ new file mode 100644 index 00000000..810ff52f --- /dev/null +++ b/runtime/queries/python/indents.scm_ @@ -0,0 +1,38 @@ +[ + (list) + (tuple) + (dictionary) + (set) + + (if_statement) + (for_statement) + (while_statement) + (with_statement) + (try_statement) + (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 + +[ + ")" + "]" + "}" + (return_statement) + (pass_statement) + (raise_statement) +] @outdent + -- cgit v1.2.3-70-g09d2