diff options
author | Horacio Sanson <hsanson@gmail.com> | 2021-01-24 14:07:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-24 14:07:12 +0900 |
commit | 18eb6a0758717662f7674801c01091d2a972dfeb (patch) | |
tree | 9fc7eb5b21e4092fcbab7d819287bfeaf864a067 | |
parent | 580271b510b3a6b91aa5581aa8476465f1dc5ce4 (diff) | |
parent | bacb8bb9023725f82b90dcea2c120274676eed99 (diff) | |
download | ale-18eb6a0758717662f7674801c01091d2a972dfeb.zip |
Merge pull request #3557 from benknoble/dafny-filename-again
dafny: update filename handling
-rw-r--r-- | ale_linters/dafny/dafny.vim | 2 | ||||
-rw-r--r-- | test/handler/test_dafny_handler.vader | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/dafny/dafny.vim b/ale_linters/dafny/dafny.vim index de7a7bb8..2a9f761a 100644 --- a/ale_linters/dafny/dafny.vim +++ b/ale_linters/dafny/dafny.vim @@ -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], diff --git a/test/handler/test_dafny_handler.vader b/test/handler/test_dafny_handler.vader index 472615ac..4ca288d2 100644 --- a/test/handler/test_dafny_handler.vader +++ b/test/handler/test_dafny_handler.vader @@ -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", |