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
e3c3dda1c1
sh: relax makeprg to catch errors that werent getting parsed
...
Errors like this were not getting picked up:
/tmp/foo.sh: line 4: syntax error near unexpected token `)'
/tmp/foo.sh: line 4: `!!"£!")£!"£echo "foo"'
2012-09-18 00:37:56 +01:00
Martin Grenfell
f1d1827852
sh checker: extract out some logic into functions
2012-09-18 00:35:05 +01:00
Richard Brown
0140f4baca
Add syntax checker for ft=zsh
...
The current sh.vim checks for ft=sh and #!/bin/zsh This add a checker
specifically for ft=zsh and changes sh.vim to call the same code.
2012-09-06 09:53:34 +01:00
Richard Brown
f1758b6e61
Use SyntasticMake in sh.vim
...
Simplifies sh.vim by using SyntasticMake, also fixes #303
2012-09-06 09:52:06 +01:00
Martin Grenfell
1ce4d31930
fix a bug with the sh checker
2011-12-05 15:07:22 +00:00
Martin Grenfell
ae9f45cf4a
fix a small bug with the sh syntax checker and refactor
...
Previously, if we edited a new bash script then we would have to wipeout
the buffer and recreate it to get syntastic to recognise it as a bash
script. This is because it parsed out a magic number and cached that -
and it trivially fails to find a magic number when you create a new
file.
So recheck for a magic number if it is currently empty.
Also, do a small refactor.
2011-12-04 02:28:21 +00:00
Jeremy Cantrell
5f775a452c
Fixed shebang detection for multiple buffers
2010-06-24 13:05:07 +08:00
kongo2002
7d6452a15f
recognize '#!/bin/sh' as well
2010-02-19 09:44:45 +08:00
Jeremy Cantrell
6788c8513a
User's shell was being used instead of the one specific to the filetype
2010-02-19 09:44:18 +08:00
kongo2002
0b157baa96
change maintainer of c/cpp/sh syntax checker
2009-12-23 04:11:40 +08:00
kongo2002
9d1438bbae
add short explanation for c/cpp header file checking
2009-12-23 04:11:39 +08:00
kongo2002
bcbb485f7a
added some shellescape()
2009-12-23 04:11:37 +08:00
kongo2002
5ae0aaab58
process all lines given by bash output
2009-12-23 04:11:37 +08:00
kongo2002
5ccfddf7b7
check for bash or zsh
2009-12-23 04:11:36 +08:00
kongo2002
bc087ce754
first try on shell syntax checker
2009-12-23 04:11:36 +08:00