from lint import Linter class CSS(Linter): language = 'css' cmd = ('csslint',) regex = ( r'^\d+: (?P(error|warning)) at line (?P\d+), col (?P\d+)$\W' r'^(?P.*)$' ) multiline = True def run(self, cmd, code): return self.tmpfile(cmd, code, suffix='.css')