]> git.r.bdr.sh - rbdr/dotfiles/blob - vim/syntax_checkers/javascript.vim
026c73717876b5900498fa05b313e834bf69efdd
[rbdr/dotfiles] / vim / syntax_checkers / javascript.vim
1 "============================================================================
2 "File: javascript.vim
3 "Description: Figures out which javascript syntax checker (if any) to load
4 " from the javascript directory.
5 "Maintainer: Martin Grenfell <martin.grenfell at gmail dot com>
6 "License: This program is free software. It comes without any warranty,
7 " to the extent permitted by applicable law. You can redistribute
8 " it and/or modify it under the terms of the Do What The Fuck You
9 " Want To Public License, Version 2, as published by Sam Hocevar.
10 " See http://sam.zoy.org/wtfpl/COPYING for more details.
11 "
12 " Use g:syntastic_javascript_checker option to specify which jslint executable
13 " should be used (see below for a list of supported checkers).
14 " If g:syntastic_javascript_checker is not set, just use the first syntax
15 " checker that we find installed.
16 "============================================================================
17 if exists("loaded_javascript_syntax_checker")
18 finish
19 endif
20 let loaded_javascript_syntax_checker = 1
21
22 let s:supported_checkers = ["gjslint", "jslint", "jsl", "jshint"]
23 call SyntasticLoadChecker(s:supported_checkers)