view runtime/tools/mve.awk @ 19469:55656a51d2af v8.2.0292

patch 8.2.0292: Vim9: CHECKNR and CHECKTYPE instructions not tested Commit: https://github.com/vim/vim/commit/09f28f49c9b5973593f8a9b445cdc2ed3da630b6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 20 23:08:34 2020 +0100 patch 8.2.0292: Vim9: CHECKNR and CHECKTYPE instructions not tested Problem: Vim9: CHECKNR and CHECKTYPE instructions not tested. Solution: Add tests.
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Feb 2020 23:15: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)
}