Commit Graph

224 Commits

Author SHA1 Message Date
Martin Grenfell
3c1a8266eb Merge pull request #119 from technosophos/master
Added the --standard=Zend flag as default
2011-12-13 08:26:25 -08:00
Matt Butcher
e3c2b95b94 Added default setting to php.vim.
Changed the default standard to Zend, which is the most forgiving
of the out-of-the-box syntaxes.
2011-12-13 10:20:07 -06:00
Martin Grenfell
394d129b55 refactor the javascript syntax checkers
The js syntax checker was 4 checkers stuffed into 1 file. Now it is
broken down so that each checker is in its own file inside
syntax_checkers/javascript/ while syntax_checkers/javascript.vim just
determines which file to source.

Change the names of the global js checker config variables so that
they all start with "syntastic_javascript_". This is purely for
namespacing.

Remove some unneeded logic around the config variables too. Not sure how
it got in there, but it was more confusing than helpful without offering
any benefits...
2011-12-11 22:54:33 +00:00
Martin Grenfell
8dba3fe0b5 less checker: update the error format for the latest version
I installed the latest version of lessc and they have modified their
output slightly. Update the errorformat for this.

Also, they new output is colorized by default. So I have added an option
to specify args to the checker that currently defaults to "--no-color".
This means that if people want to use an older version of lessc, they
will need to reset this option to an empty string.
2011-12-11 14:33:44 +00:00
Martin Grenfell
0af738a59a less checker: fix a syntax error
ironic?
2011-12-11 14:32:53 +00:00
Zhao Cai
6a7529713b 0.2.1 - remove g:syntastic_applescript_tempfile. use tempname() instead. 2011-12-09 13:11:45 -05:00
Zhao Cai
2302f12367 add applescript syntax_checker 2011-12-09 10:32:39 -05:00
Martin Grenfell
da78242123 add an option to SyntasticMake to specify defaults
Many of the syntax checkers were setting the 'bufnr' key for each
error manually and one was setting 'text' if it didnt exist too.

Add the 'defaults' option to SyntasticMake to set default values in the
returned error list - it only sets values if they are empty.
2011-12-09 13:47:42 +00:00
Martin Grenfell
8ca2028f3e javascript checker: make jshint 0.5.3 work 2011-12-09 12:40:42 +00:00
Martin Grenfell
a97b9eaba8 Merge pull request #81 from millermedeiros/master
improve support for HTML5 attributes
2011-12-08 23:40:55 -08:00
Martin Grenfell
70166f4ac6 javascript checker: make the jslint checker work again
Add a highlight function too.
2011-12-08 20:24:54 +00:00
Martin Grenfell
3defb627a5 php checker: add an option to disable phpcs 2011-12-07 14:13:18 +00:00
Martin Grenfell
6b6e2d1d37 php checker: ignore the csv headers in the phpcs errorformat 2011-12-07 14:03:57 +00:00
Martin Grenfell
e0ec1a3318 refactor the php checker
* move the phpcs code into its own function
* just use g:syntastic_phpcs_conf instead of initing a local var every
  time the checker is invoked
2011-12-07 14:03:57 +00:00
Matt Butcher
b21ddb5283 Added g:syntastic_phpcs_conf to allow phpcs flags.
PHPCS has a wide variety of commandline flags, including
support for various syntaxes. These must be configurable,
otherwise phpcs generates a high number of spurious errors for
code written to any standard other than the PEAR standard.
2011-12-07 14:03:57 +00:00
millermedeiros
6982c38b88 filter HTML5 warnings without using grep. see #53. see #81. 2011-12-07 11:14:18 -02:00
millermedeiros
10c0c34d80 improve support for HTML5 attributes and refactor html.vim logic to allow adding new grep rules easily. see #53 2011-12-07 11:14:18 -02: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
Martin Grenfell
ea7d9779f0 update the gjslint javascript checker
This was missing errors like this:

/tmp/foo.js:1:(-002) Error parsing file at token ")". Unable to check the rest of file.

The reason is because of the minus sign in front of the 002. It is using
%m to match that, which appears to only match positive numbers - so just
ignore the minus sign.
2011-12-04 02:14:24 +00:00
Martin Grenfell
62ef08d334 make a fix to the coffee checker
This is in response to #88 where errors like this were getting missed:

SyntaxError: In simpleMapComponent.js.coffee, Reserved word "function" on line 10
 at SyntaxError (unknown source)
 at Lexer.identifierError (/usr/lib/node_modules/coffee-script/lib/lexer.js:458:13)
 at Lexer.identifierToken (/usr/lib/node_modules/coffee-script/lib/lexer.js:80:16)
 at Lexer.tokenize (/usr/lib/node_modules/coffee-script/lib/lexer.js:31:19)
 at Object.compile (/usr/lib/node_modules/coffee-script/lib/coffee-script.js:29:34)
 at /usr/lib/node_modules/coffee-script/lib/command.js:149:33
 at /usr/lib/node_modules/coffee-script/lib/command.js:115:26
 at [object Object].<anonymous> (fs.js:107:5)
 at [object Object].emit (events.js:61:17)
 at afterRead (fs.js:878:12)

To fix this I have added another error matcher on the front of the
errorformat and have made a fix to the %-G matcher on the end (i.e. it
wasnt actually matching anything before).

