1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

* progmodes/asm-mode.el (asm-font-lock-keywords): Support

labels starting with "." and directives starting with ".".
This commit is contained in:
Masatake YAMATO 2003-06-25 06:52:04 +00:00
parent 8632c4f0e6
commit c1b559329f
2 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2003-06-20 Masatake YAMATO <jet@gyve.org>
* progmodes/asm-mode.el (asm-font-lock-keywords): Support
labels starting with "." and directives starting with ".".
2003-06-22 Andreas Schwab <schwab@suse.de>
* emacs-lisp/easy-mmode.el (easy-mmode-define-navigation): Avoid

View file

@ -83,8 +83,14 @@
(defconst asm-font-lock-keywords
'(("^\\(\\(\\sw\\|\\s_\\)+\\)\\>:?[ \t]*\\(\\sw+\\(\\.\\sw+\\)*\\)?"
(1 font-lock-function-name-face) (3 font-lock-keyword-face nil t))
("^\\((\\sw+)\\)?\\s +\\(\\(\\sw\\|\\s_\\)+\\(\\.\\sw+\\)*\\)"
2 font-lock-keyword-face))
;; label started from ".".
("^\\(\\.\\(\\sw\\|\\s_\\)+\\)\\>:"
1 font-lock-function-name-face)
("^\\((\\sw+)\\)?\\s +\\(\\(\\.?\\sw\\|\\s_\\)+\\(\\.\\sw+\\)*\\)"
2 font-lock-keyword-face)
;; directive started from ".".
("^\\(\\.\\(\\sw\\|\\s_\\)+\\)\\>[^:]?"
1 font-lock-keyword-face))
"Additional expressions to highlight in Assembler mode.")
;;;###autoload