return an error type for sass/haml checkers
This commit is contained in:
parent
52f52feafc
commit
af1a7b89a1
@ -25,7 +25,7 @@ function! SyntaxCheckers_haml_GetLocList()
|
|||||||
"haml only outputs the first error, so parse it ourselves
|
"haml only outputs the first error, so parse it ourselves
|
||||||
let line = substitute(output, '^Syntax error on line \(\d*\):.*', '\1', '')
|
let line = substitute(output, '^Syntax error on line \(\d*\):.*', '\1', '')
|
||||||
let msg = 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
|
endif
|
||||||
return []
|
return []
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -25,7 +25,7 @@ function! SyntaxCheckers_sass_GetLocList()
|
|||||||
"sass only outputs the first error, so parse it ourselves
|
"sass only outputs the first error, so parse it ourselves
|
||||||
let line = substitute(output, '^Syntax error on line \(\d*\):.*', '\1', '')
|
let line = substitute(output, '^Syntax error on line \(\d*\):.*', '\1', '')
|
||||||
let msg = 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
|
endif
|
||||||
return []
|
return []
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user