LineStates is an interface for a buffer-like object which can also store the states and matches for every line
| 56 | |
| 57 | // LineStates is an interface for a buffer-like object which can also store the states and matches for every line |
| 58 | type 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 |
| 69 | type Highlighter struct { |
no outgoing calls
no test coverage detected