annotate runtime/tools/shtags.1 @ 32854:5fd9fe58c791 v9.0.1737

patch 9.0.1737: Calling a base class method through an extended class fails Commit: https://github.com/vim/vim/commit/b102728c204430b16a5d9e6720c882e12a687570 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sat Aug 19 11:26:42 2023 +0200 patch 9.0.1737: Calling a base class method through an extended class fails Problem: Calling a base class method through an extended class fails Solution: Create lookup table for member index in the interface to to the member class implementing the interface Create additional tests for Vim9 classes. Fix unconvered memory leaks and crashes found by the new tests. closes: #12848 closes: #12089 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>author
author Christian Brabandt <cb@256bit.org>
date Sat, 19 Aug 2023 11:45:03 +0200
parents bdda48f01a68
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 .TH shtags 1 "local Utilities"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 .SH NAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 shtags \- Create tags for shell scripts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 .SH SYNOPSIS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 .B shtags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 [\fI-mvw\fP] [\fI-t <file>\fP] [\fI-s <shell>\fP] <files>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 .SH DESCRIPTION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 \fBshtags\fP creates a \fBvi(1)\fP tags file for shell scripts - which
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 essentially turns your code into a hypertext document. \fBshtags\fP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 attempts to create tags for all function and variable definitions,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 although this is a little difficult, because in most shell languages,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 variables don't need to be explicitly defined, and as such there is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 often no distinct "variable definition". If this is the case,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 \fBshtags\fP simply creates a tag for the first instance of a variable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 which is being set in a simple way, ie: \fIset x = 5\fP.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 .SH OPTIONS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 .IP "\fB-t <file>\fP"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 Name of tags file to create. (default is 'tags')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 .IP "\fB-s <shell>\fP"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 The name of the shell used by the script(s). By default,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 \fBshtags\fP tries to work out which is the appropriate shell for each
25402
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 7
diff changeset
22 file individually by looking at the first line of each file. This won't
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 work however, if the script starts as a bourne shell script and tries
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 to be clever about starting the shell it really wants.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 .b
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 Currently supported shells are:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 .RS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 .IP \fBsh\fP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 Bourne Shell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 .IP \fBperl\fP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 Perl (versions 4 and 5)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 .IP \fBksh\fP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 Korn Shell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 .IP \fBtclsh\fP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 The TCL shell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 .IP \fBwish\fP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 The TK Windowing shell (same as tclsh)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 .RE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 .IP \fB-v\fP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 Include variable definitions (variables mentioned at the start of a line)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 .IP \fB-V\fP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 Print version information.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 .IP \fB-w\fP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 Suppress "duplicate tag" warning messages.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 .IP \fB-x\fP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 Explicitly create a new tags file. Normally new tags are merged with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 the old tags file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 .PP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 \fBshtags\fP scans the specified files for subroutines and possibly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 variable definitions, and creates a \fBvi\fP style tags file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 .SH FILES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 .IP \fBtags\fP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 A tags file contains a sorted list of tags, one tag per line. The
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 format is the same as that used by \fBvi\fP(1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 .SH AUTHOR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 Stephen Riehm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 .br
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 sr@pc-plus.de
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 .SH "SEE ALSO"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 ctags(1), etags(1), perl(1), tclsh(1), wish(1), sh(1), ksh(1).