all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Masatake YAMATO <jet@gyve.org>
Cc: emacs-devel@gnu.org
Subject: Re: /* */ comments in asm-mode.el
Date: Fri, 31 Jan 2003 11:45:16 +0900 (JST)	[thread overview]
Message-ID: <20030131.114516.78720099.jet@gyve.org> (raw)
In-Reply-To: <200301271745.h0RHj6M31730@rum.cs.yale.edu>

> > 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.
> 
> You'll also want to update comment-start, comment-start-skip,
> comment-end (and maybe comment-end-skip) accordingly.

I've tried. However, I don't know this is correct code or not.
How could I check the values of comment-start-skip and its friends 
are correct or not?

What I did is just copying code from cc-mode.el that supports
both comment style `/* */' and `// '.

Masatake YAMATO

Index: lisp/progmodes/asm-mode.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/asm-mode.el,v
retrieving revision 1.22
diff -u -r1.22 asm-mode.el
--- lisp/progmodes/asm-mode.el	23 Jan 2003 09:11:46 -0000	1.22
+++ lisp/progmodes/asm-mode.el	31 Jan 2003 04:03:59 -0000
@@ -139,7 +154,8 @@
     (make-local-variable 'comment-start)
     (setq comment-start (concat (char-to-string asm-comment-char) " "))
     (make-local-variable 'comment-start-skip)
-    (setq comment-start-skip (concat cs "+[ \t]*"))
+    (setq comment-start-skip (concat cs "+[ \t]*" "\\|" "/\\*+ *"))
+    (setq comment-multi-line t)
     (setq asm-inline-empty-comment-pattern (concat "^.+" cs "+ *$"))
     (setq asm-code-level-empty-comment-pattern (concat "^[\t ]+" cs cs " *$"))
     (setq asm-flush-left-empty-comment-pattern (concat "^" cs cs cs " *$"))

  reply	other threads:[~2003-01-31  2:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=20030131.114516.78720099.jet@gyve.org \
    --to=jet@gyve.org \
    --cc=emacs-devel@gnu.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.