diff options
| author | Richard M. Stallman | 1999-09-02 04:48:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-09-02 04:48:09 +0000 |
| commit | 6f9a5d90c62f52a55861578bbd851e9a4fc2a146 (patch) | |
| tree | decd33b7fd9f8eaa5ceea6ade3d10823e7a5b97f | |
| parent | 74d9353381c42b97598c4f047d35111cc88f269e (diff) | |
| download | emacs-6f9a5d90c62f52a55861578bbd851e9a4fc2a146.tar.gz emacs-6f9a5d90c62f52a55861578bbd851e9a4fc2a146.zip | |
(asm-mode): Set comment-start properly from asm-comment-char.
(asm-font-lock-keywords): Recognize instruction width suffixes.
| -rw-r--r-- | lisp/progmodes/asm-mode.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/asm-mode.el b/lisp/progmodes/asm-mode.el index 7a2d74343fa..490b34f4b55 100644 --- a/lisp/progmodes/asm-mode.el +++ b/lisp/progmodes/asm-mode.el | |||
| @@ -80,9 +80,9 @@ | |||
| 80 | ) | 80 | ) |
| 81 | 81 | ||
| 82 | (defconst asm-font-lock-keywords | 82 | (defconst asm-font-lock-keywords |
| 83 | '(("^\\(\\(\\sw\\|\\s_\\)+\\)\\>:?[ \t]*\\(\\sw+\\)?" | 83 | '(("^\\(\\(\\sw\\|\\s_\\)+\\)\\>:?[ \t]*\\(\\sw+\\(\\.[lLwWbBsS]\\)?\\)?" |
| 84 | (1 font-lock-function-name-face) (3 font-lock-keyword-face nil t)) | 84 | (1 font-lock-function-name-face) (3 font-lock-keyword-face nil t)) |
| 85 | ("^\\s +\\(\\(\\sw\\|\\s_\\)+\\)" 1 font-lock-keyword-face)) | 85 | ("^\\s +\\(\\(\\sw\\|\\s_\\)+\\(\\.[lLwWbBsS]\\)?\\)" 1 font-lock-keyword-face)) |
| 86 | "Additional expressions to highlight in Assembler mode.") | 86 | "Additional expressions to highlight in Assembler mode.") |
| 87 | 87 | ||
| 88 | (defvar asm-code-level-empty-comment-pattern nil) | 88 | (defvar asm-code-level-empty-comment-pattern nil) |
| @@ -133,7 +133,7 @@ Special commands: | |||
| 133 | ">" asm-mode-syntax-table) | 133 | ">" asm-mode-syntax-table) |
| 134 | (let ((cs (regexp-quote (char-to-string asm-comment-char)))) | 134 | (let ((cs (regexp-quote (char-to-string asm-comment-char)))) |
| 135 | (make-local-variable 'comment-start) | 135 | (make-local-variable 'comment-start) |
| 136 | (setq comment-start (concat cs " ")) | 136 | (setq comment-start (concat (char-to-string asm-comment-char) " ")) |
| 137 | (make-local-variable 'comment-start-skip) | 137 | (make-local-variable 'comment-start-skip) |
| 138 | (setq comment-start-skip (concat cs "+[ \t]*")) | 138 | (setq comment-start-skip (concat cs "+[ \t]*")) |
| 139 | (setq asm-inline-empty-comment-pattern (concat "^.+" cs "+ *$")) | 139 | (setq asm-inline-empty-comment-pattern (concat "^.+" cs "+ *$")) |