From 57ff173e297be5331a0408f5144b17d8c3cad0b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Hovs=C3=A4ter?= Date: Fri, 9 Jun 2023 07:31:09 +0200 Subject: [PATCH] Add outline support for Ruby singleton methods --- crates/zed/src/languages/ruby/outline.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/zed/src/languages/ruby/outline.scm b/crates/zed/src/languages/ruby/outline.scm index e549a2d194..0b36dabadb 100644 --- a/crates/zed/src/languages/ruby/outline.scm +++ b/crates/zed/src/languages/ruby/outline.scm @@ -6,6 +6,12 @@ "def" @context name: (_) @name) @item +(singleton_method + "def" @context + object: (_) @context + "." @context + name: (_) @name) @item + (module "module" @context - name: (_) @name) @item \ No newline at end of file + name: (_) @name) @item