Skip to content

Commit

Permalink
Handle new error format (rjusted numbers + KO->Error) and add type
Browse files Browse the repository at this point in the history
Fix #4
  • Loading branch information
alexandregv committed Sep 24, 2022
1 parent d5ed13f commit 1a06bc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions compiler/norminette.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ if !exists("g:norminette_exec") && exists("g:syntastic_c_norminette_exec") | let
if !exists("g:norminette_exec") | let g:norminette_exec="norminette" | endif
let &makeprg=g:norminette_exec

CompilerSet errorformat =%P%f:\ KO!,
CompilerSet errorformat+=%.%#(line:\ %l\\,\ col:\ %c):%m,
CompilerSet errorformat+=%.%#(line:\ %l):%m,
CompilerSet errorformat =%P%f:\ Error!,
CompilerSet errorformat+=%t%.%#(line:%.%#\ %l\\,\ col:%.%#\ %c):%m,
CompilerSet errorformat+=%t%.%#(line:%.%#\ %l):%m,
CompilerSet errorformat+=%Q,

CompilerSet errorformat+=%PNorme:\ %f,
Expand Down
6 changes: 3 additions & 3 deletions syntax_checkers/c/norminette.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ function! SyntaxCheckers_c_norminette_GetLocList() dict
let makeprg = self.makeprgBuild({})

let errorformat =
\ '%P%f: KO!,' .
\ '%.%#(line: %l\, col: %c):%m,' .
\ '%.%#(line: %l):%m,' .
\ '%P%f: Error!,' .
\ '%t%.%#(line:%.%# %l\, col:%.%# %c):%m,' .
\ '%t%.%#(line:%.%# %l):%m,' .
\ '%Q,' .
\ '%PNorme: %f,' .
\ '%t%.%# (line %l\, col %c): %m,' .
Expand Down

0 comments on commit 1a06bc1

Please sign in to comment.