Skip to content

pjcj/syntax-check-perl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perl syntax checker Build Status

This is a Perl syntax checker, especially for ale.

Integrate with vim-plug and ale

Here is how to integrate with vim-plug and ale.

call plug#begin('~/.vim/plugged')
Plug 'w0rp/ale'
Plug 'skaji/syntax-check-perl'
call plug#end()

let g:ale_linters = { 'perl': ['syntax-check'] }

Configuration

If you write Perl a lot, then I assume you have your own favorite for how to check Perl code. You can set config file for syntax-check:

let g:ale_perl_syntax_check_config = expand('~/.vim/your-config.pl')

" there is also my favorite, and you can use it:)
let g:ale_perl_syntax_check_config = g:plug_home . '/syntax-check-perl/config/relax.pl'

" add arbitrary perl executable names. defaults to "perl"
let g:ale_perl_syntax_check_executable = 'my-perl'

" add arbitrary paths for including libs. defaults to "-I lib"
let g:ale_perl_syntax_check_options = '-Ilib -It/lib'

The config files are written in Perl, so you can do whatever you want:) See default.pl.

Debugging

You can use :ALEInfo in vim to troubleshoot Ale plugins. Scroll to the bottom of the :ALEInfo output to find any errors which may have been produced by this plugin.

Author

Shoichi Kaji

License

The same as perl

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Perl 84.5%
  • Vim Script 15.5%