Permalink
Browse files

return an error type for sass/haml checkers

  • Loading branch information...
1 parent 52f52fe commit af1a7b89a1eaa415c29b438c33622f960f11f104 @scrooloose scrooloose committed Jul 21, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 syntax_checkers/haml.vim
  2. +1 −1 syntax_checkers/sass.vim
View
@@ -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
@@ -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

0 comments on commit af1a7b8

Please sign in to comment.