From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12169 invoked by alias); 6 Sep 2015 17:31:46 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36434 Received: (qmail 25355 invoked from network); 6 Sep 2015 17:31:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Originating-IP: [80.3.228.158] X-Spam: 0 X-Authority: v=2.1 cv=RLtOZNW+ c=1 sm=1 tr=0 a=P+FLVI8RzFchTbbqTxIDRw==:117 a=P+FLVI8RzFchTbbqTxIDRw==:17 a=NLZqzBF-AAAA:8 a=kj9zAlcOel0A:10 a=pk_q8vzj-2jhtwLghVUA:9 a=CjuIK1q_8ugA:10 Date: Sun, 6 Sep 2015 18:22:30 +0100 From: Peter Stephenson To: Daniel Shahaf Cc: zsh-workers@zsh.org Subject: Re: region_highlight cancels styles set in zle_highlight Message-ID: <20150906182230.27d259eb@ntlworld.com> In-Reply-To: <20150905104449.GB1895@tarsus.local2> References: <20150905104449.GB1895@tarsus.local2> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 5 Sep 2015 10:44:49 +0000 Daniel Shahaf wrote: > How do $zle_highlight and $region_highlight interact? Which one takes > precedence if a certain byte range is covered by both? The special forms of highlight (the ones that apply to regions, so not, for example, unprintable characters) are treated as the initial set of entries in the array of highlights to apply, with any user-specified ones in region_highlight following in order, with later values overriding earlier ones. pws