unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* /* */ comments in asm-mode.el
@ 2003-01-22  5:10 Masatake YAMATO
  2003-01-27 17:45 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Masatake YAMATO @ 2003-01-22  5:10 UTC (permalink / raw)


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  <jet@gyve.org>

	* 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) " "))

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-30  9:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-22  5:10 /* */ comments in asm-mode.el Masatake YAMATO
2003-01-27 17:45 ` Stefan Monnier
2003-01-31  2:45   ` Masatake YAMATO
2003-01-31 13:24     ` Stefan Monnier
2003-03-30  9:38       ` Masatake YAMATO

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).