view runtime/tools/mve.awk @ 15238:85705008bb7a

Ignore output files from indent tests. commit https://github.com/vim/vim/commit/c33181c44ccb86637e011f35cc0397a2d76e23ae Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 23 15:43:28 2018 +0100 Ignore output files from indent tests.
author Bram Moolenaar <Bram@vim.org>
date Sun, 23 Dec 2018 15:45:05 +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)
}