Mercurial > emacs
comparison lisp/info-look.el @ 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 | a009e1bf75be |
children | 2b92855c9d6e |
comparison
equal
deleted
inserted
replaced
59557:0d43dbf12c98 | 59558:5d4f8c85454f |
---|---|
632 (info-lookup-maybe-add-help | 632 (info-lookup-maybe-add-help |
633 :mode 'c-mode :topic 'symbol | 633 :mode 'c-mode :topic 'symbol |
634 :regexp "\\(struct \\|union \\|enum \\)?[_a-zA-Z][_a-zA-Z0-9]*" | 634 :regexp "\\(struct \\|union \\|enum \\)?[_a-zA-Z][_a-zA-Z0-9]*" |
635 :doc-spec '(("(libc)Function Index" nil | 635 :doc-spec '(("(libc)Function Index" nil |
636 "^[ \t]+-+ \\(Function\\|Macro\\): .*\\<" "\\>") | 636 "^[ \t]+-+ \\(Function\\|Macro\\): .*\\<" "\\>") |
637 ;; prefix/suffix has to match things like | |
638 ;; " -- Macro: int F_DUPFD" | |
639 ;; " -- Variable: char * tzname [2]" | |
640 ;; "`DBL_MAX'" (texinfo @table) | |
641 ;; suffix "\\>" is not used because that sends DBL_MAX to | |
642 ;; DBL_MAX_EXP ("_" is a non-word char) | |
637 ("(libc)Variable Index" nil | 643 ("(libc)Variable Index" nil |
638 "^[ \t]+-+ \\(Variable\\|Macro\\): .*\\<" "\\>") | 644 "^\\([ \t]+-+ \\(Variable\\|Macro\\): .*\\<\\|`\\)" |
645 "\\( \\|'?$\\)") | |
639 ("(libc)Type Index" nil | 646 ("(libc)Type Index" nil |
640 "^[ \t]+-+ Data Type: \\<" "\\>") | 647 "^[ \t]+-+ Data Type: \\<" "\\>") |
641 ("(termcap)Var Index" nil | 648 ("(termcap)Var Index" nil |
642 "^[ \t]*`" "'")) | 649 "^[ \t]*`" "'")) |
643 :parse-rule 'info-lookup-guess-c-symbol) | 650 :parse-rule 'info-lookup-guess-c-symbol) |