diff --git a/ChangeLog b/ChangeLog index 459e11ab..440f2074 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ Adjust Perl Compile command to use the -c command line option to perform a syntax check instead of using the deprecated ByteCompile module. + Add error_regex to parse error messages and warnings when performing + syntax checks on Perl files. 2010-04-05 Nick Treleaven diff --git a/data/filetypes.perl b/data/filetypes.perl index 07d5ba47..3ea2f80d 100644 --- a/data/filetypes.perl +++ b/data/filetypes.perl @@ -78,3 +78,8 @@ compiler=perl -cw "%f" #compiler=perlcc -o "%e" "%f" run_cmd=perl "%f" + +# Parse syntax check error messages and warnings, examples: +# syntax error at test.pl line 7, near "{ +# Unknown warnings category '1' at test.pl line 13 +error_regex=.+ at (.+) line ([0-9]+).*