def colorize_cmake(self, line):
        # return line
        cline = sanitize(line).rstrip()

        if len(cline.strip()) > 0:
            for p, r, f in self.filters:
                match = p.match(cline)
                if match is not None:
                    cline = fmt(r, reset=False)
                    if f is not None:
                        cline = cline.format(*f(match.groups()))
                    else:
                        cline = cline.format(*match.groups())
                    break

        return cline + '\r\n'
Colorizes output from CMake
dataset/ETHPy150Open catkin/catkin_tools/catkin_tools/jobs/commands/cmake.py/CMakeIOBufferProtocol.colorize_cmake