From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17027 invoked by alias); 31 Mar 2017 05:19:39 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22641 Received: (qmail 19811 invoked from network); 31 Mar 2017 05:19:39 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk0-f51.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.213.51):SA:0(0.5/5.0):. Processed in 1.029829 secs); 31 Mar 2017 05:19:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM,SPF_PASS, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.213.51 as permitted sender) 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=W3dRZA688tfc96DQPJszuTkucQ5MfKuV3rF0OhBKLJs=; b=D60XsHfhsZm1zpRebVos5/0ABHxd+O6Fb+0b4ZV1fGkKFi0FDEcghVhHB3OWLQoBkX POBnjPoe96qnUT6jOFaf902VN/b8PM0KyAXde2rUS9uesm5XYoqJWD36w6kKzz9LN67O 46UrCdAGg7LwcQW/mxgAXRCbsDk6f1rAifYqjY/uKIXd2iZdGE4R2Vtk9jP0ijJo2Ykd pKcbV20A7v15CnohEWJ0FlcOQXFbnfc8PKMVT1ObvsZYGblLZfwYXUT1C/WocrBs8wQh sfK8N6vomejH7cD1AlHOSqCiH7eKkUQHik6PketSIJtJYaoBMvHPaORaeHq4Ug3oKtwh xkqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=W3dRZA688tfc96DQPJszuTkucQ5MfKuV3rF0OhBKLJs=; b=D+3Ws1wgJ8gWbFB9/MUT0bNwUoDX6+z/EljdGaZ/hRwcxg1gpF+vgu6/aytpjeuEnG CBgxoFEH2S7QSSxe3MNfRhJ8kxuONQkf4aEnTm6cckpT7HguKbqptV467+fodABZh/p3 t9vNfthZZ6PPk3usN1cVFKQ5+KNJlD42+r88CbPs6m2zeWbpYzaZT7kbqxG20Kw4iqGS feNxBI2835fz3nUqCHXa1JNAs54E+8MVj3DCXEizZcl2Ag94vbPfxeK890ptn+jbDpXM WsxmetDRC5CtwfIHITxlpzN3pGcVcOzoDimG7QaA2xb/dHzrDIyNbtWAsdfRTemv3T6d D0Ng== X-Gm-Message-State: AFeK/H2/ECrH6ENmEM+PchPy/W4kFD0boexNGa/2373Z8U1lhY9JmyCKonGOPBbPxof4KA== X-Received: by 10.176.17.92 with SMTP id g28mr488424uac.172.1490937572071; Thu, 30 Mar 2017 22:19:32 -0700 (PDT) From: Bart Schaefer Message-Id: <170330221929.ZM18456@torch.brasslantern.com> Date: Thu, 30 Mar 2017 22:19:29 -0700 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "zregexparse" (Mar 29, 10:46am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: zregexparse MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 29, 10:46am, Sebastian Gniazdowski wrote: } } I've stumbled upon zregexparse. Verified that it doesn't auto-load } zsh/regex. Manual says: } } zregexparse } This implements some internals of the _regex_arguments function. } } Test V02 suggest this is a very capable tool. How it is compiled, with } use of LGPL Gnu regex? It has its own simple regular expression matcher, towards the end of the zsh/zutil module. There's no borrowed code, except maybe the algorithm from a textbook. This was invented during the time when it had been decided that there should be separate documentation for developers and users, so the yodl doc was deliberately sparse on things only developers were supposed to need to know about. Probably a poor decision in hindsight, as in many cases the doc for developers never got written. } I wonder what use cases might it have It's used in the following completions: Completion/X/Command/_xset Completion/X/Command/_xwit Completion/Unix/Command/_ip Completion/Zsh/Command/_ztodo Completion/Debian/Command/_apt The Completion/Base/Utility/_regex_arguments file contains what little doc there is for the syntax. There are probably several other completions that could do better on context-sensitive arguments than they do with _arguments, if only the use of _regex_arguments were a bit less impenetrable.