MCPcopy Index your code
hub / github.com/micro-editor/micro / Match

Method Match

internal/buffer/line_array.go:355–359  ·  view source on GitHub ↗

Match retrieves the match for the given line number

(lineN int)

Source from the content-addressed store, hash-verified

353
354// Match retrieves the match for the given line number
355func (la *LineArray) Match(lineN int) highlight.LineMatch {
356 la.lines[lineN].lock.Lock()
357 defer la.lines[lineN].lock.Unlock()
358 return la.lines[lineN].match
359}
360
361// Locks the whole LineArray
362func (la *LineArray) Lock() {

Callers 3

MatchFileHeaderMethod · 0.45
MatchFileSignatureMethod · 0.45
getStyleMethod · 0.45

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected