view runtime/tools/mve.awk @ 30215:40491de2f0a6 v9.0.0443

patch 9.0.0443: blueprint files are not recognized Commit: https://github.com/vim/vim/commit/cce82a55b8105560a2ef724999c856966337b48e Author: Gabriele Musco <gabmus@disroot.org> Date: Sun Sep 11 13:37:37 2022 +0100 patch 9.0.0443: blueprint files are not recognized Problem: Blueprint files are not recognized. Solution: Add a pattern for blueprint files. (Gabriele Musco, closes https://github.com/vim/vim/issues/11107)
author Bram Moolenaar <Bram@vim.org>
date Sun, 11 Sep 2022 14:45:05 +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)
}