emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: I need 3 kinds of comments for Java properties


From: Daniel Pfeiffer
Subject: Re: I need 3 kinds of comments for Java properties
Date: Thu, 30 Sep 2004 22:14:45 +0200

Saluton,

Stefan <address@hidden> skribis:

> >   (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"

Genious -- thanks for the tip!

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

Dunno -- copied from C++ mode.  Maybe for Macintosh...

> > 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).

Indeed, I must have gotten something wrong.

coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer

-- 
lerne / learn / apprends / lär dig / ucz się    Esperanto:
                              http://lernu.net/




reply via email to

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