mirror of
https://github.com/sstent/sublime-text-3.git
synced 2026-01-25 22:51:41 +00:00
14 lines
327 B
Python
14 lines
327 B
Python
from lint import Linter
|
|
|
|
class CSS(Linter):
|
|
language = 'css'
|
|
cmd = ('csslint',)
|
|
regex = (
|
|
r'^\d+: (?P<type>(error|warning)) at line (?P<line>\d+), col (?P<col>\d+)$\W'
|
|
r'^(?P<error>.*)$'
|
|
)
|
|
multiline = True
|
|
|
|
def run(self, cmd, code):
|
|
return self.tmpfile(cmd, code, suffix='.css')
|