Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bmihelac authored and scrooloose committed Dec 25, 2010
1 parent b8fbc33 commit f874e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax_checkers/haml.vim
Expand Up @@ -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 []
Expand Down

0 comments on commit f874e9d

Please sign in to comment.