mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
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:
parent
34351c0a51
commit
074caa09c2
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -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",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user