summaryrefslogtreecommitdiff
path: root/lisp/progmodes/asm-mode.el
diff options
context:
space:
mode:
authorMasatake YAMATO <jet@gyve.org>2006-04-26 07:03:20 +0000
committerMasatake YAMATO <jet@gyve.org>2006-04-26 07:03:20 +0000
commit0db097a55749dc040ef5d8daec7d7806cbb4281c (patch)
tree04ff363eaff282ca1a6625c0c990b229570304b5 /lisp/progmodes/asm-mode.el
parent08a1dbe66260be7c7e95ec9752243167ac168cfb (diff)
downloademacs-0db097a55749dc040ef5d8daec7d7806cbb4281c.tar.gz
(asm-mode, asm-mode-syntax-table): Add
support for "//" style comments. Remove `b' flag from ?* in `asm-mode-syntax-table'.
Diffstat (limited to 'lisp/progmodes/asm-mode.el')
-rw-r--r--lisp/progmodes/asm-mode.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/progmodes/asm-mode.el b/lisp/progmodes/asm-mode.el
index b79237adba7..ebb532a3525 100644
--- a/lisp/progmodes/asm-mode.el
+++ b/lisp/progmodes/asm-mode.el
@@ -62,9 +62,9 @@
(defvar asm-mode-syntax-table
(let ((st (make-syntax-table)))
- (modify-syntax-entry ?\n ">" st)
- (modify-syntax-entry ?/ ". 14b" st)
- (modify-syntax-entry ?* ". 23b" st)
+ (modify-syntax-entry ?\n "> b" st)
+ (modify-syntax-entry ?/ ". 124b" st)
+ (modify-syntax-entry ?* ". 23" st)
st)
"Syntax table used while in Asm mode.")
@@ -136,14 +136,14 @@ Special commands:
(use-local-map (nconc (make-sparse-keymap) asm-mode-map))
(local-set-key (vector asm-comment-char) 'asm-comment)
(set-syntax-table (make-syntax-table asm-mode-syntax-table))
- (modify-syntax-entry asm-comment-char "<")
+ (modify-syntax-entry asm-comment-char "< b")
(make-local-variable 'comment-start)
(setq comment-start (string asm-comment-char))
(make-local-variable 'comment-add)
(setq comment-add 1)
(make-local-variable 'comment-start-skip)
- (setq comment-start-skip "\\(?:\\s<+\\|/\\*+\\)[ \t]*")
+ (setq comment-start-skip "\\(?:\\s<+\\|/[/*]+\\)[ \t]*")
(make-local-variable 'comment-end-skip)
(setq comment-end-skip "[ \t]*\\(\\s>\\|\\*+/\\)")
(make-local-variable 'comment-end)