1 "============================================================================
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.
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")
20 let loaded_javascript_syntax_checker = 1
22 let s:supported_checkers = ["gjslint", "jslint", "jsl", "jshint"]
23 call SyntasticLoadChecker(s:supported_checkers)