mirror of
https://github.com/sstent/sublime-text-3.git
synced 2026-02-01 01:51:38 +00:00
backing up sublime settings
This commit is contained in:
9
Packages/User/linters/puppet.py
Normal file
9
Packages/User/linters/puppet.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from lint import Linter
|
||||
|
||||
class Puppet(Linter):
|
||||
language = 'puppet'
|
||||
cmd = ('puppet', 'parser', 'validate', '--color=false')
|
||||
regex = r'^([^:]+:){2}\s*(?P<error>(Syntax error at|Could not match) \'?(?P<near>[^ ]*?)\'?.*) at [^:]*:(?P<line>\d+)$'
|
||||
|
||||
def run(self, cmd, code):
|
||||
return self.tmpfile(cmd, code, suffix='.puppet')
|
||||
Reference in New Issue
Block a user