Lines Matching refs:line
142 func (proc *processor) processLine(w io.Writer, line string) {
144 if f.MatchString(line) {
150 if f.MatchString(line) {
154 if match := warningCount.FindStringSubmatch(line); match != nil {
161 line = fmt.Sprintf("%d warning", c)
163 line += "s"
170 if line, matched = applyColor(line, p.color, p.re); matched {
174 fmt.Fprintln(w, line)
179 func applyColor(line, color string, re *regexp.Regexp) (string, bool) { argument
180 if m := re.FindStringSubmatchIndex(line); m != nil {
182 line = bold + line[:tagStart] +
183 color + line[tagStart:tagEnd] + reset + bold +
184 line[tagEnd:] + reset
185 return line, true
187 return line, false