MCPcopy
hub / github.com/micro-editor/micro / LineStates

Interface LineStates

pkg/highlight/highlighter.go:58–66  ·  view source on GitHub ↗

LineStates is an interface for a buffer-like object which can also store the states and matches for every line

Source from the content-addressed store, hash-verified

56
57// LineStates is an interface for a buffer-like object which can also store the states and matches for every line
58type LineStates interface {
59 LineBytes(n int) []byte
60 LinesNum() int
61 State(lineN int) State
62 SetState(lineN int, s State)
63 SetMatch(lineN int, m LineMatch)
64 Lock()
65 Unlock()
66}
67
68// A Highlighter contains the information needed to highlight a string
69type Highlighter struct {

Callers 42

HighlightStatesMethod · 0.65
HighlightMatchesMethod · 0.65
ReHighlightStatesMethod · 0.65
ReHighlightLineMethod · 0.65
getStartInfoMethod · 0.65
displayBufferMethod · 0.65
getVLocFromLocMethod · 0.65
getLocFromVLocMethod · 0.65
HighlightStatesMethod · 0.65
HighlightMatchesMethod · 0.65
ReHighlightStatesMethod · 0.65
updateDisplayInfoMethod · 0.65

Implementers 1

LineArrayinternal/buffer/line_array.go

Calls

no outgoing calls

Tested by

no test coverage detected