diff options
author | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-11-11 21:51:20 +0000 |
---|---|---|
committer | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-11-11 21:51:20 +0000 |
commit | 66ae2822dd269332a06641d8fc0da0c0e60734eb (patch) | |
tree | db8451cd0044899ae62b5cc63e44503e744cb66a /Src/lex.c | |
parent | 469921ba16eae89eb7ecfb1ea8fcdd34c1b0a642 (diff) | |
download | zsh-66ae2822dd269332a06641d8fc0da0c0e60734eb.tar.gz zsh-66ae2822dd269332a06641d8fc0da0c0e60734eb.tar.xz zsh-66ae2822dd269332a06641d8fc0da0c0e60734eb.zip |
Merge of 23115: add ";|" at end of case statement to cause testing of later patterns.
Diffstat (limited to 'Src/lex.c')
-rw-r--r-- | Src/lex.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/lex.c b/Src/lex.c index 5b001c4eb..e91cecfbc 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -158,6 +158,7 @@ mod_export char *tokstrings[WHILE + 1] = { "))", /* DOUTPAR */ "&|", /* AMPERBANG 30 */ ";&", /* SEMIAMP */ + ";|", /* SEMIBAR */ }; /* lexical state */ @@ -384,6 +385,7 @@ ctxtlex(void) case SEMI: case DSEMI: case SEMIAMP: + case SEMIBAR: case AMPER: case AMPERBANG: case INPAR: @@ -716,6 +718,8 @@ gettok(void) return DSEMI; else if(d == '&') return SEMIAMP; + else if (d == '|') + return SEMIBAR; hungetc(d); lexstop = 0; return SEMI; |