Mercurial > vim
view runtime/doc/maketags.awk @ 34864:3f9d9ee5cb7c v9.1.0299
patch 9.1.0299: Vim9: return type not set for a lambda assigned to script var
Commit: https://github.com/vim/vim/commit/7f5202143b2c84ec12e709272d90dd79621d14ca
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Wed Apr 10 17:18:19 2024 +0200
patch 9.1.0299: Vim9: return type not set for a lambda assigned to script var
Problem: Vim9: return type not set for a lambda assigned to script var
(Ernie Rael)
Solution: Correctly determine the return type (Yegappan Lakshmanan)
fixes: #14445
closes: #14473
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 10 Apr 2024 17:30:04 +0200 |
parents | aa539262b6a7 |
children |
line wrap: on
line source
BEGIN { FS=" "; } NR == 1 { nf=split(FILENAME,f,".") print "<HTML>"; print "<HEAD><TITLE>" f[1] "</TITLE></HEAD>"; print "<BODY BGCOLOR=\"#ffffff\">"; print "<H1>Vim Documentation: " f[1] "</H1>"; print "<A NAME=\"top\"></A>"; print "<HR>"; print "<PRE>"; } { # # protect special chars # gsub(/&/,"\\&"); gsub(/>/,"\\>"); gsub(/</,"\\<"); gsub(/"/,"\\""); gsub(/%/,"\\%"); nf=split($0,tag," "); if (counttag[tag[1]] > 0) { print "==============" > "errors.log" print "Duplicate Tag " tag[1] > "errors.log" print "==============" > "errors.log" } counttag[tag[1]]++ tagkey[t]=tag[1];tagref[t]=tag[2];tagnum[t]=NR; print $1 " " $2 " line " NR >"tags.ref" n=split($2,w,"."); printf ("|<A HREF=\"%s.html#%s\">%s</A>| %s\n",w[1],$1,$1,$2); } END { topback(); print "</PRE>\n</BODY>\n\n\n</HTML>"; } # # as main we keep index.txt (by default) # other candidate, help.txt # function topback () { printf("<A HREF=\"#top\">top</A> - "); printf("<A HREF=\"help.html\">back to help</A>\n"); }