From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.bugs Subject: bug#5719: [patch] fix bat-generic-mode highlighting pattern for CLI switch. Date: Sun, 14 Mar 2010 22:18:19 +0200 Message-ID: <4B9D448B.6060003@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010004050004030105010906" X-Trace: dough.gmane.org 1268598298 10059 80.91.229.12 (14 Mar 2010 20:24:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 14 Mar 2010 20:24:58 +0000 (UTC) To: 5719@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 14 21:24:54 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NquMn-0008Cq-Mj for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Mar 2010 21:24:54 +0100 Original-Received: from localhost ([127.0.0.1]:48307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NquMm-00070b-Vp for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Mar 2010 16:24:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NquMh-0006zl-VB for bug-gnu-emacs@gnu.org; Sun, 14 Mar 2010 16:24:47 -0400 Original-Received: from [140.186.70.92] (port=60308 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NquMf-0006yc-B4 for bug-gnu-emacs@gnu.org; Sun, 14 Mar 2010 16:24:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NquMc-00041I-I9 for bug-gnu-emacs@gnu.org; Sun, 14 Mar 2010 16:24:45 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47456) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NquMc-00041E-G4 for bug-gnu-emacs@gnu.org; Sun, 14 Mar 2010 16:24:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NquH7-0004pY-Oe; Sun, 14 Mar 2010 16:19:01 -0400 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Oleksandr Gavenko Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Mar 2010 20:19:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-GNU-PR-Message: report 5719 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.126859791318560 (code B ref -1); Sun, 14 Mar 2010 20:19:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Mar 2010 20:18:33 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NquGf-0004pJ-45 for submit@debbugs.gnu.org; Sun, 14 Mar 2010 16:18:33 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NquGc-0004pD-LC for submit@debbugs.gnu.org; Sun, 14 Mar 2010 16:18:31 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:42239) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NquGY-0007mA-9k for submit@debbugs.gnu.org; Sun, 14 Mar 2010 16:18:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NquGX-0005pL-NG for bug-gnu-emacs@gnu.org; Sun, 14 Mar 2010 16:18:25 -0400 Original-Received: from [140.186.70.92] (port=53011 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NquGW-0005pD-8Q for bug-gnu-emacs@gnu.org; Sun, 14 Mar 2010 16:18:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NquGT-0003Zl-U1 for bug-gnu-emacs@gnu.org; Sun, 14 Mar 2010 16:18:24 -0400 Original-Received: from mail-fx0-f227.google.com ([209.85.220.227]:61244) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NquGT-0003Zg-PR for bug-gnu-emacs@gnu.org; Sun, 14 Mar 2010 16:18:21 -0400 Original-Received: by fxm27 with SMTP id 27so2925718fxm.8 for ; Sun, 14 Mar 2010 13:18:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type; bh=sHmD4fmbNVEU91emzdr66D7bdt20viBkln5VRKX6/Uk=; b=IVDsznfmeYq/iaYECjOAHY8bQRbadlcCjMRkjd0vKDD/tAHZSdQjqLQt0efXJxxQDs mPtxan/Q/9n10y5y/+zeX0mqOZhwgrM2IJ3tjjJvjN33e+3prUdPInRZiqQJdJP57nT+ KTZNKVq9le/G6wm41BSXh8sxtUz1ShYV/Qg+g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=n7ENGhSuCDBOi9vqxcYhABEprtLPa8zlh+cZdiR9AiaEAbtBV3E9+0aqXzNJelmT/A xt+ywzdyK/u91zKxAUieDWUUJGqceisaAkxY5M18D0tdcQN5pzJr2gzvEfM0VrUCV59Q HATGXnKe2C3jnvCB/MjsNjZvaydAEoGW3PB/4= Original-Received: by 10.223.62.207 with SMTP id y15mr2536355fah.92.1268597900735; Sun, 14 Mar 2010 13:18:20 -0700 (PDT) Original-Received: from [178.92.38.203] (203-38-92-178.pool.ukrtel.net [178.92.38.203]) by mx.google.com with ESMTPS id 19sm6168726fkr.16.2010.03.14.13.18.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 14 Mar 2010 13:18:20 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 14 Mar 2010 16:19:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35576 Archived-At: This is a multi-part message in MIME format. --------------010004050004030105010906 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Pattern for highlight '/help', '/query', '/a' like command line options currently does not require leading whitespace char but MUST. If you use Cygwin/MSYS from bat file you can type expressions like ls dir/sub-dir and '/sub-dir' unfortunately highlighted as CLI switch! Switch which start with - or + properly required leading whitespaces. There exist one situation then you must highlight switch exactly at start of line (and so there are no any leading whitespaces) because this line considered continuation of previous line if previous line end with '^' char. But this not true for command.com and so unusual situation so we can ignore it. So in patch I just improve pattern for '+'/'-', which already do job right. -- Best regards! --------------010004050004030105010906 Content-Type: text/plain; name=".patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=".patch" PT09IG1vZGlmaWVkIGZpbGUgJ2xpc3AvZ2VuZXJpYy14LmVsJw0KLS0tIGxpc3AvZ2VuZXJp Yy14LmVsCTIwMTAtMDEtMTMgMDg6MzU6MTAgKzAwMDANCisrKyBsaXNwL2dlbmVyaWMteC5l bAkyMDEwLTAzLTE0IDIwOjAzOjU5ICswMDAwDQpAQCAtNTA4LDggKzUwOCw3IEBADQogICAg ICAnKCJeWyBcdF0qXFwoOlxcc3crXFwpIiAgICAgICAgIDEgZm9udC1sb2NrLWZ1bmN0aW9u LW5hbWUtZmFjZSB0KQ0KICAgICAgJygiXFwoJVxcc3crJVxcKSIgICAgICAgICAgICAgICAx IGZvbnQtbG9jay12YXJpYWJsZS1uYW1lLWZhY2UgdCkNCiAgICAgICcoIlxcKCVbMC05XVxc KSIgICAgICAgICAgICAgICAgMSBmb250LWxvY2stdmFyaWFibGUtbmFtZS1mYWNlIHQpDQot ICAgICAnKCJcXCgvW14vIFwiXHRcbl0rXFwpIiAgICAgICAgIDEgZm9udC1sb2NrLXR5cGUt ZmFjZSkNCi0gICAgICcoIltcdCBdK1xcKFsrLV1bXlx0XG5cIiBdK1xcKSIgMSBmb250LWxv Y2stdHlwZS1mYWNlKQ0KKyAgICAgJygiW1x0IF0rXFwoWystL11bXlx0XG5cIiBdK1xcKSIg MSBmb250LWxvY2stdHlwZS1mYWNlKQ0KICAgICAgJygiWyBcdFxufF1cXDxcXChbZ0ddW29P XVt0VF1bb09dXFwpXFw+WyBcdF0qXFwoXFxzdytcXCk/Ig0KICAgICAgICAoMSBmb250LWxv Y2sta2V5d29yZC1mYWNlKQ0KICAgICAgICAoMiBmb250LWxvY2stZnVuY3Rpb24tbmFtZS1m YWNlIG5pbCB0KSkNCg0K --------------010004050004030105010906--