Match both error and syntax error in verilog

This commit is contained in:
Bjorn Neergaard 2016-10-11 12:08:31 -05:00
parent 572c877a69
commit 93cd44e2ec
No known key found for this signature in database
GPG Key ID: D8F4DB0CE841305D
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ function! ale_linters#verilog#iverilog#Handle(buffer, lines)
endif
let l:line = l:match[1] + 0
let l:type = l:match[2] ==# 'error' ? 'E' : 'W'
let l:type = l:match[2] =~# 'error' ? 'E' : 'W'
let l:text = l:match[2] ==# 'syntax error' ? 'syntax error' : l:match[4]
call add(l:output, {