aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/asm-mode.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/progmodes/asm-mode.el b/lisp/progmodes/asm-mode.el
index 7362e739ade..a825fd4eca4 100644
--- a/lisp/progmodes/asm-mode.el
+++ b/lisp/progmodes/asm-mode.el
@@ -72,6 +72,12 @@
72 (define-key asm-mode-map "\C-m" 'asm-newline) 72 (define-key asm-mode-map "\C-m" 'asm-newline)
73 ) 73 )
74 74
75(defconst asm-font-lock-keywords
76 '(("^\\(\\(\\sw\\|\\s_\\)+\\)\\>:?[ \t]*\\(\\sw+\\)?"
77 (1 font-lock-function-name-face) (3 font-lock-keyword-face nil t))
78 ("^\\s +\\(\\(\\sw\\|\\s_\\)+\\)" 1 font-lock-keyword-face))
79 "Additional expressions to highlight in Assembler mode.")
80
75(defvar asm-code-level-empty-comment-pattern nil) 81(defvar asm-code-level-empty-comment-pattern nil)
76(defvar asm-flush-left-empty-comment-pattern nil) 82(defvar asm-flush-left-empty-comment-pattern nil)
77(defvar asm-inline-empty-comment-pattern nil) 83(defvar asm-inline-empty-comment-pattern nil)
@@ -103,6 +109,8 @@ Special commands:
103 (setq mode-name "Assembler") 109 (setq mode-name "Assembler")
104 (setq major-mode 'asm-mode) 110 (setq major-mode 'asm-mode)
105 (setq local-abbrev-table asm-mode-abbrev-table) 111 (setq local-abbrev-table asm-mode-abbrev-table)
112 (make-local-variable 'font-lock-keywords)
113 (setq font-lock-keywords asm-font-lock-keywords)
106 (make-local-variable 'asm-mode-syntax-table) 114 (make-local-variable 'asm-mode-syntax-table)
107 (setq asm-mode-syntax-table (make-syntax-table)) 115 (setq asm-mode-syntax-table (make-syntax-table))
108 (set-syntax-table asm-mode-syntax-table) 116 (set-syntax-table asm-mode-syntax-table)