Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
go: improve outline queries to get rid of whitespace (#7273)
Thorsten Ball10cd978e932b
diff --git a/crates/zed/src/languages/go/outline.scm b/crates/zed/src/languages/go/outline.scmindex 2ff7ef25a0a..8823b7beb80 100644--- a/crates/zed/src/languages/go/outline.scm+++ b/crates/zed/src/languages/go/outline.scm@@ -7,20 +7,21 @@"func" @contextname: (identifier) @nameparameters: (parameter_list- "(" @context- ")" @context)) @item+ "("+ ")")) @item(method_declaration"func" @contextreceiver: (parameter_list"(" @context(parameter_declaration+ name: (_) @nametype: (_) @context)")" @context)name: (field_identifier) @nameparameters: (parameter_list- "(" @context- ")" @context)) @item+ "("+ ")")) @item(const_declaration"const" @context@@ -40,4 +41,4 @@")" @context)) @item(field_declaration- name: (_) @name) @item\ No newline at end of file+ name: (_) @name) @item