changeset 42043:0fe5fe39786c

Etags changes for Prolog and PHP.
author Francesco Potortì <pot@gnu.org>
date Sat, 15 Dec 2001 16:08:32 +0000
parents 481d38f6aec2
children a68a7a3dd259
files etc/NEWS etc/etags.1 lib-src/ChangeLog man/maintaining.texi
diffstat 4 files changed, 37 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS	Sat Dec 15 16:07:31 2001 +0000
+++ b/etc/NEWS	Sat Dec 15 16:08:32 2001 +0000
@@ -37,7 +37,7 @@
 The extra width is distributed evenly between the left and right fringe.
 For force a specific fringe width, specify the width as a negative
 integer (if both widths are negative, only the left fringe gets the
-specified width). 
+specified width).
 
 Setting the width to nil (the default), restores the default fringe
 width which is the minimum number of pixels necessary to display any
@@ -107,6 +107,13 @@
 ** On terminals whose erase-char is ^H (Backspace), Emacs
 now uses normal-erase-is-backspace-mode.
 
+** Etags changes.
+
+*** In Prolog, etags creates tags for rules in addition to predicates.
+
+*** New language PHP: tags are function, classes and defines.  If
+the --members option is specified to etags, tags are vars also.
+
 +++
 ** The command line option --no-windows has been changed to
 --no-window-system.  The old one still works, but is deprecated.
@@ -396,7 +403,7 @@
 
 *** The TCL package tcl-mode.el was replaced by tcl.el.
 This was actually done in Emacs-21.1 was not documented.
-	
+
 
 * Installation Changes in Emacs 21.1
 
--- a/etc/etags.1	Sat Dec 15 16:07:31 2001 +0000
+++ b/etc/etags.1	Sat Dec 15 16:08:32 2001 +0000
@@ -50,7 +50,7 @@
 .BR vi ( 1 )\c
 \&.  Both forms of the program understand
 the syntax of C, Objective C, C++, Java, Fortran, Ada, Cobol, Erlang,
-LaTeX, Emacs Lisp/Common Lisp, makefiles, Pascal, Perl, Postscript,
+LaTeX, Emacs Lisp/Common Lisp, makefiles, Pascal, Perl, PHP, Postscript,
 Python, Prolog, Scheme and
 most assembler\-like syntaxes.
 Both forms read the files specified on the command line, and write a tag
@@ -167,6 +167,7 @@
 Tag the DEFVAR macros in the emacs source files:
 .br
 \fI\-\-regex\='/[ \\t]*DEFVAR_[A-Z_ \\t(]+"\\([^"]+\\)"\/'\fP
+.\"" This comment is to avoid confusion to Emacs syntax highlighting
 .br
 
 Tag VHDL files (this example is a single long line, broken here for
--- a/lib-src/ChangeLog	Sat Dec 15 16:07:31 2001 +0000
+++ b/lib-src/ChangeLog	Sat Dec 15 16:08:32 2001 +0000
@@ -1,3 +1,19 @@
+2001-12-12  Francesco Potorti`  <pot@gnu.org>
+
+	* etags.c (PHP_functions): New function by Diez B. Roggisch,
+	heavily adapted by me, for parsing PHP.
+	(LOOKING_AT): New macro.
+	(Perl_functions, Python_functions, PHP_functions)
+	(Scheme_functions, Texinfo_nodes): Use it.
+	(Perl_functions): Use strneq.
+	(prolog_pred): Renamed to prolog_pr.
+	(prolog_pr): Recognise Prolog rules (thanks to Geert Kloosterman)
+	in addition to predicates.
+	[ETAGS_REGEXPS] [!HAVE_CONFIG_H] [__CYGWIN__]: Prevent
+	unmodified compile, as Cygwin's regex.h is incompatible with us
+	(thanks to Markus Hoenicka).
+	[!HAVE_CONFIG_H] [!__STDC__]: #define const as the empty string.
+
 2001-12-11  Richard M. Stallman  <rms@gnu.org>
 
 	* Makefile.in (clean): Don't delete ../etc/DOC*.
@@ -8,10 +24,10 @@
 
 2001-11-30  Andrew Innes  <andrewi@gnu.org>
 
-	* makefile.w32-in (FACE_SUPPORT): 
-	(MOUSE_SUPPORT): 
-	(FLOAT_SUPPORT): 
-	(WINNT_SUPPORT): 
+	* makefile.w32-in (FACE_SUPPORT):
+	(MOUSE_SUPPORT):
+	(FLOAT_SUPPORT):
+	(WINNT_SUPPORT):
 	(lisp): Reference .el files instead of .elc files, to simplify
 	bootstrapping.
 	($(DOC)): Change dependency to just `make-docfile'.
--- a/man/maintaining.texi	Sat Dec 15 16:07:31 2001 +0000
+++ b/man/maintaining.texi	Sat Dec 15 16:08:32 2001 +0000
@@ -344,10 +344,15 @@
 to tag global variables.
 
 @item
+In PHP code, tags are functions, classes and defines.  When using the
+@samp{--members} option, vars are tags too.
+
+@item
 In PostScript code, the tags are the functions.
 
 @item
-In Prolog code, a tag name appears at the left margin.
+In Prolog code, tags are predicates and rules at the beginning of
+line.
 
 @item
 In Python code, @code{def} or @code{class} at the beginning of a line
@@ -1226,4 +1231,3 @@
 @vindex emerge-startup-hook
   After setting up the merge, Emerge runs the hook
 @code{emerge-startup-hook} (@pxref{Hooks}).
-