[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: I need 3 kinds of comments for Java properties
From: |
Stefan |
Subject: |
Re: I need 3 kinds of comments for Java properties |
Date: |
Thu, 30 Sep 2004 08:47:07 -0400 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin) |
> (modify-syntax-entry ?/ ". 124b" ini-mode-unix-syntax-table)
> (modify-syntax-entry ?* ". 23" ini-mode-unix-syntax-table)
> (modify-syntax-entry ?\# "<" ini-mode-unix-syntax-table)
^^^
"< b"
> These lines would need to have a `b' and no modifier simultaneously, else one
> kind of line-end comment runs through the end of the buffer:
> (modify-syntax-entry ?\n "> b" ini-mode-unix-syntax-table)
> (modify-syntax-entry ?\r "> b" ini-mode-unix-syntax-table)
Why do you put it on \r ?
> you can set the comment sequence style to b (on the second character
> of a comment-start, or the first character of a comment-end sequence)
> but it only seems to work when `/' has the b, i.e. the opposite of how I read
> this.
It should work both ways: if you put the b on ?/ it will make the // marker
a comment-start-b (and the /* a comment-start-a), whereas if you put it on ?*
it will make // a comment-start-a and /* a comment-start-b (and */
a comment-end-b).
Stefan