go: improve outline queries to get rid of whitespace (#7273)
This changes the Go `outline.scm` queries a bit so that we don't have these stray whitespaces floating around. I'm sure there's more improvements possible, but for now I think this makes it look less wrong. Release Notes: - Improved outline and breadcrumbs for Go code. ## Before  ## After 
This commit is contained in:
parent
ce4c15dca6
commit
10cd978e93
1 changed files with 6 additions and 5 deletions
|
@ -7,20 +7,21 @@
|
||||||
"func" @context
|
"func" @context
|
||||||
name: (identifier) @name
|
name: (identifier) @name
|
||||||
parameters: (parameter_list
|
parameters: (parameter_list
|
||||||
"(" @context
|
"("
|
||||||
")" @context)) @item
|
")")) @item
|
||||||
|
|
||||||
(method_declaration
|
(method_declaration
|
||||||
"func" @context
|
"func" @context
|
||||||
receiver: (parameter_list
|
receiver: (parameter_list
|
||||||
"(" @context
|
"(" @context
|
||||||
(parameter_declaration
|
(parameter_declaration
|
||||||
|
name: (_) @name
|
||||||
type: (_) @context)
|
type: (_) @context)
|
||||||
")" @context)
|
")" @context)
|
||||||
name: (field_identifier) @name
|
name: (field_identifier) @name
|
||||||
parameters: (parameter_list
|
parameters: (parameter_list
|
||||||
"(" @context
|
"("
|
||||||
")" @context)) @item
|
")")) @item
|
||||||
|
|
||||||
(const_declaration
|
(const_declaration
|
||||||
"const" @context
|
"const" @context
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue