view runtime/tools/mve.awk @ 30787:9f37bcd4d5c5 v9.0.0728

patch 9.0.0728: extend() test fails Commit: https://github.com/vim/vim/commit/a4962cd7bac8464d9f8d95d37614ecf595c5487e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 11 23:12:59 2022 +0100 patch 9.0.0728: extend() test fails Problem: extend() test fails. Solution: Item is final, not const.
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Oct 2022 00:15: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)
}