changeset 59558:5d4f8c85454f

(c-mode/symbol): Add ^` to prefix, and change suffix to space, $ or '$, to correctly position point when going to @table style constants like DBL_MAX.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 15 Jan 2005 14:00:03 +0000
parents 0d43dbf12c98
children 4d60cf28a8fc
files lisp/info-look.el
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/info-look.el	Sat Jan 15 13:52:26 2005 +0000
+++ b/lisp/info-look.el	Sat Jan 15 14:00:03 2005 +0000
@@ -634,8 +634,15 @@
  :regexp "\\(struct \\|union \\|enum \\)?[_a-zA-Z][_a-zA-Z0-9]*"
  :doc-spec '(("(libc)Function Index" nil
 	      "^[ \t]+-+ \\(Function\\|Macro\\): .*\\<" "\\>")
+             ;; prefix/suffix has to match things like
+             ;;   " -- Macro: int F_DUPFD"
+             ;;   " -- Variable: char * tzname [2]"
+             ;;   "`DBL_MAX'"    (texinfo @table)
+             ;; suffix "\\>" is not used because that sends DBL_MAX to
+             ;; DBL_MAX_EXP ("_" is a non-word char)
 	     ("(libc)Variable Index" nil
-	      "^[ \t]+-+ \\(Variable\\|Macro\\): .*\\<" "\\>")
+              "^\\([ \t]+-+ \\(Variable\\|Macro\\): .*\\<\\|`\\)"
+              "\\( \\|'?$\\)")
 	     ("(libc)Type Index" nil
 	      "^[ \t]+-+ Data Type: \\<" "\\>")
 	     ("(termcap)Var Index" nil