GNU bug report logs - #49077
26.3; conf-mode for Java properties files uses incorrect comment syntax

Previous Next

Package: emacs;

Reported by: Spencer Nelson <swnelson <at> uw.edu>

Date: Thu, 17 Jun 2021 19:44:01 UTC

Severity: normal

Tags: moreinfo

Found in version 26.3

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Spencer Nelson <swnelson <at> uw.edu>
To: 49077 <at> debbugs.gnu.org
Subject: bug#49077: 26.3; conf-mode for Java properties files uses incorrect comment syntax
Date: Thu, 17 Jun 2021 10:10:19 -0700
I noticed today that conf-mode.el's derived mode, conf-javaprop-mode,
isn't configured correctly for Java properties files.

The documenting comment for conf-javaprop-mode says this:

"Conf Mode starter for Java properties files.
Comments start with `#' but are also recognized with `//' or
between `/*' and `*/'.
For details see `conf-mode'.  Example:

# Conf mode font-locks this right with \\[conf-javaprop-mode] (Java properties)
// another kind of comment
/* yet another */

But // and /* don't start comments in Java properties files. Java
properties files just have single-line comments starting with #.
Somewhat obscurely, comments can also start with !.

I'm up for submitting a patch to fix this, but it would be my first
contribution to emacs, and I'm a bit intimidated, so I want to check
whether it's reasonable to fix first.




This bug report was last modified 2 years and 274 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.