* bug#37934: makefile colors messed up by ://
@ 2019-10-26 11:45 積丹尼 Dan Jacobson
2019-10-30 11:12 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-10-26 11:45 UTC (permalink / raw)
To: 37934
$ cat makefile
x:
echo This line is the correct color.
echo This line is not. Because it contains the string file:// in it.
$ emacs -nw -Q makefile
emacs-version "26.3"
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#37934: makefile colors messed up by ://
2019-10-26 11:45 bug#37934: makefile colors messed up by :// 積丹尼 Dan Jacobson
@ 2019-10-30 11:12 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-30 11:12 UTC (permalink / raw)
To: 積丹尼 Dan Jacobson; +Cc: 37934
積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:
> $ cat makefile
> x:
> echo This line is the correct color.
> echo This line is not. Because it contains the string file:// in it.
I can confirm that this bug is still in Emacs. The problem is this regexp:
(defvar makefile-dependency-regex
;; Allow for two nested levels $(v1:$(v2:$(v3:a=b)=c)=d)
"^\\(\\(?:\\$\\(?:[({]\\(?:\\$\\(?:[({]\\(?:\\$\\(?:[^({]\\|.[^\n$#})]+?[})]\\)\\|[^\n$#)}]\\)+?[})]\\|[^({]\\)\\|[^\n$#)}]\\)+?[})]\\|[^({]\\)\\|[^\n$#:=]\\)+?\\)\\(:\\)\\(?:[ \t]*$\\|[^=\n]\\(?:[^#\n]*?;[ \t]*\\(.+\\)\\)?\\)"
"Regex used to find dependency lines in a makefile.")
Of which I can only say... "eek".
I wonder -- has anybody considered rewriting make-mode.el using
syntax-ppss? Or is the syntax just too intractable for that?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-30 11:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-26 11:45 bug#37934: makefile colors messed up by :// 積丹尼 Dan Jacobson
2019-10-30 11:12 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).