1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 11:50:51 -08:00

* progmodes/gdb-ui.el (gdb-assembler-font-lock-keywords): Handle

periods and underscores in a function name.
Remove the address fontification.
This commit is contained in:
Masatake YAMATO 2004-10-24 00:25:21 +00:00
parent f4733d22e6
commit 3988d9c612
2 changed files with 14 additions and 6 deletions

View file

@ -177,7 +177,7 @@ detailed description of this mode.
(setq comint-input-sender 'gdb-send)
;;
;; (re-)initialise
;; (re-)initialize
(setq gdb-current-address "main")
(setq gdb-previous-address nil)
(setq gdb-previous-frame nil)
@ -1950,13 +1950,15 @@ BUFFER nil or omitted means use the current buffer."
map))
(defvar gdb-assembler-font-lock-keywords
'(("[^\$]0x[0-9a-f]+" . font-lock-constant-face)
("^\\(0x*[0-9a-f]+\\) ?\\(<\\(\\sw+\\)\\+[0-9]+>\\)?:[ \t]+\\(\\sw+\\)"
(1 font-lock-constant-face)
(3 font-lock-function-name-face)
'(;; <__function.name+n>
("<\\(\\(\\sw\\|[_.]\\)+\\)\\(\\+[0-9]+\\)?>"
(1 font-lock-function-name-face))
;; 0xNNNNNNNN <__function.name+n>: opcode
("^0x[0-9a-f]+ \\(<\\(\\(\\sw\\|[_.]\\)+\\)\\+[0-9]+>\\)?:[ \t]+\\(\\sw+\\)"
(4 font-lock-keyword-face))
;; %register(at least i386)
("%\\sw+" . font-lock-variable-name-face)
("^\\(Dump of assembler code for function\\) \\(.+\\):"
("^\\(Dump of assembler code for function\\) \\(.+\\):"
(1 font-lock-comment-face)
(2 font-lock-function-name-face))
("^\\(End of assembler dump\\.\\)" . font-lock-comment-face))