Merge pull request #1081 from tnguyen14/master

extensions#whitespace: fix false positive for check_mix_indent_file() for JS file
This commit is contained in:
Christian Brabandt 2016-03-08 20:30:52 +01:00
commit 4395405628

View File

@ -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