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:
Max Brunsfeld 2022-06-22 16:18:52 -07:00
parent 34351c0a51
commit 074caa09c2
3 changed files with 4 additions and 6 deletions

4
Cargo.lock generated
View File

@ -5212,9 +5212,9 @@ dependencies = [
[[package]]
name = "tree-sitter"
version = "0.20.6"
version = "0.20.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09b3b781640108d29892e8b9684642d2cda5ea05951fd58f0fea1db9edeb9b71"
checksum = "549a9faf45679ad50b7f603253635598cf5e007d8ceb806a23f95355938f76a0"
dependencies = [
"cc",
"regex",

View File

@ -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" }

View File

@ -1,6 +1,4 @@
(class_definition body: (block)) @indent
(function_definition body: (block)) @indent
(_ (block)) @indent
(_ "[" "]" @end) @indent
(_ "{" "}" @end) @indent
(_ "(" ")" @end) @indent