less: Fix logic for when to use less-lint

This commit is contained in:
Richard Brown 2012-09-26 12:32:37 +01:00
parent 0b5127886f
commit be92722913

View File

@ -36,9 +36,9 @@ if !exists("g:syntastic_less_use_less_lint")
endif endif
if g:syntastic_less_use_less_lint if g:syntastic_less_use_less_lint
let s:check_file = 'lessc'
else
let s:check_file = 'node ' . expand('<sfile>:p:h') . '/less-lint.js' let s:check_file = 'node ' . expand('<sfile>:p:h') . '/less-lint.js'
else
let s:check_file = 'lessc'
end end
function! SyntaxCheckers_less_GetLocList() function! SyntaxCheckers_less_GetLocList()