all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Masatake YAMATO <jet@gyve.org>
Subject: /* */ comments in asm-mode.el
Date: Wed, 22 Jan 2003 14:10:17 +0900 (JST)	[thread overview]
Message-ID: <20030122.141017.30187991.jet@gyve.org> (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) " "))

             reply	other threads:[~2003-01-22  5:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-22  5:10 Masatake YAMATO [this message]
2003-01-27 17:45 ` /* */ comments in asm-mode.el Stefan Monnier
2003-01-31  2:45   ` Masatake YAMATO
2003-01-31 13:24     ` Stefan Monnier
2003-03-30  9:38       ` Masatake YAMATO

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030122.141017.30187991.jet@gyve.org \
    --to=jet@gyve.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.