From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: vividsnow Newsgroups: gmane.emacs.bugs Subject: bug#27254: patch Date: Sat, 15 Jul 2017 02:37:09 +0300 Message-ID: <6fcc677d-f6ca-15ec-2789-9448a7ce04bf@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------55D3814835E253524F10B49F" X-Trace: blaine.gmane.org 1500075559 10674 195.159.176.226 (14 Jul 2017 23:39:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Jul 2017 23:39:19 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: 27254@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 15 01:39:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWAAx-0002Mt-KB for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jul 2017 01:39:11 +0200 Original-Received: from localhost ([::1]:40192 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWAB3-0000f0-0x for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jul 2017 19:39:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWAAr-0000a2-N7 for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 19:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWAAo-0003V5-K4 for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 19:39:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36712) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWAAo-0003V1-GX for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 19:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dWAAo-0003qN-58 for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 19:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: vividsnow Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Jul 2017 23:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27254 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27254-submit@debbugs.gnu.org id=B27254.150007551214726 (code B ref 27254); Fri, 14 Jul 2017 23:39:02 +0000 Original-Received: (at 27254) by debbugs.gnu.org; 14 Jul 2017 23:38:32 +0000 Original-Received: from localhost ([127.0.0.1]:39389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWAAJ-0003pR-PH for submit@debbugs.gnu.org; Fri, 14 Jul 2017 19:38:31 -0400 Original-Received: from mail-lf0-f52.google.com ([209.85.215.52]:36441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWA97-0003nK-NO for 27254@debbugs.gnu.org; Fri, 14 Jul 2017 19:37:18 -0400 Original-Received: by mail-lf0-f52.google.com with SMTP id h22so61030166lfk.3 for <27254@debbugs.gnu.org>; Fri, 14 Jul 2017 16:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=1jgjApCqe3F26dC3K2UtffPS34CxFh3hJxMg1ZUJ91k=; b=mInnSbD+pNkp6/8BzuO89GlQJqQBxJ6RasHCd89if+auRtKJcp8P7ms10cXSwe5kjt SsmHz3lzN4Fl98/H/l5d6KkJSG2LipFJVTc6oYl4pGi5f0/yr/wTtfQRttKYG9MFG4zj 26M3/ISZTazK9xSahV9r/W7mbL+IHJfQwlgsYgRBH1FT1j3PBgP8l99Ra2jQZ1id7BDW Vp3ws0zRgTT4t21pXQ8TsIKbKiXKbxnmKa6NAWuAeN0S5+waojSM7KohV0oOfsq+UiJv kEweyMpRq5Wz79cwQhlx1+ZB8pcmw4uc74qibrqWW+NpHcCcOCL1z4fbc6n6czJs3e7u nFDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=1jgjApCqe3F26dC3K2UtffPS34CxFh3hJxMg1ZUJ91k=; b=gWIDajlo64ZtM+11pljDI9tbSkpLf9ORux0JKb6aPGi2bXyvr9cNyZmk3Q77nYPozG DvmLK8kIyrkgCATk/hBAL4CWicAbmvzUfN8unCz1zoR6c/SeYzPW/0pz3yFjto+bODVJ MURFMzO9FcbZ4ZZJfjzSjT9hcZja1iPJgDgD/6XNFAXtrqqHLHKtOyYwcLKF15U/Y6u7 SkeET0mSBOI6JZGF1/wT3ymI2S6da4v32QJGNkcxB9upPryWxpGY4M3En+Gj+RBGln3f Z6ntYbX5IjUDRq6eWeMqfIiKN10aCYg/TIm7o/Bll45noE0ipt3ZFBeIIvHrXgaKWChJ ouHw== X-Gm-Message-State: AIVw110lf2y+M+WLB8UgGRautWMlfE35kTERKKt4ukGCT7YQpOwORwi+ 9M5jj84TVPFE5J7NJuo= X-Received: by 10.46.5.10 with SMTP id 10mr1703026ljf.3.1500075431365; Fri, 14 Jul 2017 16:37:11 -0700 (PDT) Original-Received: from [0.0.0.0] ([91.218.231.35]) by smtp.gmail.com with ESMTPSA id m12sm2311475lfe.12.2017.07.14.16.37.10 for <27254@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jul 2017 16:37:10 -0700 (PDT) X-Forwarded-Message-Id: In-Reply-To: Content-Language: en-US X-Mailman-Approved-At: Fri, 14 Jul 2017 19:38:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:134572 Archived-At: This is a multi-part message in MIME format. --------------55D3814835E253524F10B49F Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit --------------55D3814835E253524F10B49F Content-Type: text/x-patch; name="cperl-indented-heredocs.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="cperl-indented-heredocs.diff" diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index c0f1aaf39d..c69eca2241 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el @@ -3734,7 +3734,7 @@ the sections using `cperl-pod-head-face', `cperl-pod-face', "\\(\\`\n?\\|^\n\\)=" ; POD "\\|" ;; One extra () before this: - "<<" ; HERE-DOC + "<<~?" ; HERE-DOC "\\(" ; 1 + 1 ;; First variant "BLAH" or just ``. "[ \t]*" ; Yes, whitespace is allowed! @@ -4000,7 +4000,7 @@ the sections using `cperl-pod-head-face', `cperl-pod-face', (setq b (point)) ;; We do not search to max, since we may be called from ;; some hook of fontification, and max is random - (or (and (re-search-forward (concat "^" qtag "$") + (or (and (re-search-forward (concat "^[ \t]*" qtag "$") stop-point 'toend) ;;;(eq (following-char) ?\n) ; XXXX WHY??? ) --------------55D3814835E253524F10B49F--