view runtime/tools/mve.awk @ 31026:7c47ea0dc080 v9.0.0848

patch 9.0.0848: help item for --log argument is not aligned nicely Commit: https://github.com/vim/vim/commit/0fd7be7f951b639312c9cb3917c7e61ba3b55a60 Author: K.Takata <kentkt@csc.jp> Date: Wed Nov 9 16:29:24 2022 +0000 patch 9.0.0848: help item for --log argument is not aligned nicely Problem: Help item for --log argument is not aligned nicely. Solution: Add a Tab. (Ken Takata, closes https://github.com/vim/vim/issues/11521)
author Bram Moolenaar <Bram@vim.org>
date Wed, 09 Nov 2022 17:30:03 +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)
}