Commit Graph

25 Commits

Author SHA1 Message Date
LCD 47
b9accaa810 Minor cleanup: &cpo guards and formatting. 2014-01-03 11:29:08 +02:00
LCD 47
b89c644468 Fix an infinite loop in syntastic#util#findInParent().
As a side effect, also fix some of the "has('win32')" mess.
2013-12-04 16:50:35 +02:00
LCD 47
3694908d05 Registry cleanup, stage 2.
(1) Checkers now have an _exec attribute, and an accessor getExec().
(2) CreateAndRegisterChecker() initializes _exec from an optional argument
'exec'.  If this argument is missing, 'name' is used instead.
(3) Functions SyntaxCheckers_*_IsAvailable() are now dictionary functions.
(4) Functions SyntaxCheckers_*_IsAvailable() are now optional.  When
they are missing, they are assumed to return executable(expand(self.getExec())).
(5) Argument 'exe' of function syntastic#makeprg#build() is now optional.
If this argument is missing, expand(self.getExec()) is used to set checker
executables.
2013-11-02 10:44:06 +02:00
LCD 47
28bce98a68 Registry cleanup, stage 1.
Make SyntaxCheckers_*_GetLocList() dictionary functions.
Pass a reference to the current checker to syntastic#makeprg#build().
Add an optional 'redirect' argument to CreateAndRegisterChecker().
Change the sh checker to use the new dictionary functions.
Add a new registry method getLocListRaw() (needed for the sh checker).
2013-11-02 10:44:06 +02:00
LCD 47
bedf88c184 Cleanup parsing versions. 2013-09-24 08:39:07 +03:00
LCD 47
4abed35797 Undo most of the changes to eruby/ruby.
The new proprocess option is not useful here.
2013-08-01 17:26:51 +03:00
LCD 47
cc5ecf2bdb Replace lmake with equivalent system + lgetexpr.
It's now possible to deal with \0 characters in checkers' output.
Shell escaping is saner and safer.
SyntasticMake() has a new option 'preprocess'.
Checkers html/validator and eruby/ruby now use the new preprocess
option.  Auxilliary script validator_decode.awk is no longer needed.
2013-08-01 13:40:29 +03:00
LCD 47
e380a86180 Shell escaping is safer since commit a1e1108. 2013-07-31 16:32:36 +03:00
LCD 47
03429e69b6 More eRuby fun with encodings.
Ruby 1.8 doesn't support encodings when opening files.
2013-07-24 23:01:57 +03:00
LCD 47
bc6ca26f68 Removed erb checker for eRuby.
Rationale: ruby.vim is functionally identical, and faster.
2013-07-11 09:31:19 +03:00
LCD 47
a1e1108c8e Fix a bug related to shell escaping. 2013-07-10 10:30:41 +03:00
LCD 47
6ba8e651cb Make shell escaping less produce fewer useless quotes.
Function inspired by tpope's vim-dispatch.
2013-07-04 21:04:20 +03:00
LCD 47
0f1d451d96 Fix for Rails syntax.
There is now little point in running this checker rather than the plain
ruby one.
2013-07-03 21:36:14 +03:00
LCD 47
24876abc32 More encoding problems in the eruby/ruby checker. 2013-06-29 10:55:43 +03:00
LCD 47
2cbcf7dcc7 Give up trying to set an encoding for erb. 2013-06-19 11:47:27 +03:00
LCD 47
c21f9e0f86 Rename eruby.vim -> erb.vim. 2013-06-18 19:47:26 +03:00
LCD 47
e7a3fd62a6 Clean erb checker. 2013-06-18 19:47:05 +03:00
Grzegorz Smajdor
d9d641fe0a provide a syntax check for eruby file
(cherry picked from commit e6ff3de83b9fee4f92dbc3042cf5fbcc48464f73)
2013-06-18 19:08:52 +03:00
LCD 47
ede4127f13 eRuby: take into account &fileencoding. 2013-06-12 08:00:27 +03:00
Manic Chuang
73a83a3208 Let eruby checker can handle UTF-8 2013-06-12 12:08:42 +08:00
LCD 47
197ca09edd Bug fix: proper escaping in eruby. Fixes #29. 2013-06-08 21:08:45 +03:00
Martin Grenfell
602bbe7b24 break down some error format strings
Most errorformats are now expressed 1 "clause" per line.
2013-05-14 17:36:20 +01:00
Martin Grenfell
16424e5761 add guards to all checkers
goddamn I love macros
2013-02-21 15:50:41 +00:00
Martin Grenfell
4552884c6c bugfix for eruby checker 2013-01-30 17:04:45 +00:00
Martin Grenfell
e0b8e87c93 refactor all the syntax checkers to use the new API and dir layout 2013-01-27 20:08:30 +00:00