dafny: update filename handling

cf. #3475, #3390
This commit is contained in:
D. Ben Knoble 2021-01-23 12:34:36 -05:00
parent 9fd9435cd5
commit bacb8bb902
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ function! ale_linters#dafny#dafny#Handle(buffer, lines) abort
for l:match in ale#util#GetMatches(a:lines, '\v(.*)\((\d+),(\d+)\): (Verification of .{-} timed out after \d+ seconds)')
call add(l:output, {
\ 'bufnr': a:buffer,
\ 'filename': l:match[1],
\ 'col': l:match[3] + 0,
\ 'lnum': l:match[2] + 0,
\ 'text': l:match[4],

View file

@ -22,7 +22,7 @@ Execute(The Dafny handler should parse output correctly):
\ 'type': 'W'
\ },
\ {
\ 'bufnr': 0,
\ 'filename': 'File.dfy',
\ 'col': 45,
\ 'lnum': 123,
\ 'text': "Verification of 'Impl$$_22_Proof.__default.PutKeepsMapsFull' timed out after 2 seconds",