aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorlu4nx2016-01-30 14:56:43 +0200
committerEli Zaretskii2016-01-30 14:56:43 +0200
commit40a85fba441aa69d47ef9efd645df3411e43ae21 (patch)
tree036fafebce750bb4083bbef7edf3ac0910c903c3 /doc
parent25b79d7bc71079cd6ebb2700623e7e3b76b03287 (diff)
downloademacs-40a85fba441aa69d47ef9efd645df3411e43ae21.tar.gz
emacs-40a85fba441aa69d47ef9efd645df3411e43ae21.zip
Support Go language in 'etags'
* lib-src/etags.c <Ruby_help>: Fix documentation of Ruby tags. <Go_help>: New help. <Go_suffixes>: New variable. (Go_functions): New function. <lang_names>: Add entry for Go. (Bug#22370) * doc/emacs/maintaining.texi (Tag Syntax): Document Go support. * doc/man/etags.1: Mention Go support. * etc/NEWS: Mention Go support. * test/etags/go-src/test.go: * test/etags/go-src/test1.go: New test files. * test/etags/Makefile (GOSRC): New variable. (SRCS): Add $(GOSRC). * test/etags/ETAGS.good_1: * test/etags/ETAGS.good_2: * test/etags/ETAGS.good_3: * test/etags/ETAGS.good_4: * test/etags/ETAGS.good_5: * test/etags/ETAGS.good_6: * test/etags/CTAGS.good: Adapt to addition of Go tests.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/maintaining.texi3
-rw-r--r--doc/man/etags.12
2 files changed, 4 insertions, 1 deletions
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi
index 7039de63e53..3f1a9c07e91 100644
--- a/doc/emacs/maintaining.texi
+++ b/doc/emacs/maintaining.texi
@@ -2218,6 +2218,9 @@ in the file.
2218In Fortran code, functions, subroutines and block data are tags. 2218In Fortran code, functions, subroutines and block data are tags.
2219 2219
2220@item 2220@item
2221In Go code, packages, functions, and types are tags.
2222
2223@item
2221In HTML input files, the tags are the @code{title} and the @code{h1}, 2224In HTML input files, the tags are the @code{title} and the @code{h1},
2222@code{h2}, @code{h3} headers. Also, tags are @code{name=} in anchors 2225@code{h2}, @code{h3} headers. Also, tags are @code{name=} in anchors
2223and all occurrences of @code{id=}. 2226and all occurrences of @code{id=}.
diff --git a/doc/man/etags.1 b/doc/man/etags.1
index d34063f23cd..fc247f758a3 100644
--- a/doc/man/etags.1
+++ b/doc/man/etags.1
@@ -50,7 +50,7 @@ format understood by
50.BR vi ( 1 )\c 50.BR vi ( 1 )\c
51\&. Both forms of the program understand 51\&. Both forms of the program understand
52the syntax of C, Objective C, C++, Java, Fortran, Ada, Cobol, Erlang, 52the syntax of C, Objective C, C++, Java, Fortran, Ada, Cobol, Erlang,
53Forth, HTML, LaTeX, Emacs Lisp/Common Lisp, Lua, Makefile, Pascal, Perl, 53Forth, Go, HTML, LaTeX, Emacs Lisp/Common Lisp, Lua, Makefile, Pascal, Perl,
54Ruby, PHP, PostScript, Python, Prolog, Scheme and 54Ruby, PHP, PostScript, Python, Prolog, Scheme and
55most assembler\-like syntaxes. 55most assembler\-like syntaxes.
56Both forms read the files specified on the command line, and write a tag 56Both forms read the files specified on the command line, and write a tag