From f874e9dc89b5437489e31b882b1bfe1b4b9fa053 Mon Sep 17 00:00:00 2001 From: bmihelac Date: Sat, 20 Nov 2010 00:00:26 +0800 Subject: [PATCH] fix for #13 --- syntax_checkers/haml.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax_checkers/haml.vim b/syntax_checkers/haml.vim index b61ba30e..a60412e7 100644 --- a/syntax_checkers/haml.vim +++ b/syntax_checkers/haml.vim @@ -23,8 +23,8 @@ function! SyntaxCheckers_haml_GetLocList() let output = system("haml -c " . shellescape(expand("%"))) if v:shell_error != 0 "haml only outputs the first error, so parse it ourselves - let line = substitute(output, '^Syntax error on line \(\d*\):.*', '\1', '') - let msg = substitute(output, '^Syntax error on line \d*:\(.*\)', '\1', '') + let line = substitute(output, '^\(Syntax\|Haml\) error on line \(\d*\):.*', '\2', '') + let msg = substitute(output, '^\(Syntax\|Haml\) error on line \d*:\(.*\)', '\2', '') return [{'lnum' : line, 'text' : msg, 'bufnr': bufnr(""), 'type': 'E' }] endif return []