emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-bug-tracker] bug#5719: closed ([patch] fix bat-generic-mode highl


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#5719: closed ([patch] fix bat-generic-mode highlighting pattern for CLI switch.)
Date: Sun, 27 Jun 2010 18:45:02 +0000

Your message dated Sun, 27 Jun 2010 14:44:46 -0400
with message-id <address@hidden>
and subject line Re: [patch] fix bat-generic-mode highlighting pattern for CLI 
switch.
has caused the GNU bug report #5719,
regarding [patch] fix bat-generic-mode highlighting pattern for CLI switch.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
5719: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5719
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [patch] fix bat-generic-mode highlighting pattern for CLI switch. Date: Sun, 14 Mar 2010 22:18:19 +0200 User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0
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!

Attachment: .patch
Description: Text document


--- End Message ---
--- Begin Message --- Subject: Re: [patch] fix bat-generic-mode highlighting pattern for CLI switch. Date: Sun, 27 Jun 2010 14:44:46 -0400
> Pattern for highlight '/help', '/query', '/a' like command line
> options currently does not require leading whitespace char but MUST.

Thanks for the patch.  I've checked it in.



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]