Commit Graph

2625 Commits

Author SHA1 Message Date
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
6b23d638b4 update the doc
some work still needs to be done here
2011-11-30 19:23:00 +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
31d3a7d619 trivial cosmetic code fix 2011-11-29 08:44:51 +00:00
Martin Grenfell
5c0dbc5d05 init the components of syntastic_mode_map separately
this allows the user to skip components in their own definition
2011-11-29 08:44:09 +00:00
Martin Grenfell
295f7a5d29 shift the :command definitions to a common place - to be tidy
Previously they were with their associated functions, but better to have
them all in one place.
2011-11-29 08:38:28 +00:00
Martin Grenfell
47147aad17 remove the old code to disable/enable filetypes
This system has been superseded by the new mode map code. If requested
in future, some code may be added to manipulate the active/passive types
in the mode map at runtime to provide the same functionality.
2011-11-29 08:36:42 +00:00
Martin Grenfell
78fbd7fa13 add g:syntastic_mode_map option
This option will allow users to fine tune when automatic syntax checking
is done.

The option should be set to something like:

let g:syntastic_mode_map = { 'mode': 'active',
                           \ 'active_filetypes': [],
                           \ 'passive_filetypes': ['puppet'] }

g:syntastic_mode_map['mode'] can take one of 2 values - "active" or
"passive". When set to active, syntastic does automatic checking as
usual. When set to "passive" syntastic only checks when the user calls
:SyntasticCheck.

The exceptions to these rules are defined in "active_filetypes"
"passive_filetypes". In passive mode, automatic checks are still done
for all filetypes in the "active_filetypes" array. In active mode,
automatic checks are not done for any filetypes in the
"passive_filetypes" array.
2011-11-28 23:44:40 +00:00
Martin Grenfell
e7b8375dec Merge remote-tracking branch 'justone/add_one_time_check' 2011-11-28 23:41:53 +00:00
Martin Grenfell
3d385cf0cd fix a bug on windows 2011-11-28 23:38:45 +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
f428139a0f remove custom highlights manually - not with matchclear()
Previously we were blowing away highlights that were added by other
plugins via matchadd(). To prevent this we now track all the ids of the
highlights groups we add and remove them explicitly with matchdelete().
2011-11-27 15:35:56 +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
02ab57da12 Merge pull request #89 from mlb-/FreeBSD_hack
Counter-hack to provide screen redraw on FreeBSD
2011-11-24 15:50:42 -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
d472fcce3f Merge pull request #85 from jimenezrick/add-gitignore
Adds .gitignore file, useful with pathogen
2011-11-24 15:21:22 -08: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
Martin Grenfell
e9460a0b85 Merge pull request #106 from zsprackett/puppet-syntax-fix
Add --ignoreimport to puppet parse
2011-11-24 03:05:10 -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
Ricardo Catalinas Jiménez
1acc40da7b Adds .gitignore file, useful with pathogen
Ignore `tags' files created when using pathogen.
2011-11-09 13:26:59 +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
Martin Grenfell
28d42b7240 Merge pull request #100 from kusnier/xml_checker
Add xml syntax checker
2011-11-08 15:45:10 -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
Martin Grenfell
fb4fa11401 Merge pull request #94 from sitedyno/csslint-compact-#55
Display messages for csslint.
2011-10-25 01:52:42 -07: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
Matthew Batema
f4177a3236 Counter-hack to provide screen redraw on FreeBSD
I'd attempted to find something useful in the sh/csh/tcsh man pages to
get similar shell redirection that &>/>& does, but it appears that all
fds are redirected, not just stderr and stdout.
2011-09-19 13:10:53 -07:00
Nate Jones
bb37d47018 add command to force a syntastic check
This allows a particular file type to be disabled but still be checked
when desired.  Useful for syntax checks that take a few seconds like the
puppet one.
2011-09-09 17:46:56 -07:00
Nate Jones
612225d9be don't break when efm_perl.pl isn't executable 2011-09-09 17:44:59 -07:00