From: Jonathan Nieder Date: Sun, 26 Dec 2010 10:54:41 GMT Subject: Re: [RFC/PATCH] diff: funcname and word patterns for perl Message-ID: <20101226105441.GA27039@burratino> In-Reply-To: <201012261143.33190.trast@student.ethz.ch> Thomas Rast wrote: > Jonathan Nieder wrote: >> + "|[^[:space:]]"), > > I think it should get the |[\x80-\xff]+ arm, too. That one was > designed to avoid splitting UTF-8 characters. At the risk of gluing > together too many of them, of course, but I think confusing the > terminal would be worse. Hmm. Should it be |([\x80-\xff]+[\x00-\x7f]) then, to match exactly one multibyte UTF-8 character?