Skip to content

Commit

Permalink
Merge pull request #1 from xraystyle/master
Browse files Browse the repository at this point in the history
Update regex to correctly match puppet parser validate output.
  • Loading branch information
dschaaff authored Aug 9, 2019
2 parents 8567a0a + be123fe commit 6af8d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ class Puppet(Linter):
'selector': 'source.puppet'
}
cmd = ('puppet', 'parser', 'validate', '--color=false')
regex = r'^Error:.+?(?P<message>Syntax error at \'(?P<near>.+?)\'?(?P<line>\d+):?(?P<col>\d+))'
regex = r'^Error:.+?(?P<message>Syntax error at \'(?P<near>.*?)\' \(line: (?P<line>\d+), column: (?P<col>\d+)\))'
error_stream = util.STREAM_STDERR

0 comments on commit 6af8d80

Please sign in to comment.