The errorformat may need more updating.
2011-12-04 01:40:12 +00:00
Martin Grenfell
092c7cdb19 fix for erlang syntax checker
dont hardcode the path of the checking script
2011-12-02 10:38:11 +00:00
Martin Grenfell
319b8f2cb8 shift all the c helper functions into their own autoload lib file
This is mainly just for namespacing purposes and to set a pattern for
future helper lib functions.
2011-11-30 22:13:16 +00:00
Martin Grenfell
965b3b7203 move the highlighting/balloon code into the main plugin file
In future I may move most of the code out into an autoload file, but in
the meantime I want all the code tidy and in one place for the next
release
2011-11-30 19:23:31 +00:00
Martin Grenfell
fc6e785a4e sass: remove the bufnr hacks and ignore some irrelevant output
We dont need to manually hack the bufnr for each entry in the loc list
since that the error output includes a file name.

Ignore the last line of the error message since it seems to always just
be "use --trace for a backtrace"
2011-11-29 09:16:40 +00:00
Martin Grenfell
4fbec5fdbd move the scss checker out of the sass checker
Just load the sass checker and call off to that - dont duplicate the
code as it previously was.
2011-11-29 09:11:08 +00:00
Martin Grenfell
12c9c334b1 fix a typo in the erlang syntax checker 2011-11-27 21:47:26 +00:00
Martin Grenfell
950dc1a6e5 apply kTT's patch to fix the erlang syntax checker 2011-11-27 21:43:44 +00:00
Pawel 'kTT' Salata
6fab5bf5ab Syntax checking for erlang 2011-11-27 21:39:48 +00:00
Martin Grenfell
3c26740b28 js checker: let the user configure which checker to use
Add the g:syntastic_javascript_checker option so the user can specify
which javascript syntax checker to use. If none is specified then just
use the first syntax checker we find installed.
2011-11-27 01:25:51 +00:00
Martin Grenfell
e7be5101e8 Merge pull request #107 from zsprackett/puppet-syntax-fix
Need this on new puppet as well
2011-11-25 01:44:06 -08:00
S. Zachariah Sprackett
4b0888740e Need this on new puppet as well 2011-11-24 22:48:56 -05:00
Martin Grenfell
b75b836e5e Merge pull request #78 from sergevm/master
Update of eRuby checker for Windows OS
2011-11-24 15:56:51 -08:00
Martin Grenfell
3be983469e Merge pull request #86 from justone/allow_non_executable_efm_perl_pl
don't break when efm_perl.pl isn't executable
2011-11-24 15:55:15 -08:00
Martin Grenfell
05667205a9 Merge pull request #76 from lervag/master
Added support for Fortran
2011-11-24 15:53:46 -08:00
Martin Grenfell
67a2d99da7 Merge pull request #92 from roman/master
Updating the haskell syntax checker
2011-11-24 15:39:57 -08:00
Fjölnir Ásgeirsson
3826391e7d Changed the C syntax checker to use GNU99 (as opposed to GNU89).
Conflicts:

	syntax_checkers/c.vim
2011-11-24 23:30:40 +00:00
Martin Grenfell
dc485b8389 Merge pull request #98 from docteurklein/phpcs
added phpcs support
2011-11-24 15:17:52 -08:00
Clayton Parker
1cb56c8bb4 Add support for Zope Page Template syntax checking using zptlint 2011-11-24 23:12:36 +00:00
Martin Grenfell
8a1f3b8dd2 Merge pull request #104 from soli/master
Allow the use of flake8 (http://pypi.python.org/pypi/flake8) instead of pyflakes to check python code
2011-11-24 15:02:56 -08:00
S. Zachariah Sprackett
239aed5c09 Add --ignoreimport to puppet parse 2011-11-23 14:59:07 -05:00
Sylvain Soliman
9796022986 Allow the use of flake8 instead of pyflakes to check python code
Define a user-configurable variable g:syntastic_python_checker and
otherwise default to an available checker.
Make the highlighting catch all pyflakes errors
Add a header to the file
Make the errorformat handle columns provided by pep8 through flake8
2011-11-16 16:37:03 +01:00
Martin Grenfell
d2f51c70ea Merge pull request #99 from kusnier/xslt_checker
Add xslt syntax checker
2011-11-08 15:45:35 -08:00
Sebastian Kusnier
7127e3c88f add xslt syntax checker 2011-11-08 10:53:38 +01:00
Sebastian Kusnier
6c83939fab add xml syntax checker 2011-11-07 23:00:44 +01:00
Klein Florian
22fedb5350 added phpcs support 2011-10-28 11:35:03 +02:00
kongo2002
e220e1d8e6 remove unnecessary Init() from c syntax checker 2011-10-25 22:48:19 +02:00
Martin Grenfell
ffede31b9f Merge pull request #96 from sitedyno/csslint-compact-#55
Support new error formats in csslint 0.8.0
2011-10-25 12:30:23 -07:00
Heath Nail
de22bd1b7f Support new error formats in csslint 0.8.0 2011-10-25 12:43:21 -04:00
Martin Grenfell
b921b90aa5 Merge remote-tracking branch 'kongo/cpp_autoload'
Conflicts:
	syntax_checkers/c.vim
2011-10-25 11:24:33 +01:00