From: Glenn Morris <rgm@gnu.org>
To: Alex Kost <alezost@gmail.com>
Cc: 16525@debbugs.gnu.org
Subject: bug#16525: 24.3; Weird font-lock for multi-line regexp
Date: Thu, 23 Jan 2014 03:30:05 -0500 [thread overview]
Message-ID: <20zjmngkxe.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <877g9r5ctc.fsf@gmail.com> (Alex Kost's message of "Thu, 23 Jan 2014 12:20:47 +0400")
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'.
next prev parent reply other threads:[~2014-01-23 8:30 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 [this message]
2014-01-23 8:35 ` Glenn Morris
2014-01-23 9:59 ` Alex Kost
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=20zjmngkxe.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=16525@debbugs.gnu.org \
--cc=alezost@gmail.com \
/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).