Match retrieves the match for the given line number
(lineN int)
| 353 | |
| 354 | // Match retrieves the match for the given line number |
| 355 | func (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 |
| 362 | func (la *LineArray) Lock() { |
no test coverage detected