gitstack

grindlemire/go-tui code browser

465 B Go 13 lines 2026-01-31 · 3130a1f raw
1
2
3
4
5
6
7
8
9
10
11
12
13
package lsp

// DefinitionParams represents textDocument/definition parameters.
type DefinitionParams struct {
	TextDocument TextDocumentIdentifier `json:"textDocument"`
	Position     Position               `json:"position"`
}

// isWordChar returns true if c is a valid word character.
// Used by context.go for cursor word extraction.
func isWordChar(c byte) bool {
	return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_'
}