Commit Graph

15 Commits

Author SHA1 Message Date
Martin Grenfell
7353b32d77 perl: add -Tc to makeprg if the shebang contains -T
If the shebang contains -T, then the makeprg looks like:
    perl '/path/to/efm_perl.pl' -c -w '/tmp/foo.pl' -Tc

Mods to syntastic#util#ParseMagicNumber
 * rename it to ParseShebang (since this name seems more common)
 * return an empty result set rather than 0 so callers dont have to
   check if empty()
2012-12-18 09:38:33 +00:00
David Barnett
dcac33ecc0 Set g:loaded_FOO_syntax_checker in syntastic.vim, not every ft file. 2012-11-26 21:44:43 -08:00
Martin Grenfell
ab59e7dcf0 perl: namespace the 'perl_lib_path' option under 'syntastic' 2012-08-03 00:27:37 +01:00
Martin Grenfell
f99073e20d perl: refactor the new syntastic_perl_efm_program option
* move the doc for it to the top of the script to be consistent with
  other syntax checkers
* dont define a s:checker var - just use the
  g:syntastic_perl_efm_program variable. This simplifies things slightly
2012-08-03 00:25:52 +01:00
Harley Pig
fb18ea177b add support for a custom efm_perl program 2012-08-01 07:54:46 -06:00
Khaled Hussein
f67266e2f5 Improves the Perl syntax checker to include lib
In .vimrc, you can specify the path for the libraries using :
let g:perl_lib_path = './lib'
2012-07-02 10:10:01 -07:00
Eric Harmon
979258dbbe Make sure we add some contact info 2012-05-31 04:26:08 -04:00
Eric Harmon
9833b00c60 Add warnings support to perl checker 2012-05-31 04:23:04 -04:00
Martin Grenfell
5e438933f3 perl: fix the makeprg - I failed in the previous commit 2012-02-09 14:21:37 +00:00
Martin Grenfell
ddecc79d19 perl: add the output munger to the repo
previously we assumed the user had efm_perl.pl installed as part of the
standard vim runtime, but this isnt so for CentOS and possibly for other
distros - see issue #159. Therefore, we now ship it with syntastic
itself.

Note: efm_perl.pl just munges the output of perl into a different
format. It may be worth investigating further and writing our own
errorformat to remove the dependency on efm_perl.
2012-02-09 13:50:04 +00:00
Anthony Carapetis
d4683b39f0 bugfix from Michael Ludwig for VIMRUNTIME paths with spaces (e.g. on windwos) 2012-02-01 14:49:21 +11:00
Nate Jones
612225d9be don't break when efm_perl.pl isn't executable 2011-09-09 17:44:59 -07:00
Harley Pig
c9a23c0bdb allow for custom perl efm program 2010-12-26 06:32:39 +08:00
Jeremy Cantrell
c61890f1b7 Properly escape % for makeprg 2010-09-24 10:48:49 +08:00
Anthony Carapetis
adb375c380 added perl syntax checker 2009-11-24 18:33:47 +08:00