summaryrefslogtreecommitdiff
path: root/lisp/progmodes/asm-mode.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2003-01-23 09:12:03 +0000
committerJuanma Barranquero <lekktu@gmail.com>2003-01-23 09:12:03 +0000
commit18255677080f78d5a654d5eccb02a7b0fb2e5c4f (patch)
tree45c7dfdd4552ecd63e8fd920e90bb5a63ff29924 /lisp/progmodes/asm-mode.el
parent99f01c91bc65227544638a2ad436bb076cb4e00e (diff)
downloademacs-18255677080f78d5a654d5eccb02a7b0fb2e5c4f.tar.gz
(asm-mode): Added syntax table entries for /* */ comments.
Diffstat (limited to 'lisp/progmodes/asm-mode.el')
-rw-r--r--lisp/progmodes/asm-mode.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/progmodes/asm-mode.el b/lisp/progmodes/asm-mode.el
index a18c856d569..6feded31b7f 100644
--- a/lisp/progmodes/asm-mode.el
+++ b/lisp/progmodes/asm-mode.el
@@ -128,9 +128,13 @@ Special commands:
(local-set-key (vector asm-comment-char) 'asm-comment)
(modify-syntax-entry asm-comment-char
- "<" asm-mode-syntax-table)
+ "< b" asm-mode-syntax-table)
(modify-syntax-entry ?\n
- ">" asm-mode-syntax-table)
+ "> b" asm-mode-syntax-table)
+
+ (modify-syntax-entry ?/ ". 14" asm-mode-syntax-table)
+ (modify-syntax-entry ?* ". 23" asm-mode-syntax-table)
+
(let ((cs (regexp-quote (char-to-string asm-comment-char))))
(make-local-variable 'comment-start)
(setq comment-start (concat (char-to-string asm-comment-char) " "))
@@ -213,13 +217,13 @@ repeatedly until you are satisfied with the kind of comment."
(insert asm-comment-char))
;; Empty code-level comment already present?
- ;; Then start flush-left comment, on line above if this one is nonempty.
+ ;; Then start flush-left comment, on line above if this one is nonempty.
((asm-line-matches asm-code-level-empty-comment-pattern)
(asm-pop-comment-level)
(insert asm-comment-char asm-comment-char comment-start))
;; Empty comment ends line?
- ;; Then make code-level comment, on line above if this one is nonempty.
+ ;; Then make code-level comment, on line above if this one is nonempty.
((asm-line-matches asm-inline-empty-comment-pattern)
(asm-pop-comment-level)
(tab-to-tab-stop)