X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Lapo Luchini <lapo@lapo.it>
Subject:  Re: Limited regex support in newlib cripples syntax highlighting    in nano
Date:  Fri, 29 Aug 2008 11:43:42 +0200
Lines: 24
Message-ID: <g98gce$dn3$1@ger.gmane.org>
References:  <31c5d6500808010103r1a0c3823p70351cc15fbf1f23@mail.gmail.com> <20080807134511.GE3806@calimero.vinschen.de> <g973l3$l6k$1@ger.gmane.org>
Mime-Version:  1.0
Content-Type:  text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding:  8bit
User-Agent: Thunderbird 2.0.0.16 (X11/20080728)
In-Reply-To: <g973l3$l6k$1@ger.gmane.org>
OpenPGP: id=C8F252FB
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Lapo Luchini wrote:
> Corinna Vinschen wrote:
>> On Aug  1 10:03, Tomi Belan wrote:
>>> Cygwin regex.h implementation doesn't support some special sequences,
>>> for example \< (beginning of word), \> (end of word) and \b (word
>>> boundary).
>>
>> What you're looking for are perl regular expressions and they are
>> only available if nano is built against the perl regex library which
>> apparently it isn't.
> 
> There isn't any configure option to use pcre from nano, and including 
> pcreposix.h instead of regex.h strangely produces compilation errors.

Nope, that was a silly typo, I manager to produce the package.
Unfortunately some of the distributed .nanorc syntax files are not 
compatible with PCRE syntax so I'll have to work on it a bit more.
Expect a new release shortly.

-- 
Lapo Luchini - http://lapo.it/

“ECC curves are divided into three groups, weak curves, inefficient 
curves, and curves patented by Certicom” (Peter Gutmann, 2001-08-10)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

