Documentation ¶
Index ¶
- type Comment
- type Language
- func C() *Language
- func CSS() *Language
- func Cpp() *Language
- func GetLanguageFromExt(ext string) (*Language, error)
- func Go() *Language
- func JavaScript() *Language
- func Julia() *Language
- func Protobuf() *Language
- func Python() *Language
- func Ruby() *Language
- func Rust() *Language
- func Tsx() *Language
- func TypeScript() *Language
- func YAML() *Language
- type QueryEngine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Language ¶
type Language struct { Delims *regexp.Regexp Parser *sitter.Language Queries []string Cutset string Padding padding }
Language represents a supported programming language.
NOTE: What about haskell, less, perl, php, powershell, r, sass, swift?
func GetLanguageFromExt ¶
GetLanguageFromExt returns a Language based on the given file extension.
func JavaScript ¶
func JavaScript() *Language
func TypeScript ¶
func TypeScript() *Language
type QueryEngine ¶
type QueryEngine struct {
// contains filtered or unexported fields
}
func NewQueryEngine ¶
func NewQueryEngine(tree *sitter.Tree, lang *Language) *QueryEngine
Click to show internal directories.
Click to hide internal directories.