From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Richter@debbugs.gnu.org, =?UTF-8?Q?J=C3=B6rg?= Newsgroups: gmane.emacs.bugs Subject: bug#37990: font-lock and string literals Date: Wed, 30 Oct 2019 12:52:51 +0000 Message-ID: <44e350daefb141ddb680fefd4f581928@pdv-FS.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_44e350daefb141ddb680fefd4f581928pdvFSde_" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="211155"; mail-complaints-to="usenet@blaine.gmane.org" To: 37990@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 30 13:53:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPnTT-000skP-3i for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 13:53:19 +0100 Original-Received: from localhost ([::1]:40164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPnTR-0004UK-HM for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 08:53:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40629) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPnTD-0004UA-Ba for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 08:53:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPnTC-0004rm-BA for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 08:53:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40636) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPnTC-0004rD-8Q for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 08:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iPnTC-0000FG-59 for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 08:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richter@debbugs.gnu.org, =?UTF-8?Q?J=C3=B6rg?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Oct 2019 12:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37990 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.1572439978931 (code B ref -1); Wed, 30 Oct 2019 12:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Oct 2019 12:52:58 +0000 Original-Received: from localhost ([127.0.0.1]:49457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPnT8-0000Ex-4i for submit@debbugs.gnu.org; Wed, 30 Oct 2019 08:52:58 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPnT7-0000Eq-3p for submit@debbugs.gnu.org; Wed, 30 Oct 2019 08:52:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40571) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPnT5-0004To-V0 for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 08:52:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPnT4-0004hz-Ts for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 08:52:55 -0400 Original-Received: from mail.pdv-fs.de ([213.208.220.5]:58594) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iPnT4-0004fV-N3 for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 08:52:54 -0400 Original-Received: from mail.pdv-fs.de (unknown [192.168.180.95]) by mail.pdv-fs.de (Postfix) with ESMTPS for ; Wed, 30 Oct 2019 13:52:51 +0100 (CET) Original-Received: from EXCHDB1.pdv-fs.de (192.168.180.94) by EXCHDB2.pdv-fs.de (192.168.180.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 30 Oct 2019 13:52:51 +0100 Original-Received: from EXCHDB1.pdv-fs.de ([fe80::6c4a:8b1b:60f4:4437]) by EXCHDB1.pdv-fs.de ([fe80::6c4a:8b1b:60f4:4437%15]) with mapi id 15.01.1713.009; Wed, 30 Oct 2019 13:52:51 +0100 Thread-Topic: font-lock and string literals Thread-Index: AdWPIIf1knRA/etNS2+7CFVKP015TQ== Accept-Language: de-DE, en-US Content-Language: de-DE x-originating-ip: [192.168.180.93] X-TMASE-Version: DDEI-3.5-8.5.1020-25010.007 X-TMASE-Result: 10--6.854300-10.000000 X-TMASE-MatchedRID: /Tnn5EXWEDwBnRWeplXmQW6HurDH4PpPHF25lcCugp9XiLrvhpKLfCjs QUYjDATvIndhT2qPapQKGor2wLvegA0QFx1SMBmDwbRQ2Bpmlioay+BQxgCfhdJ6Tp2zXEtus2n eI/5I7MJ9t8JTtJvpTgNRYB0OBXEYTl2IJryV1SEkO5bN+/P8x/wxVou9KI15Rf+V8wb93nLgn8 HV6/VM7ecuA3RsQChwbDEaE7G9A2DfX2sZfyOJoZ4CIKY/Hg3AaZGo0EeYG94JrPsDvSXvNvoLR 4+zsDTtTpw8o8ZOgpkLFNR0WVnFGlh7M2PP1nPs5xE9l756DwuagH1e2Kvr/FrkwCA49rxYV//F 6FHWPj52E51VyPVhPwayy2XahnOGkZnzzbogN7o= X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 X-TMASE-INERTIA: 1-0;;J4gzHMCxkPyYUJl0x8cA1w==;; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170407 Archived-At: --_000_44e350daefb141ddb680fefd4f581928pdvFSde_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I'm using emacs 26.3. Call: (font-lock-add-keywords 'c-mode '( ("\\[^;]*;" 0 'font-lock-function-name-face t))) Then visit a .c file with this line: XXX("aaa"); The line is rendered with font-lock-function-name-face, except the second "= which has font-lock-warning-face. Somehow emacs thinks there is an unfinished string literal. - J=F6rg --_000_44e350daefb141ddb680fefd4f581928pdvFSde_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I'm using emacs 26.3.
 
Call:
 
(font-lock-add-keywords
'c-mode
'(
   ("\\<XXX\\>[^;]*;" 0 'font-lock-function-= name-face t)))
 
Then visit a .c file with this line:
 
  XXX("aaa");
 
The line is rendered with font-lock-function-name-face, except the sec= ond " which has font-lock-warning-face.
Somehow emacs thinks there is an unfinished string literal.
 
- J=F6rg
 
 
--_000_44e350daefb141ddb680fefd4f581928pdvFSde_--