view runtime/tools/mve.awk @ 32029:23e8d0371e35 v9.0.1346

patch 9.0.1346: Starlark files are not recognized Commit: https://github.com/vim/vim/commit/ca06b30073de22dc120b532e90fbee2a10ef9772 Author: Amaan Qureshi <amaanq12@gmail.com> Date: Thu Feb 23 15:38:49 2023 +0000 patch 9.0.1346: Starlark files are not recognized Problem: Starlark files are not recognized. Solution: Add patterns for Starlark files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/12049)
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Feb 2023 16:45: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)
}