treesitter

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Highlighter

type Highlighter struct {
	// contains filtered or unexported fields
}

func NewHighlighter

func NewHighlighter(name string, grammarPath string, highlightsPath string) *Highlighter

func (*Highlighter) Highlight

func (h *Highlighter) Highlight(offset int, buf rope.RopeNode) (highlights highlighter.Highlights)

func (*Highlighter) Initialize

func (h *Highlighter) Initialize(theme theme.EditorTheme)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