GNU bug report logs - #79604
GNUmakefile mode highlight quirks inside define-endef

Previous Next

Package: emacs;

Reported by: mikpom <mikpom <at> mikpom.ru>

Date: Thu, 9 Oct 2025 09:33:01 UTC

Severity: normal

To reply to this bug, email your comments to 79604 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79604; Package emacs. (Thu, 09 Oct 2025 09:33:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to mikpom <mikpom <at> mikpom.ru>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 09 Oct 2025 09:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: mikpom <mikpom <at> mikpom.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: GNUmakefile mode highlight quirks inside define-endef
Date: Thu, 09 Oct 2025 16:32:35 +0700
Greetings!

Got this disturbing quirks in Makefiles when colon occurs within define
directive. Simple Makefile to reproduce follows

a : 
	$(RECIPE) > a

define RECIPE=
echo Hello : world
endef


Here `echo Hello` is highlighted as a Makefile target. It is
understandable as well as difficulties of dealing with multiline
statements using regexps. Are there any possible workarounds/fixes ?

Kind regards,
-Mikhail




This bug report was last modified 27 days ago.

Previous Next


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