zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Peter Stephenson <p.stephenson@samsung.com>
Cc: "Zsh Hackers' List" <zsh-workers@zsh.org>
Subject: Re: PATCH: get off my case
Date: Thu, 21 May 2015 11:29:31 +0200	[thread overview]
Message-ID: <CAHYJk3SKhM8BsTpAciGCMBOhJiU_AVrEWOWFPYJdWZXny_a6VA@mail.gmail.com> (raw)
In-Reply-To: <20150521095419.168809c8@pwslap01u.europe.root.pri>

On Thu, May 21, 2015 at 10:54 AM, Peter Stephenson
<p.stephenson@samsung.com> wrote:
> On closer examination, it turns out the previous "case" featurama could
> be divided cleanly (if that's an appropriate word in this context) into
> two parts.
>
> First, there was code to handle sh-style parenthesis handling, what you
> get when you set SH_GLOB, by sticking words back together with a "|" and
> treating the result as a single pattern.  This is now redundant with the
> alternations being handled separately.  So sh-style cases can be left
> alone and continue to work properly without having to force initial
> parentheses to match singly with SH_GLOB off.
>
> Second, there was code to handle zsh patterns when a fully parenthesised
> expression turned up with SH_GLOB off.  This is where the hackfest on
> the internal whitespace took place.  This part is still needed to
> reconcile the two worlds when we revert to only matching separate
> opening parentheses in the SH_GLOB case.  However, it can be resurrected
> without damage to the other part.
>
> Note there are no further changes to wordcode here.
>
> Case solved.

I can confirm that zcompile of the distributed functions succeeds now,
as well as my own functions.

> diff --git a/Src/lex.c b/Src/lex.c
> index 87b0cd3..841fb0b 100644
> --- a/Src/lex.c
> +++ b/Src/lex.c
> +        *   "case" patten, either because there's no opening

pattern

> +        *   unfortunately too difficult to comine traditional

combine

-- 
Mikael Magnusson
http://mika.l3ib.org/tmp/2015-05-21-112239.png


  reply	other threads:[~2015-05-21  9:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-21  8:54 Peter Stephenson
2015-05-21  9:29 ` Mikael Magnusson [this message]
2015-05-21  9:34 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHYJk3SKhM8BsTpAciGCMBOhJiU_AVrEWOWFPYJdWZXny_a6VA@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=p.stephenson@samsung.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).