From 48423832d4978f5aba16633b1f17ca3a82a22545 Mon Sep 17 00:00:00 2001 From: Tri Nguyen Date: Mon, 7 Mar 2016 22:17:15 -0500 Subject: [PATCH] extensions#whitespace: fix false positive for check_mix_indent_file() for JS file --- autoload/airline/extensions/whitespace.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/whitespace.vim b/autoload/airline/extensions/whitespace.vim index 375c69b2..546bfc77 100644 --- a/autoload/airline/extensions/whitespace.vim +++ b/autoload/airline/extensions/whitespace.vim @@ -35,7 +35,7 @@ function! s:check_mixed_indent() endfunction function! s:check_mixed_indent_file() - if stridx(&ft, 'c') == 0 || stridx(&ft, 'cpp') == 0 + if stridx(&ft, 'c') == 0 || stridx(&ft, 'cpp') == 0 || stridx(&ft, 'javascript') == 0 " for C/CPP only allow /** */ comment style with one space before the '*' let head_spc = '\v(^ +\*@!)' else