Files
helix/tests/query/highlights/go/constructs.go
Matouš DzivjakandGitHub f6f3eb1fe4 feat(runtime/queries/go): public functions and methods (#15997)
* feat(runtime/queries/go): public functions and methods

Same as https://github.com/helix-editor/helix/pull/15879 but for Go.
Add dedicated scope for public functions/methods.

* feat(book): document new 'public' scope for functions/methods

* chore: fixups
2026-07-17 01:30:18 +09:00

13 lines
340 B
Go

package main
// ^ @namespace
type Point struct { X int }
// ^ @type.definition
// ^ @variable.other.member
// ^ @type.builtin
func (p Point) Dist(count int) bool {
// ^ @function.method.public
// ^ @variable.parameter
return helper(count)
// ^ @function
}