From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#16525: 24.3; Weird font-lock for multi-line regexp Date: Thu, 23 Jan 2014 03:30:05 -0500 Message-ID: <20zjmngkxe.fsf@fencepost.gnu.org> References: <877g9r5ctc.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1390465948 22148 80.91.229.3 (23 Jan 2014 08:32:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jan 2014 08:32:28 +0000 (UTC) Cc: 16525@debbugs.gnu.org To: Alex Kost Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 23 09:32:31 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W6FiA-0002zF-EQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jan 2014 09:32:30 +0100 Original-Received: from localhost ([::1]:39525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6Fi7-0000Qx-1e for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jan 2014 03:32:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6Fgp-0007OY-NF for bug-gnu-emacs@gnu.org; Thu, 23 Jan 2014 03:31:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6Fgl-0001L1-3a for bug-gnu-emacs@gnu.org; Thu, 23 Jan 2014 03:31:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6Fgl-0001Kx-1J for bug-gnu-emacs@gnu.org; Thu, 23 Jan 2014 03:31:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W6Fgk-0004gQ-57 for bug-gnu-emacs@gnu.org; Thu, 23 Jan 2014 03:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jan 2014 08:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16525 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 16525-submit@debbugs.gnu.org id=B16525.139046581217913 (code B ref 16525); Thu, 23 Jan 2014 08:31:02 +0000 Original-Received: (at 16525) by debbugs.gnu.org; 23 Jan 2014 08:30:12 +0000 Original-Received: from localhost ([127.0.0.1]:32935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W6Ffv-0004er-Mb for submit@debbugs.gnu.org; Thu, 23 Jan 2014 03:30:11 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:39573) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W6Ffr-0004ec-EC for 16525@debbugs.gnu.org; Thu, 23 Jan 2014 03:30:08 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1W6Ffp-00022e-KF; Thu, 23 Jan 2014 03:30:05 -0500 X-Spook: corporate security Lexis-Nexis Albanian lock picking New X-Ran: ?>T (Alex Kost's message of "Thu, 23 Jan 2014 12:20:47 +0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:83908 Archived-At: 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'.