emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /* */ comments in asm-mode.el


From: Stefan Monnier
Subject: Re: /* */ comments in asm-mode.el
Date: Fri, 31 Jan 2003 08:24:12 -0500

> > > 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?

By reading their docstring: it describes what it should do.

Try uncomment-region or comment-kill or auto-fill-mode or ...
with various kinds of comments.

> -    (setq comment-start-skip (concat cs "+[ \t]*"))
> +    (setq comment-start-skip (concat cs "+[ \t]*" "\\|" "/\\*+ *"))

That looks OK.  You'll probably need to set comment-end-skip as well:

(set (make-local-variable 'comment-end-skip) "[ \t]*\\(\\s>\\|\\*+/\\)")

> +    (setq comment-multi-line t)

This is one is not necessary.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]