From d5432698a7e7fa0c599aad021592e79d5a5987c3 Mon Sep 17 00:00:00 2001 From: rolinli Date: Wed, 20 Nov 2013 18:42:15 +0800 Subject: [PATCH] allow *.json when file type checking; --- plugin/jsbeautify.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/jsbeautify.vim b/plugin/jsbeautify.vim index 2512aa1..2dd40d9 100644 --- a/plugin/jsbeautify.vim +++ b/plugin/jsbeautify.vim @@ -280,7 +280,7 @@ function! s:get_next_token() endfunction function! s:is_js() - return expand("%:e") == "js" + return expand("%:e") == "js" || expand("%:e") == "json" endfunction "function! g:Jsbeautify(js_source_text, options)