Make python indent query more general
Upgrade Tree-sitter for a query bugfix that I found while writing this indent query.
This commit is contained in:
@@ -87,7 +87,7 @@ tempdir = { version = "0.3.7" }
|
||||
thiserror = "1.0.29"
|
||||
tiny_http = "0.8"
|
||||
toml = "0.5"
|
||||
tree-sitter = "0.20.6"
|
||||
tree-sitter = "0.20.7"
|
||||
tree-sitter-c = "0.20.1"
|
||||
tree-sitter-cpp = "0.20.0"
|
||||
tree-sitter-go = { git = "https://github.com/tree-sitter/tree-sitter-go", rev = "aeb2f33b366fd78d5789ff104956ce23508b85db" }
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
(class_definition body: (block)) @indent
|
||||
(function_definition body: (block)) @indent
|
||||
|
||||
(_ (block)) @indent
|
||||
(_ "[" "]" @end) @indent
|
||||
(_ "{" "}" @end) @indent
|
||||
(_ "(" ")" @end) @indent
|
||||
|
||||
Reference in New Issue
Block a user