GNU bug report logs -
#33973
Multi-line C++ raw string literal font lock is broken
Previous Next
Reported by: Li Feng <li.feng <at> snap.com>
Date: Fri, 4 Jan 2019 05:53:01 UTC
Severity: minor
Tags: confirmed
Merged with 34791
Found in version 27.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33973 in the body.
You can then email your comments to 33973 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33973
; Package
emacs
.
(Fri, 04 Jan 2019 05:53:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Li Feng <li.feng <at> snap.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 04 Jan 2019 05:53:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Write a multi-line raw string literal in c++-mode, and font
lock doesn't show the correct syntax highlighting. Sample code:
const char* s1 = R"foo(
Hello
World
)foo";
const char* s2 = R"(
Hello
World
)";
In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin17.7.0, NS appkit-1561.60
Version 10.13.6 (Build 17G65))
of 2019-01-04 built on C02WP42JHTD6
Repository revision: fe4922cbf01fa9161ffa142fc70972098d48186f
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1561
System Description: Mac OS X 10.13.6
Recent messages:
Mark set
next-line: End of buffer [15 times]
Mark set
next-line: End of buffer [14 times]
Saving file /Users/lifeng/Desktop/test.cpp...
Wrote /Users/lifeng/Desktop/test.cpp
Mark set [6 times]
Undo!
Making completion list...
user-error: End of history; no default available [2 times]
Configured using:
'configure --with-modules'
Configured features:
RSVG GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS
MODULES THREADS JSON LCMS2 GMP
Important settings:
value of $LANG: en_AU.UTF-8
locale-coding-system: utf-8-unix
Major mode: C++//l
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
abbrev-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml
mml-sec password-cache epa derived epg epg-config gnus-util rmail
rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils thingatpt cc-mode cc-fonts
easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs cl-loaddefs cl-lib elec-pair tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process
emacs)
Memory information:
((conses 16 227619 13680)
(symbols 48 22362 1)
(strings 32 35100 1976)
(string-bytes 1 1069317)
(vectors 16 37950)
(vector-slots 8 757597 18070)
(floats 8 47 152)
(intervals 56 520 0)
(buffers 992 14))
[Message part 2 (text/html, inline)]
bug reassigned from package 'emacs' to 'emacs,cc-mode'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 04 Jan 2019 18:08:01 GMT)
Full text and
rfc822 format available.
Severity set to 'minor' from 'normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 04 Jan 2019 18:08:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#33973
; Package
emacs,cc-mode
.
(Mon, 07 Jan 2019 15:26:02 GMT)
Full text and
rfc822 format available.
Message #12 received at 33973 <at> debbugs.gnu.org (full text, mbox):
Hello, Li.
In article <mailman.6748.1546581187.1284.bug-gnu-emacs <at> gnu.org> you wrote:
> [-- text/plain, encoding 7bit, charset: UTF-8, 102 lines --]
> Write a multi-line raw string literal in c++-mode, and font
> lock doesn't show the correct syntax highlighting. Sample code:
> const char* s1 = R"foo(
> Hello
> World
> )foo";
> const char* s2 = R"(
> Hello
> World
> )";
Yes. Thank you for reporting this bug. I'm working on fixing it, and
hope to commit a patch to master sometime in the next few days.
> In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin17.7.0, NS appkit-1561.60
> Version 10.13.6 (Build 17G65))
> of 2019-01-04 built on C02WP42JHTD6
> Repository revision: fe4922cbf01fa9161ffa142fc70972098d48186f
> Repository branch: master
> Windowing system distributor 'Apple', version 10.3.1561
> System Description: Mac OS X 10.13.6
[ .... ]
--
Alan Mackenzie (Nuremberg, Germany).
Added tag(s) confirmed.
Request was from
Bhavin Gandhi <bhavin7392 <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 04 Feb 2019 14:28:01 GMT)
Full text and
rfc822 format available.
bug Marked as found in versions 27.0.50.
Request was from
Bhavin Gandhi <bhavin7392 <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 04 Feb 2019 14:28:03 GMT)
Full text and
rfc822 format available.
Forcibly Merged 33973 34791.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 18 Apr 2019 01:30:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#33973
; Package
emacs,cc-mode
.
(Wed, 01 Sep 2021 09:16:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 33973 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Alan Mackenzie <acm <at> muc.de> writes:
>> Write a multi-line raw string literal in c++-mode, and font
>> lock doesn't show the correct syntax highlighting. Sample code:
>
>> const char* s1 = R"foo(
>> Hello
>> World
>> )foo";
>
>> const char* s2 = R"(
>> Hello
>> World
>> )";
>
> Yes. Thank you for reporting this bug. I'm working on fixing it, and
> hope to commit a patch to master sometime in the next few days.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
Testing this in Emacs 28, I get:
[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
Which... I think is correct? So I guess this has been fixed in the
years since this was reported, and I'm closing this bug report. (If
there's still bugs in this area, please respond to the debbugs address
and we'll reopen.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
33973 <at> debbugs.gnu.org and Li Feng <li.feng <at> snap.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 01 Sep 2021 09:16:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 29 Sep 2021 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 318 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.