Mercurial > vim
view runtime/tools/mve.awk @ 30988:1a73da724a23 v9.0.0829
patch 9.0.0829: wrong counts in macro comment
Commit: https://github.com/vim/vim/commit/3d19c81a116e7923d8295e7d2795fb3edb45acb1
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri Nov 4 21:58:36 2022 +0000
patch 9.0.0829: wrong counts in macro comment
Problem: Wrong counts in macro comment.
Solution: Update the value counts. (closes https://github.com/vim/vim/issues/11480)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 04 Nov 2022 23:00:05 +0100 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
#!/usr/bin/nawk -f # # Change "nawk" to "awk" or "gawk" if you get errors. # # Make Vim Errors # Processes errors from cc for use by Vim's quick fix tools # specifically it translates the ---------^ notation to a # column number # BEGIN { FS="[:,]" } /^cfe/ { file=$3 msg=$5 split($4,s," ") line=s[2] } # You may have to substitute a tab character for the \t here: /^[\t-]*\^/ { p=match($0, ".*\\^" ) col=RLENGTH-2 printf("%s, line %d, col %d : %s\n", file,line,col,msg) }