diff --git a/linter.py b/linter.py index 988844c..ddd41f4 100644 --- a/linter.py +++ b/linter.py @@ -21,5 +21,5 @@ class Puppet(Linter): 'selector': 'source.puppet' } cmd = ('puppet', 'parser', 'validate', '--color=false') - regex = r'^Error:.+?(?PSyntax error at \'(?P.+?)\'?(?P\d+):?(?P\d+))' + regex = r'^Error:.+?(?PSyntax error at \'(?P.*?)\' \(line: (?P\d+), column: (?P\d+)\))' error_stream = util.STREAM_STDERR