Mercurial > vim
view runtime/tools/mve.awk @ 19507:65049a682574 v8.2.0311
patch 8.2.0311: Vim9: insufficient script tests
Commit: https://github.com/vim/vim/commit/750802b55c6edda4d3bc78c41ad0a25a3450a557
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 23 18:08:33 2020 +0100
patch 8.2.0311: Vim9: insufficient script tests
Problem: Vim9: insufficient script tests.
Solution: Add tests. Free imports when re-using a script.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 23 Feb 2020 18: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) }