Mercurial > vim
view runtime/tools/mve.awk @ 22300:528bb8e6e877 v8.2.1699
patch 8.2.1699: build failure due to missing error message
Commit: https://github.com/vim/vim/commit/916911f598718bc76bc6b87ed703d2805fa49c53
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 16 21:41:53 2020 +0200
patch 8.2.1699: build failure due to missing error message
Problem: Build failure due to missing error message.
Solution: Add error message.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 16 Sep 2020 21:45:03 +0200 |
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) }