aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/asm-mode.el
diff options
context:
space:
mode:
authorMasatake YAMATO <[email protected]>2003-06-25 06:52:04 +0000
committerMasatake YAMATO <[email protected]>2003-06-25 06:52:04 +0000
commitc1b559329fe82b2cfbbd124da7ca9ecce424eb17 (patch)
tree6f0899bb0f3df39c5fec4a004c42560c79e53993 /lisp/progmodes/asm-mode.el
parent8632c4f0e64d080948f681b65a857a40951c325f (diff)
* progmodes/asm-mode.el (asm-font-lock-keywords): Support
labels starting with "." and directives starting with ".".
Diffstat (limited to 'lisp/progmodes/asm-mode.el')
-rw-r--r--lisp/progmodes/asm-mode.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/progmodes/asm-mode.el b/lisp/progmodes/asm-mode.el
index 862a89e80b..a3134e3514 100644
--- a/lisp/progmodes/asm-mode.el
+++ b/lisp/progmodes/asm-mode.el
@@ -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