From 6f1e988cb92aa76bc31c841e0009884576370219 Mon Sep 17 00:00:00 2001 From: KCaverly Date: Thu, 6 Jul 2023 16:36:28 -0400 Subject: [PATCH] updated embedding treesitter query for python --- crates/zed/src/languages/python/embedding.scm | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 crates/zed/src/languages/python/embedding.scm diff --git a/crates/zed/src/languages/python/embedding.scm b/crates/zed/src/languages/python/embedding.scm new file mode 100644 index 0000000000..e3efb3dbf6 --- /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