Mercurial > vim
view runtime/tools/mve.awk @ 10312:a724091b7002
Added tag v8.0.0051 for changeset 931422d27b694511f7ecad842372987cb192e9d5
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 27 Oct 2016 21:15:04 +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) }