We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07c780c commit 016727aCopy full SHA for 016727a
autoload/codefmt/mixformat.vim
@@ -68,13 +68,13 @@ function! codefmt#mixformat#GetFormatter() abort
68
" (blank line), (stack trace with 4-space indent)
69
" TODO gather additional details between error message and stack trace
70
let l:tokens = matchlist(l:line,
71
- \ printf('\v^\*\* (\(.*\)) %s:(\d+):(\d+):\s*(.*)', l:filename))
+ \ printf('\v^\*\* (\(\k+\)) [^:]+:(\d+):(\d+):\s*(.*)'))
72
if !empty(l:tokens)
73
call add(l:errors, {
74
\ 'filename': @%,
75
- \ 'lnum': l:tokens[1] + a:startline - 1,
76
- \ 'col': l:tokens[2],
77
- \ 'text': l:tokens[3]})
+ \ 'lnum': l:tokens[2] + a:startline - 1,
+ \ 'col': l:tokens[3],
+ \ 'text': printf('%s %s', l:tokens[1], l:tokens[4])})
78
endif
79
endfor
80
if empty(l:errors)
0 commit comments