From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Kost Newsgroups: gmane.emacs.bugs Subject: bug#16525: 24.3; Weird font-lock for multi-line regexp Date: Thu, 23 Jan 2014 13:59:52 +0400 Message-ID: <8738kf5887.fsf@gmail.com> References: <877g9r5ctc.fsf@gmail.com> <20zjmngkxe.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390471217 18156 80.91.229.3 (23 Jan 2014 10:00:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jan 2014 10:00:17 +0000 (UTC) Cc: 16525@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 23 11:00:24 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 1W6H5C-0001uN-Hy for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jan 2014 11:00:22 +0100 Original-Received: from localhost ([::1]:39748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6H5C-0004sB-22 for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jan 2014 05:00:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6H50-0004iP-Qb for bug-gnu-emacs@gnu.org; Thu, 23 Jan 2014 05:00:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6H4t-0001Zs-G9 for bug-gnu-emacs@gnu.org; Thu, 23 Jan 2014 05:00:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6H4t-0001Yb-Cn for bug-gnu-emacs@gnu.org; Thu, 23 Jan 2014 05:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W6H4s-00075o-L3 for bug-gnu-emacs@gnu.org; Thu, 23 Jan 2014 05:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alex Kost Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jan 2014 10:00: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.139047119827224 (code B ref 16525); Thu, 23 Jan 2014 10:00:02 +0000 Original-Received: (at 16525) by debbugs.gnu.org; 23 Jan 2014 09:59:58 +0000 Original-Received: from localhost ([127.0.0.1]:32961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W6H4n-000752-GC for submit@debbugs.gnu.org; Thu, 23 Jan 2014 04:59:57 -0500 Original-Received: from mail-lb0-f170.google.com ([209.85.217.170]:57636) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W6H4l-00074t-9J for 16525@debbugs.gnu.org; Thu, 23 Jan 2014 04:59:55 -0500 Original-Received: by mail-lb0-f170.google.com with SMTP id u14so1268832lbd.29 for <16525@debbugs.gnu.org>; Thu, 23 Jan 2014 01:59:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=058FbuAgWzXrR0K1om/fmhdz6dzr8e68HpxGm4Z4Gr0=; b=tb06C0QfG1n7FxFSuBFHcsrUzG8cUZ7eSHNAgLMdMz710JjZTTkJO08WNZKjRhGdEx lCZv79fsvJQI6gZOvuO0wsJ47SI/KDd7fIHj9/tpcs+a8tXXVxHI59l9zEcvSG+1DIIK VRilF/G3MyUHoJ6BKFmI7cbhqEcWLLikAI6Q/xiw2vSrSYN0kISUHFPbAx2OQ3GLDjm6 txyR65ESdQ7D2Y5cFkkYTFoBp1MMFBBXabfVfBpGwup7sDPkiIW2v/nTjPj5ni2CmIrA Y7Yw+cVZr8CHhLRtWRcaFM8rGwvgaydcKyT3xkmXIScaNoe6ZSg3dObnRO8a/Tschu5e bqaQ== X-Received: by 10.112.162.232 with SMTP id yd8mr4302337lbb.12.1390471194024; Thu, 23 Jan 2014 01:59:54 -0800 (PST) Original-Received: from leviafan (128-70-204-126.broadband.corbina.ru. [128.70.204.126]) by mx.google.com with ESMTPSA id h7sm11054548lbj.1.2014.01.23.01.59.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jan 2014 01:59:53 -0800 (PST) In-Reply-To: <20zjmngkxe.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 23 Jan 2014 03:30:05 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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:83912 Archived-At: 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.