unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Richter@debbugs.gnu.org, Jörg <Joerg.Richter@pdv-FS.de>
To: 37990@debbugs.gnu.org
Subject: bug#37990: font-lock and string literals
Date: Wed, 30 Oct 2019 12:52:51 +0000	[thread overview]
Message-ID: <44e350daefb141ddb680fefd4f581928@pdv-FS.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 387 bytes --]

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 second " which has font-lock-warning-face.
Somehow emacs thinks there is an unfinished string literal.

 - Jörg



[-- Attachment #2: Type: text/html, Size: 1121 bytes --]

             reply	other threads:[~2019-10-30 12:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-30 12:52 Richter, Jörg [this message]
2019-11-17  9:17 ` bug#37990: font-lock and string literals Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44e350daefb141ddb680fefd4f581928@pdv-FS.de \
    --to=richter@debbugs.gnu.org \
    --cc=37990@debbugs.gnu.org \
    --cc=Joerg.Richter@pdv-FS.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).