X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <6910a60808290339k12212730i1ae450dedce7124@mail.gmail.com>
Date: Fri, 29 Aug 2008 12:39:58 +0200
From: "Reini Urban" <rurban@x-ray.at>
To: cygwin@cygwin.com
Subject: Re: Limited regex support in newlib cripples syntax highlighting in nano
In-Reply-To: <31c5d6500808010103r1a0c3823p70351cc15fbf1f23@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <31c5d6500808010103r1a0c3823p70351cc15fbf1f23@mail.gmail.com>
X-Google-Sender-Auth: 12e3481f56e1f2e3
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

2008/8/1 Tomi Belan wrote as "Limited regex support in newlib cripples
syntax highlighting in nano"
> Cygwin regex.h implementation doesn't support some special sequences,
> for example \< (beginning of word), \> (end of word) and \b (word
> boundary). This causes a usability bug with the nano editor, which
> uses these sequences extensively in most of its syntax highlighting
> rules.

Posix regex is much faster then perl-style pcre regex. Syntax
highlighter usually prefer fast over complete. So the term "crippled"
should be used with care.

See e.g. http://swtch.com/~rsc/regexp/regexp1.html - Regular
Expression Matching Can Be Simple And Fast (but is slow in Java, Perl,
PHP, Python, Ruby, ...)  - which complains about the typical POSIX
spencer implementation also.

-- 
Reini Urban
http://phpwiki.org/ http://murbreak.at/

--
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/

