# HG changeset patch # User Simon Marshall # Date 822566402 0 # Node ID 4576517667663f72426222f93153f948a98f0377 # Parent ef148b168aadfa514feab6da8f962e78d672cbd1 Tweaked command regexp. diff -r ef148b168aad -r 457651766766 lisp/textmodes/texinfo.el --- a/lisp/textmodes/texinfo.el Thu Jan 25 10:38:39 1996 +0000 +++ b/lisp/textmodes/texinfo.el Thu Jan 25 10:40:02 1996 +0000 @@ -208,21 +208,20 @@ "Imenu generic expression for TexInfo mode. See `imenu-generic-expression'.") (defvar texinfo-font-lock-keywords - (list - ;; All but the first 2 had an OVERRIDE of t. - ;; It didn't seem to be any better, and it's slower--simon. - '("^\\(@c\\|@comment\\)\\>.*" . font-lock-comment-face) ;comments - ;; Robert J. Chassell says remove this line. - ;'("\\$\\([^$]*\\)\\$" 1 font-lock-string-face t) - "@\\(@\\|[^}\t \n{]+\\)" ;commands - '("^\\(*.*\\)[\t ]*$" 1 font-lock-function-name-face t) ;menu items - '("@\\(emph\\|strong\\|b\\|i\\){\\([^}]+\\)" 2 font-lock-comment-face) - '("@\\(file\\|kbd\\|key\\){\\([^}]+\\)" 2 font-lock-string-face) - '("@\\(samp\\|code\\|var\\|math\\){\\([^}]+\\)" + '(;; All but the first 2 had an OVERRIDE of t. + ;; It didn't seem to be any better, and it's slower--simon. + ("^\\(@c\\|@comment\\)\\>.*" . font-lock-comment-face) ;comments + ;; Robert J. Chassell says remove this line. + ;("\\$\\([^$]*\\)\\$" 1 font-lock-string-face t) + ("@\\([a-zA-Z]+\\|[^ \t\n]\\)" 1 font-lock-keyword-face) ;commands + ("^\\*\\(.*\\)[\t ]*$" 1 font-lock-function-name-face t) ;menu items + ("@\\(emph\\|strong\\|b\\|i\\){\\([^}]+\\)" 2 font-lock-comment-face) + ("@\\(file\\|kbd\\|key\\){\\([^}]+\\)" 2 font-lock-string-face) + ("@\\(samp\\|code\\|var\\|math\\){\\([^}]+\\)" 2 font-lock-variable-name-face) - '("@\\(cite\\|xref\\|pxref\\){\\([^}]+\\)" 2 font-lock-reference-face) - '("@\\(end\\|item\\) *\\(.+\\)" 2 font-lock-function-name-face keep) - ) + ("@\\(cite\\|xref\\|pxref\\){\\([^}]+\\)" 2 font-lock-reference-face) + ("@\\(end\\|item\\) *\\(.+\\)" 2 font-lock-function-name-face keep) + ) "Additional expressions to highlight in TeXinfo mode.") ;;; Keybindings