GNU bug report logs - #17980
perl-mode here document colors

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Wed, 9 Jul 2014 23:36:02 UTC

Severity: minor

Tags: confirmed

Merged with 38658

To reply to this bug, email your comments to 17980 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#17980; Package emacs. (Wed, 09 Jul 2014 23:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 09 Jul 2014 23:36:03 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <bug-gnu-emacs <at> gnu.org>
Subject: perl-mode here document colors
Date: Thu, 10 Jul 2014 07:35:17 +0800
Shouldn't the body of

print <<\EOF;
</body>
</html>
EOF

be colored differently in perl mode?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17980; Package emacs. (Fri, 18 Jul 2014 23:37:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 17980 <at> debbugs.gnu.org
Subject: Re: bug#17980: perl-mode here document colors
Date: Fri, 18 Jul 2014 19:35:53 -0400
> Shouldn't the body of
> print <<\EOF;
> </body>
> </html>
> EOF

> be colored differently in perl mode?

Not sure what you mean.  For me, the "</body></html>EOF" part is colored
with font-lock-comment-face.  Do you mean that it should use another
face by virtue of being a here document (like sh-heredoc)?  Or is your
not colored with font-lock-comment-face?  Or do you want HTML here-docs
to be colored differently?


        Stefan





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17980; Package emacs. (Sun, 20 Jul 2014 11:13:02 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 17980 <at> debbugs.gnu.org
Subject: Re: bug#17980: perl-mode here document colors
Date: Sun, 20 Jul 2014 19:12:09 +0800
All I know is for me doing
# set file.pl
# su - nobody -c 'HOME=/tmp emacs '$@ & #for virgin environment
print "jjjjjj"; BLACK, PURPLE
print <<\EOF;   BLACK
</body>         BLACK, SHOULD BE PURPLE
</html>         BLACK, SHOULD BE PURPLE
EOF             BLACK

Now instead checking shell-script-mode, things look good except the
final EOF should be the same color as the initial EOF, not instead the
color of the body!

I am using Debian emacs24:
  Installed: 24.3+1-4+b1 these days.




Forcibly Merged 17980 38658. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 07 Aug 2020 10:13:02 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 310 days ago.

Previous Next


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