annotate runtime/tools/shtags.1 @ 29734:2d2f36e430f9 v9.0.0207

patch 9.0.0207: stacktrace not shown when debugging Commit: https://github.com/vim/vim/commit/28c162f6f1f525882a9a60f10ab4836dee7eb59f Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Aug 14 14:49:50 2022 +0100 patch 9.0.0207: stacktrace not shown when debugging Problem: Stacktrace not shown when debugging. Solution: Set msg_scroll in msg_source(). (closes https://github.com/vim/vim/issues/10917)
author Bram Moolenaar <Bram@vim.org>
date Sun, 14 Aug 2022 16:00: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).