events

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	// contains filtered or unexported methods
}

Event is an interface that represents a highlight Event. Possible implementations are: - EventLayerStart - EventLayerEnd - EventCaptureStart - EventCaptureEnd - EventSource

type EventCaptureEnd

type EventCaptureEnd struct{}

EventCaptureEnd is emitted when a highlight region ends.

type EventCaptureStart

type EventCaptureStart struct {
	// Highlight is the capture name of the highlight.
	Highlight uint
}

EventCaptureStart is emitted when a highlight region starts.

type EventLayerEnd

type EventLayerEnd struct{}

EventLayerEnd is emitted when a language injection ends.

type EventLayerStart

type EventLayerStart struct {
	// LanguageName is the name of the language that is being injected.
	LanguageName string
}

EventLayerStart is emitted when a language injection starts.

type EventSource

type EventSource struct {
	StartByte uint
	EndByte   uint
}

EventSource is emitted when a source code range is highlighted.

Source Files

  • events.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL