Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var QueryFS fs.FS
QueryFS is the filesystem interface for accessing embedded queries
Functions ¶
Types ¶
type Language ¶
type Language struct { // Name is the display name of the language Name string // TreeSitterLang is the tree-sitter language instance TreeSitterLang *sitter.Language // Extensions maps file extensions to this language Extensions []string // QueryPath is the path to the highlight query file QueryPath string }
Language represents a programming language with its syntax highlighting configuration
func GetForFile ¶
GetForFile returns the language for a given file path
Click to show internal directories.
Click to hide internal directories.