all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* font lock in gdb-script mode
@ 2003-07-23 13:18 Masatake YAMATO
  2003-07-23 13:32 ` Stefan Monnier
  2003-07-23 13:47 ` Andreas Schwab
  0 siblings, 2 replies; 4+ messages in thread
From: Masatake YAMATO @ 2003-07-23 13:18 UTC (permalink / raw)


I've modified font lock related code in gdb-script-mode a bit.
Please, review my small patch.

2003-07-23  Masatake YAMATO  <jet@gyve.org>

	* progmodes/gud.el (gdb-script-font-lock-keywords): 
	Put `font-lock-function-name-face' on a symbol which includes
	`-' like `hook-run'. Put `font-lock-function-name-face' on
	a symbol after `document'. Put font-lock-variable-name-face 
	on a symbol starting with $.


Index: lisp/progmodes/gud.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/gud.el,v
retrieving revision 1.3
diff -u -r1.3 gud.el
--- lisp/progmodes/gud.el	18 Jun 2003 23:26:28 -0000	1.3
+++ lisp/progmodes/gud.el	23 Jul 2003 13:10:51 -0000
@@ -2892,7 +2892,9 @@
     st))
 
 (defvar gdb-script-font-lock-keywords
-  '(("^define\\s-+\\(\\w+\\)" (1 font-lock-function-name-face))
+  '(("^define\\s-+\\(\\(\\w\\|-\\)+\\)" (1 font-lock-function-name-face))
+    ("^document\\s-+\\(\\(\\w\\|-\\)+\\)" (1 font-lock-function-name-face))
+    ("$\\(\\w+\\)" (1 font-lock-variable-name-face))
     ("^\\s-*\\([a-z]+\\)" (1 font-lock-keyword-face))))
 
 (defvar gdb-script-font-lock-syntactic-keywords

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-07-24 19:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-23 13:18 font lock in gdb-script mode Masatake YAMATO
2003-07-23 13:32 ` Stefan Monnier
2003-07-24 19:59   ` Richard Stallman
2003-07-23 13:47 ` Andreas Schwab

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.