Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

updated embedding treesitter query for python

KCaverly6f1e988cb92a
diff --git a/crates/zed/src/languages/python/embedding.scm b/crates/zed/src/languages/python/embedding.scm
new file mode 100644
index 00000000000..e3efb3dbf67
--- /dev/null
+++ b/crates/zed/src/languages/python/embedding.scm
@@ -0,0 +1,9 @@
+(class_definition
+ "class" @context
+ name: (identifier) @name
+ ) @item
+
+(function_definition
+ "async"? @context
+ "def" @context
+ name: (_) @name) @item