zsh-users
 help / color / mirror / code / Atom feed
From: Stephane Chazelas <Stephane_Chazelas@yahoo.fr>
To: zsh-users@sunsite.dk
Subject: Re: Vim syntax file for zsh
Date: Fri, 10 Dec 2004 15:46:20 +0000	[thread overview]
Message-ID: <20041210154620.GD4716@sc> (raw)
In-Reply-To: <20041210152749.GB10054@puritan.pcp.ath.cx>

On Fri, Dec 10, 2004 at 04:27:49PM +0100, Nikolai Weibull wrote:
> * Stephane Chazelas <Stephane_Chazelas@yahoo.fr> [Dec 10, 2004 14:40]:
> > > > First, a bug:  The zshVariable rule (after the "How safe is this?"
> > > > comment) is misfiring on any [ that follows word characters.  For
> > > > instance, add "echo hi[" early in a zsh script, and the entire
> > > > script should become the Identifier color.
> 
> > > Well, that [ should be quoted, so I'm not persuaded yet.
> 
> > If that "[" should be quoted, then that one in:
> 
> > [ -n "$1" ]
> 
> > should be to:
> 
> > '[' -ne "$1" ]
> 
> Why?
[...]

Because "[" and "hi[" are both arguments to a builtin command
(0th of the "[" one, and 1st of the "echo" one), there's no
reason (not) to quote one and not the other.

-- 
Stéphane


  reply	other threads:[~2004-12-10 15:47 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-01  7:40 Felix Rosencrantz
2004-12-01  8:43 ` Danek Duvall
2004-12-01 12:02 ` Nikolai Weibull
2004-12-03  8:02   ` Felix Rosencrantz
2004-12-04 15:54     ` Clint Adams
2004-12-04 16:42       ` Nikolai Weibull
2004-12-04 17:00         ` OT: vim maintainer [Re: Vim syntax file for zsh] Clint Adams
2004-12-04 22:04           ` Nikolai Weibull
2004-12-04 16:42     ` Vim syntax file for zsh Nikolai Weibull
2004-12-08  8:13       ` Felix Rosencrantz
2004-12-08 13:47         ` Nikolai Weibull
2004-12-08 18:14           ` Nikolai Weibull
2004-12-09 13:59             ` lists
2004-12-09 14:45               ` Nikolai Weibull
2004-12-09 16:36                 ` Felix Rosencrantz
2004-12-09 18:18                   ` Nikolai Weibull
2004-12-09 18:23                     ` Nikolai Weibull
2004-12-09 20:09                       ` Wayne Davison
2004-12-09 21:24                         ` Nikolai Weibull
2004-12-09 22:43                           ` Wayne Davison
2004-12-09 23:26                             ` Nikolai Weibull
2004-12-12  4:41                               ` Felix Rosencrantz
2004-12-12 13:34                                 ` Nikolai Weibull
2004-12-12 16:40                                   ` Felix Rosencrantz
2004-12-12 20:10                                     ` Nikolai Weibull
2004-12-13  3:41                                   ` Doug Kearns
2004-12-10  8:13                           ` Stephane Chazelas
2004-12-10 15:27                             ` Nikolai Weibull
2004-12-10 15:46                               ` Stephane Chazelas [this message]
2004-12-11 13:24                                 ` Nikolai Weibull
2004-12-11 16:13                                   ` Stephane Chazelas
2004-12-11 20:02                                     ` Nikolai Weibull
2004-12-08 13:15       ` Doug Kearns
2004-12-01 15:32 ` Ziggy

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=20041210154620.GD4716@sc \
    --to=stephane_chazelas@yahoo.fr \
    --cc=zsh-users@sunsite.dk \
    /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).