Commit Graph

19 Commits

Author SHA1 Message Date
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
aa07bd7122 ruby: make the mri checker play nicer with RVM
Query RVM for the version of ruby that should be used to do the syntax
check.

This wont work if the user has different versions of ruby for different
directories (e.g. if they are using a project rvmrc) as it will only a
single ruby version per vim instance.

I think this should satisfy almost everyone though, so we can wait for
feedback before doing anything more hardcore.
2012-10-15 12:49:22 +01:00
Austin Ziegler
cfd41f1ca3 Enable user-specified Ruby interpreters.
On systems where Ruby 1.8.7 is the default Ruby and users use
alternative suffixes (e.g., ruby19) or even rbenv or rvm Rubies, modern
Ruby syntax will be highlighted as an error.

The default behaviour in Syntastic is to run 'ruby' to check the syntax
of the script in question. This patch allows the user to specify a
different binary which may even be a full path. This should work on all
platforms.

  let g:syntastic_ruby_exec = 'ruby19'
  let g:syntastic_ruby_exec = '~/.rbenv/versions/1.9.2-p318/bin/ruby'
2012-07-24 13:08:22 +01:00
Martin Grenfell
630a57dfef ruby: add the structure for jruby support
* move the existing ruby checker to syntax_checkers/ruby/mri.vim
* add a skeleton checker for jruby
* load mri by default but add an option to specify which ruby checker to
  load

This is in response to #185
2012-03-02 17:38:39 +00:00
kongo2002
3ce9edb5fd extend ruby errorformat 2011-02-09 03:28:24 +08:00
kongo2002
1a1593a6fd don't set RUBYOPT on windows 2011-02-09 03:28:24 +08:00
Jeremy Cantrell
c61890f1b7 Properly escape % for makeprg 2010-09-24 10:48:49 +08:00
Robert Wahler
9515ebacab tone down ruby warnings to W1 (medium)
This avoids the "useless use of == in void context"
warning common in rspec spec files.
2010-06-24 13:11:54 +08:00
marty
5ad3cd67c1 change my email to gmail, hotmail licks ass crack 2009-12-16 23:02:36 +13:00
marty
f3fdaccc38 make sure we dont load rubygems when syntax checking [e]ruby 2009-09-13 18:33:03 +12:00
Martin Grenfell
1adfa4db5c make the syntax checkers use SyntasticMake 2009-07-15 21:29:28 +12:00
Martin Grenfell
3debc6537e use -w as well when checking ruby syntax 2009-07-14 14:19:11 +12:00
Martin Grenfell
0c35ca4416 use lmake instead of make 2009-07-14 09:53:36 +12:00
Martin Grenfell
33fd1d9cd8 use location list instead of quicklist 2009-07-13 23:12:18 +12:00
Martin Grenfell
17434a6b0d make ruby recognise warnings as well as errors 2009-07-11 19:06:48 +12:00
Martin Grenfell
6885b2ecd9 dont treat "Syntax OK" for ruby syntax checker 2009-07-11 16:47:57 +12:00
Martin Grenfell
04b312b0fd add a comment block to the top of the ruby syntax checker 2009-07-11 16:03:58 +12:00
Martin Grenfell
ad555bc093 correct &errorformat for ruby 2009-07-11 15:56:48 +12:00
Martin Grenfell
20f7bb0d10 initial hacks 2009-07-11 11:09:52 +12:00