GNU bug report logs - #34791
27.0.50; Raw C++ strings are not font-locked correctly

Previous Next

Packages: cc-mode, emacs;

Reported by: Ivan Andrus <darthandrus <at> gmail.com>

Date: Sat, 9 Mar 2019 00:47:02 UTC

Severity: minor

Tags: confirmed

Merged with 33973

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 34791 in the body.
You can then email your comments to 34791 AT debbugs.gnu.org in the normal way.

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#34791; Package emacs. (Sat, 09 Mar 2019 00:47:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ivan Andrus <darthandrus <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 09 Mar 2019 00:47:02 GMT) Full text and rfc822 format available.

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

From: Ivan Andrus <darthandrus <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; Raw C++ strings are not font-locked correctly
Date: Fri, 8 Mar 2019 14:20:51 -0700
Raw C++ strings used to be font-locked correctly, and now they are not.
I bisected and found bb591f139f0602af292c772f974dcc14dabb1deb to be the
first bad commit.

An example as

auto rsi = R"JSON(
		{
                 "calendarType": "GREGORIAN",
                 "timezone": 21,
                 "currentTimezoneOffset": 1
		}
               )JSON"_Json;

fails to font-lock correctly.

-Ivan

In GNU Emacs 27.0.50 (build 2, x86_64-apple-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109))
of 2019-03-08 built on iandrus-macOS
Repository revision: bb591f139f0602af292c772f974dcc14dabb1deb
System Description:  Mac OS X 10.14.3

Recent messages:
Auto-saving...done
Auto-saving...done
next-line: End of buffer [8 times]
report-emacs-bug-hook: M-x report-emacs-bug was canceled, please read *Bug Help* buffer
Auto-saving...done
Sending...
message-send: No methods specified to send by
Sending...
message-send: No methods specified to send by
Undo!

Configured using:
'configure --with-ns --with-gnutls=no
PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig'

Configured features:
RSVG NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS THREADS

Important settings:
 value of $LANG: en_US.UTF-8
 locale-coding-system: utf-8-unix

Major mode: Message

Minor modes in effect:
 mml-mode: t
 diff-auto-refine-mode: t
 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
 auto-composition-mode: t
 auto-encryption-mode: t
 auto-compression-mode: t
 line-number-mode: t
 auto-fill-function: message-do-auto-fill
 transient-mark-mode: t
 abbrev-mode: t

Load-path shadows:
None found.

Features:
(help-mode pp 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 mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils vc-git diff-mode easy-mmode 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 term/xterm xterm time-date 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 kqueue cocoa ns
multi-tty make-network-process emacs)

Memory information:
((conses 16 279002 20021)
(symbols 48 23274 1)
(miscs 40 58 403)
(strings 32 36862 2508)
(string-bytes 1 1119931)
(vectors 16 37375)
(vector-slots 8 731781 18434)
(floats 8 55 332)
(intervals 56 13800 180)
(buffers 992 15))




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.

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 319 days ago.

Previous Next


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