Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] In reference to patch 39815, about (z) flag and $( parse error
- X-seq: zsh-workers 41864
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [BUG] In reference to patch 39815, about (z) flag and $( parse error
- Date: Wed, 11 Oct 2017 10:02:31 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=Z8q8llmG0lmKTSPVYgjnqw53tXidte1XzqkA62lO338=; b=yPWtsjwOf3O6Hc20qAtlG+IF5qLT/nFukAMoqUnk/ucg9LIwcGt0Y9+WK8a9tPgIZs MJNe/7oBStL5GgMz34bLU0xS6jo9D0QKh8Vv3rnfvtSbfYHjs5Z+97+FwsH8adTbbuaq 9VuzoqWyhwPRIgV7Um+krdgqBSs9i1C3W6X71+XfWtewSOtE+JjzculKr6qZ/h3w8/8a x2VV4VcZd74tfBJhKTH7Pf914g/T39pFxd9IGRUOJcKq9tgb80VO5xjkEPUd+gyZHIIS Oen4LaOm8E6uW4AHy6r/6ES5fG/e9HcNydBJ4rvJHd0CepN1isiyqpdJDTyoqPg4XGxS qmAA==
- In-reply-to: <etPan.59ddd6c5.c1b5c18.98a8@zdharma.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <etPan.59dce146.1b81bc1.98a8@zdharma.org> <etPan.59dcf31d.1706ff79.98a8@zdharma.org> <etPan.59dd94f1.69ba7f51.98a8@AirmailxGenerated.am> <etPan.59ddd6c5.c1b5c18.98a8@zdharma.org>
On Oct 11, 10:31am, Sebastian Gniazdowski wrote:
}
} However one test fails on this line.
Hmm, so the problem appears to be that when parsing a comment, we
actually need the NEWLIN token to mark the end of the comment.
When parsing code, we need NEWLIN to be ignored as whitespace and
not tokenized.
That is, in your example the ZSH_AUTOSUGGEST_CLEAR_WIDGETS line is
parsed incorrectly (with my patch) because the line preceding it is
a comment.
So I think the fix for this is going to have to be elsewhere, rather
than in zshlex().
Messages sorted by:
Reverse Date,
Date,
Thread,
Author