Dominique Pelle wrote:
> Attached patch corrects a few issues in help files (2318:c79ccf947487):
> - fixed some incorrect jump tags
> - fixed a couple of typos
>
> I also see the following broken tags which I don't know how to fix
> in runtime/doc/ft_ada.txt:
>
> |g:gnat.Pretty_Command|
> |g:gnat.Find_Command|
Looks like these need to be _Program instead of _Command.
> I used the following Perl script to find the incorrect jump tags
> (it gives a few false positive):
>
> $ cat find-broken-links.pl
> #!/usr/bin/perl -w
>
> # Find broken links in Vim help files.
> # Example:
> # find-broken-links.pl vim/runtime/doc/*txt
>
> my %used_links;
> my %defined_links;
>
> while (<>) {
> foreach (/(?<!\\)\|([#-)!+-~]+)\|/g) {
> $used_links{$_} = $ARGV unless /====/;
> }
> foreach (/(?<!\\)\*([#-)!+-~]+)\*/g) {
> $defined_links{$_} = 1 unless /====/;
> }
> }
> foreach (keys %used_links) {
> print "link [$_] used in [$used_links{$_}] but not defined anywhere\n"
> unless exists $defined_links{$_};
> }
>
> $ ./find-broken-links.pl /usr/local/share/vim/vim73a/doc/*txt
> ...
I usually do "make html". But I don't run it very often.
I'm trying out the conceal feature for help files. I already noticed
that the Ada file doesn't use spaces around |link| items. There are
probably more.
--
ARTHUR: Well, I AM king...
DENNIS: Oh king, eh, very nice. An' how'd you get that, eh? By exploitin'
the workers -- by 'angin' on to outdated imperialist dogma which
perpetuates the economic an' social differences in our society! If
there's ever going to be any progress--
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php