diff --git a/syntax_checkers/yang/pyang.vim b/syntax_checkers/yang/pyang.vim index 3b23c899..68e5d85f 100644 --- a/syntax_checkers/yang/pyang.vim +++ b/syntax_checkers/yang/pyang.vim @@ -21,7 +21,9 @@ set cpo&vim function! SyntaxCheckers_yang_pyang_GetLocList() dict let makeprg = self.makeprgBuild({}) - let errorformat = '%f:%l:%m' + let errorformat = + \ '%W%f:%l: warning: %m,' . + \ '%E%f:%l: error: %m' return SyntasticMake({ \ 'makeprg': makeprg,