(gdb-script-font-lock-keywords): Put `font-lock-function-name-face'

on a symbol which includes `-' like `hook-run'. Put
font-lock-variable-name-face  on a symbol starting with $.
This commit is contained in:
Masatake YAMATO 2003-07-28 06:27:09 +00:00
parent b1f1ceb8aa
commit c52093761b
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,10 @@
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-variable-name-face
on a symbol starting with $.
2003-07-27 Markus Rost <rost@math.ohio-state.edu>
* files.el (set-visited-file-name): Use truename for buffer-file-name.

View file

@ -2892,7 +2892,8 @@ class of the file (using s to separate nested class ids)."
st))
(defvar gdb-script-font-lock-keywords
'(("^define\\s-+\\(\\w+\\)" (1 font-lock-function-name-face))
'(("^define\\s-+\\(\\(\\w\\|\\s_\\)+\\)" (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