Commit Graph

204 Commits

Author SHA1 Message Date
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
Martin Grenfell
5794f3fbb9 Merge remote-tracking branch 'kongo/c_includes' 2011-10-25 11:18:59 +01:00
Heath Nail
73519a4003 Ignore lint free line. 2011-10-24 21:57:42 -04:00
Heath Nail
e3cac9dbff Display messages for csslint.
Simplify patterns and specify compact format for csslint cli.
2011-10-24 00:45:03 -04:00
Roman Gonzalez
d3317aefdc Modifying the syntax_checker for Haskell
Currently it was having some '{' '}' keys without a space
separator, causing some terminals to crash. This should
solve this issue.
2011-10-13 09:39:33 -07:00
Roman Gonzalez
09a63b2160 Updating the haskell syntax checker
The previous implementation was crashing the make vim utility, after
saving it was required to use :redraw! in order to keep using the editor.

After a lot of investigation, I realized that the use of && in commands is not
of the like to the :make vim utility.

The use of the && command was updated with "{ commad1; command2 }" approach,
this way we got the result we wanted without any obnoxious side effect.
2011-10-11 15:27:11 -07:00
Nate Jones
612225d9be don't break when efm_perl.pl isn't executable 2011-09-09 17:44:59 -07:00
kongo2002
48c0b59a28 add possibility to add compiler options like '-std=c++0x' 2011-09-09 21:55:04 +02:00
kongo2002
d6c25910c1 add header include search to cpp syntax checker 2011-09-09 21:41:25 +02:00
kongo2002
fc4181c256 tweak autoload file 2011-09-09 21:36:36 +02:00
kongo2002
3d77ad2c4d move c/cpp syntax helper functions into autoload 2011-09-09 21:31:45 +02:00
Serge Van Meerbeeck
6c6384ac17 Added conditional check on Windows, and adapted makeprg so that it works correctly (tested on Windows7) 2011-08-28 20:50:14 +02:00
Karl Yngve Lervåg
c7fd914fb4 Added syntax checker for fortran. 2011-08-23 23:56:50 +02:00
Martin Grenfell
cf6aa9a414 Merge pull request #58 from epeli/master
SCSS support
2011-08-22 08:25:27 -07:00
Martin Grenfell
3b00bdc483 Merge pull request #65 from kstep/master
Vala syntax check plugin
2011-08-22 08:23:27 -07:00
Martin Grenfell
166a63d8f0 Merge pull request #67 from atourino/new_compass_imports_for_sass_checker
Modifies the sass checker to use the --compass switch.
2011-08-22 08:21:41 -07:00
Martin Grenfell
4669dea036 Merge pull request #71 from roman/master
Updating puppet syntax checker
2011-08-22 08:20:36 -07:00
Andy Duncan
313695e2c6 Also match 'new' errors 2011-08-13 21:59:46 -07:00
Andy Duncan
3574ac167b add google closure linter support 2011-08-13 20:08:04 -07:00
Roman Gonzalez
50e99cc2c1 Improving the puppet syntax checker.
The current implementation only supports puppet < 2.6, when using
2.7.x it will complain all the time saying that the executable to check
syntax has changed. With this patch, it will work for version <= 2.7.x
2011-08-09 22:19:47 -07:00
kongo2002
bb834f38e5 extend default includes 2011-08-07 14:38:55 +02:00