]> git.r.bdr.sh - rbdr/dotfiles/blob - vim/syntax_checkers/json.vim
2d2652dbc7ab9c56d255c9c832e252fde626e0e7
[rbdr/dotfiles] / vim / syntax_checkers / json.vim
1 "============================================================================
2 "File: json.vim
3 "Description: Figures out which json syntax checker (if any) to load
4 " from the json directory.
5 "Maintainer: Miller Medeiros <contact at millermedeiros 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_json_checker option to specify which jsonlint executable
13 " should be used (see below for a list of supported checkers).
14 " If g:syntastic_json_checker is not set, just use the first syntax
15 " checker that we find installed.
16 "============================================================================
17 if exists("loaded_json_syntax_checker")
18 finish
19 endif
20 let loaded_json_syntax_checker = 1
21
22 let s:supported_checkers = ["jsonlint", "jsonval"]
23 call SyntasticLoadChecker(s:supported_checkers)