fix for #13
This commit is contained in:
parent
b8fbc338ce
commit
f874e9dc89
@ -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 []
|
||||
|
Loading…
Reference in New Issue
Block a user