all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 16525@debbugs.gnu.org
Subject: bug#16525: 24.3; Weird font-lock for multi-line regexp
Date: Thu, 23 Jan 2014 13:59:52 +0400	[thread overview]
Message-ID: <8738kf5887.fsf@gmail.com> (raw)
In-Reply-To: <20zjmngkxe.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 23 Jan 2014 03:30:05 -0500")

Glenn Morris (2014-01-23 12:30 +0400) wrote:

> Alex Kost wrote:
>
>> When I try to use a multi-line regexp in `font-lock-keywords', I have an
>> unusual result: some lines are highlighted and some are not (lines are
>> the same).
> [...]
>> (defun test-font-lock-keywords ()
>>   '(("^<\\(foo\\)> \\(.+\\(?:
>>  .+?\\)\\)\\(\\[.*\\]\\)$"
>>      (1 'font-lock-function-name-face)
>>      (2 'font-lock-comment-face)
>>      (3 'font-lock-string-face))))
>
> It's not that simple. See info node `(elisp)Font Lock Multiline'.

Thank you, I should have searched before posting.





      parent reply	other threads:[~2014-01-23  9:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-23  8:20 bug#16525: 24.3; Weird font-lock for multi-line regexp Alex Kost
2014-01-23  8:30 ` Glenn Morris
2014-01-23  8:35   ` Glenn Morris
2014-01-23  9:59   ` Alex Kost [this message]

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

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

  git send-email \
    --in-reply-to=8738kf5887.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=16525@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.