return an error type for sass/haml checkers

This commit is contained in:
Martin Grenfell 2009-07-22 11:48:22 +12:00
parent 52f52feafc
commit af1a7b89a1
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ function! SyntaxCheckers_haml_GetLocList()
"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', '')
return [{'lnum' : line, 'text' : msg, 'bufnr': bufnr("") }]
return [{'lnum' : line, 'text' : msg, 'bufnr': bufnr(""), 'type': 'E' }]
endif
return []
endfunction

View File

@ -25,7 +25,7 @@ function! SyntaxCheckers_sass_GetLocList()
"sass 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', '')
return [{'lnum' : line, 'text' : msg, 'bufnr': bufnr("") }]
return [{'lnum' : line, 'text' : msg, 'bufnr': bufnr(""), 'type': 'E' }]
endif
return []
endfunction