Versions in this module Expand all Collapse all v3 v3.20.0 Sep 2, 2026 Changes in this version + type Comment struct + Line int + Offset int + Scope string + Source string + Strip []int + Text string + func GetComments(source []byte, lang *Language) ([]Comment, error) + func (c Comment) StripAt(line int) (int, bool) + type Language struct + Cutset string + Delims *regexp.Regexp + Padding padding + Parser *sitter.Language + Prefix *regexp.Regexp + Queries []core.Scope + func C() *Language + func CSS() *Language + func Cpp() *Language + func Elixir() *Language + func GetLanguageFromExt(ext string) (*Language, error) + func Go() *Language + func Haskell() *Language + func Java() *Language + func JavaScript() *Language + func Julia() *Language + func Lua() *Language + func PHP() *Language + func Protobuf() *Language + func Python() *Language + func QML() *Language + func R() *Language + func Ruby() *Language + func Rust() *Language + func Tsx() *Language + func TypeScript() *Language + func YAML() *Language + type QueryEngine struct + func NewQueryEngine(tree *sitter.Tree, lang *Language) *QueryEngine