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

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

I need 3 kinds of comments for Java properties


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

Hi,

someone on dope conceived the possibility to have both Java style comments as
well as Unix style `#' comments in Java properties files.  I'm writing a mode
for them, but can't get this to work -- not surprisingly, as the doc of
modify-syntax-entry says there can only be two kinds :-(

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

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)

Also modify-syntax-entry is documented as

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.

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]