From 10bc9fea4421448dadf1773923b90e07a1707760 Mon Sep 17 00:00:00 2001 From: Darcy Parker Date: Fri, 13 Jan 2012 11:25:48 -0500 Subject: [PATCH 1/2] shellescaped(expand()) the filename passed to coffee --- syntax_checkers/coffee.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/coffee.vim b/syntax_checkers/coffee.vim index 9671418c..59dca752 100644 --- a/syntax_checkers/coffee.vim +++ b/syntax_checkers/coffee.vim @@ -20,7 +20,7 @@ if !executable("coffee") endif function! SyntaxCheckers_coffee_GetLocList() - let makeprg = 'coffee -c -l -o /tmp %' + let makeprg = 'coffee -c -l -o /tmp '.shellescape(expand('%')) let errorformat = 'Syntax%trror: In %f\, %m on line %l,%EError: In %f\, Parse error on line %l: %m,%EError: In %f\, %m on line %l,%W%f(%l): lint warning: %m,%-Z%p^,%W%f(%l): warning: %m,%-Z%p^,%E%f(%l): SyntaxError: %m,%-Z%p^,%-G%.%#' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) From 3989481ba3a80208c8615ffe40c0687a3b1edc01 Mon Sep 17 00:00:00 2001 From: Darcy Parker Date: Fri, 13 Jan 2012 11:26:11 -0500 Subject: [PATCH 2/2] shellescaped(expand()) the filename passed to xmllint --- syntax_checkers/docbk.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/docbk.vim b/syntax_checkers/docbk.vim index 8d0b3f4c..cd360e4a 100644 --- a/syntax_checkers/docbk.vim +++ b/syntax_checkers/docbk.vim @@ -21,7 +21,7 @@ endif function! SyntaxCheckers_docbk_GetLocList() - let makeprg="xmllint --xinclude --noout --postvalid %" + let makeprg="xmllint --xinclude --noout --postvalid ".shellescape(expand(%:p)) let errorformat='%E%f:%l: parser error : %m,%W%f:%l: parser warning : %m,%E%f:%l:%.%# validity error : %m,%W%f:%l:%.%# validity warning : %m,%-Z%p^,%-C%.%#,%-G%.%#' let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })