aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Marshall1996-01-25 10:40:02 +0000
committerSimon Marshall1996-01-25 10:40:02 +0000
commitdd7366bf5d5aff68832a5d01399db070f089114d (patch)
tree0494933d890fc4e8bbccdd29e837fe1e5a226355
parenta2b8e66b8e36df71ab13f50d644bb53a819da8f7 (diff)
downloademacs-dd7366bf5d5aff68832a5d01399db070f089114d.tar.gz
emacs-dd7366bf5d5aff68832a5d01399db070f089114d.zip
Tweaked command regexp.
-rw-r--r--lisp/textmodes/texinfo.el27
1 files changed, 13 insertions, 14 deletions
diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el
index 7298c8e6a3e..e0e8d6395c3 100644
--- a/lisp/textmodes/texinfo.el
+++ b/lisp/textmodes/texinfo.el
@@ -208,21 +208,20 @@ chapter."
208 "Imenu generic expression for TexInfo mode. See `imenu-generic-expression'.") 208 "Imenu generic expression for TexInfo mode. See `imenu-generic-expression'.")
209 209
210(defvar texinfo-font-lock-keywords 210(defvar texinfo-font-lock-keywords
211 (list 211 '(;; All but the first 2 had an OVERRIDE of t.
212 ;; All but the first 2 had an OVERRIDE of t. 212 ;; It didn't seem to be any better, and it's slower--simon.
213 ;; It didn't seem to be any better, and it's slower--simon. 213 ("^\\(@c\\|@comment\\)\\>.*" . font-lock-comment-face) ;comments
214 '("^\\(@c\\|@comment\\)\\>.*" . font-lock-comment-face) ;comments 214 ;; Robert J. Chassell <bob@gnu.ai.mit.edu> says remove this line.
215 ;; Robert J. Chassell <bob@gnu.ai.mit.edu> says remove this line. 215 ;("\\$\\([^$]*\\)\\$" 1 font-lock-string-face t)
216 ;'("\\$\\([^$]*\\)\\$" 1 font-lock-string-face t) 216 ("@\\([a-zA-Z]+\\|[^ \t\n]\\)" 1 font-lock-keyword-face) ;commands
217 "@\\(@\\|[^}\t \n{]+\\)" ;commands 217 ("^\\*\\(.*\\)[\t ]*$" 1 font-lock-function-name-face t) ;menu items
218 '("^\\(*.*\\)[\t ]*$" 1 font-lock-function-name-face t) ;menu items 218 ("@\\(emph\\|strong\\|b\\|i\\){\\([^}]+\\)" 2 font-lock-comment-face)
219 '("@\\(emph\\|strong\\|b\\|i\\){\\([^}]+\\)" 2 font-lock-comment-face) 219 ("@\\(file\\|kbd\\|key\\){\\([^}]+\\)" 2 font-lock-string-face)
220 '("@\\(file\\|kbd\\|key\\){\\([^}]+\\)" 2 font-lock-string-face) 220 ("@\\(samp\\|code\\|var\\|math\\){\\([^}]+\\)"
221 '("@\\(samp\\|code\\|var\\|math\\){\\([^}]+\\)"
222 2 font-lock-variable-name-face) 221 2 font-lock-variable-name-face)
223 '("@\\(cite\\|xref\\|pxref\\){\\([^}]+\\)" 2 font-lock-reference-face) 222 ("@\\(cite\\|xref\\|pxref\\){\\([^}]+\\)" 2 font-lock-reference-face)
224 '("@\\(end\\|item\\) *\\(.+\\)" 2 font-lock-function-name-face keep) 223 ("@\\(end\\|item\\) *\\(.+\\)" 2 font-lock-function-name-face keep)
225 ) 224 )
226 "Additional expressions to highlight in TeXinfo mode.") 225 "Additional expressions to highlight in TeXinfo mode.")
227 226
228;;; Keybindings 227;;; Keybindings