ClearMatches clears all of the syntax highlighting for the buffer
()
| 1012 | |
| 1013 | // ClearMatches clears all of the syntax highlighting for the buffer |
| 1014 | func (b *Buffer) ClearMatches() { |
| 1015 | for i := range b.lines { |
| 1016 | b.SetMatch(i, nil) |
| 1017 | b.SetState(i, nil) |
| 1018 | } |
| 1019 | } |
| 1020 | |
| 1021 | // IndentString returns this buffer's indent method (a tabstop or n spaces |
| 1022 | // depending on the settings) |
no test coverage detected