From unknown Sun Jun 22 07:58:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18622: Syntax highlighting in bat-mode Resent-From: Arni Magnusson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Oct 2014 18:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18622 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 18622@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.141235914418536 (code B ref -1); Fri, 03 Oct 2014 18:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Oct 2014 17:59:04 +0000 Received: from localhost ([127.0.0.1]:60515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xa78B-0004os-OF for submit@debbugs.gnu.org; Fri, 03 Oct 2014 13:59:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53445) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xa789-0004oL-3O for submit@debbugs.gnu.org; Fri, 03 Oct 2014 13:59:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xa77y-0004kk-Vr for submit@debbugs.gnu.org; Fri, 03 Oct 2014 13:59:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xa77y-0004kg-TY for submit@debbugs.gnu.org; Fri, 03 Oct 2014 13:58:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xa77r-0000su-5d for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2014 13:58:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xa77j-0004iX-NV for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2014 13:58:43 -0400 Received: from hafgarpur.hafro.is ([130.208.64.48]:44557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xa77j-0004h3-DC for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2014 13:58:35 -0400 X-Virus-Scanned: amavisd-new at hafro.is Received: from hafstokkur.hafro.is (hafstokkur.hafro.is [130.208.66.45]) by hafgarpur.hafro.is (8.14.4/8.14.4/hafro-2.48) with ESMTP id s93HwSjF029897 for ; Fri, 3 Oct 2014 17:58:28 GMT Received: from hafstokkur.hafro.is (localhost [127.0.0.1]) by hafstokkur.hafro.is (8.14.8/8.14.7/hafro-1.6) with ESMTP id s93HwRWH015544 for ; Fri, 3 Oct 2014 17:58:27 GMT Received: from localhost (arnima@localhost) by hafstokkur.hafro.is (8.14.8/8.14.7/hafro-0.3) with ESMTP id s93HwRlG015541 for ; Fri, 3 Oct 2014 17:58:27 GMT X-Authentication-Warning: hafstokkur.hafro.is: arnima owned process doing -bs Date: Fri, 3 Oct 2014 17:58:27 +0000 (GMT) From: Arni Magnusson Message-ID: User-Agent: Alpine 2.11 (LFD 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) There appears to be a bug in the syntax highlighting `bat-mode' (Emacs pretest 24.3.94). In the following lines, the word FOO should be highlighted: call FOO set FOO=42 I was able to get the desired syntax highlighting by moving one underscore within line 81 of bat-mode.el: \\<_ to \\_< and a similar change in line 85. Cheers, Arni From unknown Sun Jun 22 07:58:03 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Arni Magnusson Subject: bug#18622: closed (Re: bug#18622: Syntax highlighting in bat-mode) Message-ID: References: X-Gnu-PR-Message: they-closed 18622 X-Gnu-PR-Package: emacs Reply-To: 18622@debbugs.gnu.org Date: Fri, 10 Oct 2014 04:05:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1412913903-5909-1" This is a multi-part message in MIME format... ------------=_1412913903-5909-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #18622: Syntax highlighting in bat-mode which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 18622@debbugs.gnu.org. --=20 18622: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18622 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1412913903-5909-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 18622-done) by debbugs.gnu.org; 10 Oct 2014 04:04:23 +0000 Received: from localhost ([127.0.0.1]:39638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XcRRH-0001W6-76 for submit@debbugs.gnu.org; Fri, 10 Oct 2014 00:04:23 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:63264) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XcRRE-0001Vx-ST for 18622-done@debbugs.gnu.org; Fri, 10 Oct 2014 00:04:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNFxKjo/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqg0wh X-IPAS-Result: ArUGAIDvNVNFxKjo/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="93753204" Received: from 69-196-168-232.dsl.teksavvy.com (HELO pastel.home) ([69.196.168.232]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 10 Oct 2014 00:04:19 -0400 Received: by pastel.home (Postfix, from userid 20848) id 8BE6B85A3; Fri, 10 Oct 2014 00:04:19 -0400 (EDT) From: Stefan Monnier To: Arni Magnusson Subject: Re: bug#18622: Syntax highlighting in bat-mode Message-ID: References: Date: Fri, 10 Oct 2014 00:04:19 -0400 In-Reply-To: (Arni Magnusson's message of "Fri, 3 Oct 2014 17:58:27 +0000 (GMT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 18622-done Cc: 18622-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Version:24.4 > I was able to get the desired syntax highlighting by moving one underscore > within line 81 of bat-mode.el: > \\<_ to \\_< > and a similar change in line 85. Indeed, thank you. Should be fixed. A similar bug was present in prolog.el. Stefan ------------=_1412913903-5909-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Oct 2014 17:59:04 +0000 Received: from localhost ([127.0.0.1]:60515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xa78B-0004os-OF for submit@debbugs.gnu.org; Fri, 03 Oct 2014 13:59:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53445) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xa789-0004oL-3O for submit@debbugs.gnu.org; Fri, 03 Oct 2014 13:59:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xa77y-0004kk-Vr for submit@debbugs.gnu.org; Fri, 03 Oct 2014 13:59:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xa77y-0004kg-TY for submit@debbugs.gnu.org; Fri, 03 Oct 2014 13:58:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xa77r-0000su-5d for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2014 13:58:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xa77j-0004iX-NV for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2014 13:58:43 -0400 Received: from hafgarpur.hafro.is ([130.208.64.48]:44557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xa77j-0004h3-DC for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2014 13:58:35 -0400 X-Virus-Scanned: amavisd-new at hafro.is Received: from hafstokkur.hafro.is (hafstokkur.hafro.is [130.208.66.45]) by hafgarpur.hafro.is (8.14.4/8.14.4/hafro-2.48) with ESMTP id s93HwSjF029897 for ; Fri, 3 Oct 2014 17:58:28 GMT Received: from hafstokkur.hafro.is (localhost [127.0.0.1]) by hafstokkur.hafro.is (8.14.8/8.14.7/hafro-1.6) with ESMTP id s93HwRWH015544 for ; Fri, 3 Oct 2014 17:58:27 GMT Received: from localhost (arnima@localhost) by hafstokkur.hafro.is (8.14.8/8.14.7/hafro-0.3) with ESMTP id s93HwRlG015541 for ; Fri, 3 Oct 2014 17:58:27 GMT X-Authentication-Warning: hafstokkur.hafro.is: arnima owned process doing -bs Date: Fri, 3 Oct 2014 17:58:27 +0000 (GMT) From: Arni Magnusson To: bug-gnu-emacs@gnu.org Subject: Syntax highlighting in bat-mode Message-ID: User-Agent: Alpine 2.11 (LFD 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) There appears to be a bug in the syntax highlighting `bat-mode' (Emacs pretest 24.3.94). In the following lines, the word FOO should be highlighted: call FOO set FOO=42 I was able to get the desired syntax highlighting by moving one underscore within line 81 of bat-mode.el: \\<_ to \\_< and a similar change in line 85. Cheers, Arni ------------=_1412913903-5909-1--