[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
/* */ comments in asm-mode.el
From: |
Masatake YAMATO |
Subject: |
/* */ comments in asm-mode.el |
Date: |
Wed, 22 Jan 2003 14:10:17 +0900 (JST) |
gas supprots /* comment */ style comment. However, asm-mode supports only
; comment
style comment. Therefore the buffer coloring done by font-lock is not
beautiful. Here I've added /* comment */ style comment support.
Regards,
Masatake YAMATO
2003-01-22 Masatake YAMATO <address@hidden>
* progmodes/asm-mode.el (asm-mode): Added syntax table
entries for /* */ comments.
Index: asm-mode.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/asm-mode.el,v
retrieving revision 1.21
diff -u -r1.21 asm-mode.el
--- asm-mode.el 29 Sep 2000 03:31:36 -0000 1.21
+++ asm-mode.el 22 Jan 2003 06:09:00 -0000
@@ -128,9 +128,13 @@
(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) " "))
- /* */ comments in asm-mode.el,
Masatake YAMATO <=