Add python outline and bracket queries
This commit is contained in:
parent
074caa09c2
commit
c0dbd8f9b9
3 changed files with 13 additions and 1 deletions
3
crates/zed/src/languages/python/brackets.scm
Normal file
3
crates/zed/src/languages/python/brackets.scm
Normal file
|
@ -0,0 +1,3 @@
|
|||
("(" @open ")" @close)
|
||||
("[" @open "]" @close)
|
||||
("{" @open "}" @close)
|
9
crates/zed/src/languages/python/outline.scm
Normal file
9
crates/zed/src/languages/python/outline.scm
Normal file
|
@ -0,0 +1,9 @@
|
|||
(class_definition
|
||||
"class" @context
|
||||
name: (identifier) @name
|
||||
) @item
|
||||
|
||||
(function_definition
|
||||
"async"? @context
|
||||
"def" @context
|
||||
name: (_) @name) @item
|
Loading…
Add table
Add a link
Reference in a new issue