diff options
| author | Masatake YAMATO | 2003-07-28 06:27:09 +0000 |
|---|---|---|
| committer | Masatake YAMATO | 2003-07-28 06:27:09 +0000 |
| commit | c52093761b6c2bb344c4d3424eb9c3e1f5f4aa6e (patch) | |
| tree | 39b6a26ceb7ace08d8719cf6b44e943f0fe57bed | |
| parent | b1f1ceb8aa88b3bd07fc6d1bba8915873ef05421 (diff) | |
| download | emacs-c52093761b6c2bb344c4d3424eb9c3e1f5f4aa6e.tar.gz emacs-c52093761b6c2bb344c4d3424eb9c3e1f5f4aa6e.zip | |
(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 $.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/progmodes/gud.el | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fd525e3bcb0..b47e08de7d1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2003-07-23 Masatake YAMATO <jet@gyve.org> | ||
| 2 | |||
| 3 | * progmodes/gud.el (gdb-script-font-lock-keywords): | ||
| 4 | Put `font-lock-function-name-face' on a symbol which includes | ||
| 5 | `-' like `hook-run'. Put font-lock-variable-name-face | ||
| 6 | on a symbol starting with $. | ||
| 7 | |||
| 1 | 2003-07-27 Markus Rost <rost@math.ohio-state.edu> | 8 | 2003-07-27 Markus Rost <rost@math.ohio-state.edu> |
| 2 | 9 | ||
| 3 | * files.el (set-visited-file-name): Use truename for buffer-file-name. | 10 | * files.el (set-visited-file-name): Use truename for buffer-file-name. |
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 695f884a6a7..349c78ce3d2 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -2892,7 +2892,8 @@ class of the file (using s to separate nested class ids)." | |||
| 2892 | st)) | 2892 | st)) |
| 2893 | 2893 | ||
| 2894 | (defvar gdb-script-font-lock-keywords | 2894 | (defvar gdb-script-font-lock-keywords |
| 2895 | '(("^define\\s-+\\(\\w+\\)" (1 font-lock-function-name-face)) | 2895 | '(("^define\\s-+\\(\\(\\w\\|\\s_\\)+\\)" (1 font-lock-function-name-face)) |
| 2896 | ("\\$\\(\\w+\\)" (1 font-lock-variable-name-face)) | ||
| 2896 | ("^\\s-*\\([a-z]+\\)" (1 font-lock-keyword-face)))) | 2897 | ("^\\s-*\\([a-z]+\\)" (1 font-lock-keyword-face)))) |
| 2897 | 2898 | ||
| 2898 | (defvar gdb-script-font-lock-syntactic-keywords | 2899 | (defvar gdb-script-font-lock-syntactic-keywords |