diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-12-14 10:40:42 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-12-14 10:40:42 +0000 |
commit | ef5cf45780f83630e36a8b9bee370d88fddb6610 (patch) | |
tree | c42ec0592b7e408d8170d69988a7fa12f9267c69 /Src/lex.c | |
parent | ebcead7543194819ef3bbd47ef384cabae3c59fc (diff) | |
download | zsh-ef5cf45780f83630e36a8b9bee370d88fddb6610.tar.gz zsh-ef5cf45780f83630e36a8b9bee370d88fddb6610.tar.xz zsh-ef5cf45780f83630e36a8b9bee370d88fddb6610.zip |
unposted: another neatening of lexflags use in ZLE
Diffstat (limited to 'Src/lex.c')
-rw-r--r-- | Src/lex.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Src/lex.c b/Src/lex.c index a4d55f49a..3d70c5bbf 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -587,13 +587,20 @@ add(int c) } } -#define SETPARBEGIN {if (lexflags && !(inbufflags & INP_ALIAS) && zlemetacs >= zlemetall+1-inbufct) parbegin = inbufct;} -#define SETPAREND {\ - if (lexflags && !(inbufflags & INP_ALIAS) && parbegin != -1 && parend == -1) {\ - if (zlemetacs >= zlemetall + 1 - inbufct)\ - parbegin = -1;\ - else\ - parend = inbufct;} } +#define SETPARBEGIN { \ + if ((lexflags & LEXFLAGS_ZLE) && !(inbufflags & INP_ALIAS) && \ + zlemetacs >= zlemetall+1-inbufct) \ + parbegin = inbufct; \ + } +#define SETPAREND { \ + if ((lexflags & LEXFLAGS_ZLE) && !(inbufflags & INP_ALIAS) && \ + parbegin != -1 && parend == -1) { \ + if (zlemetacs >= zlemetall + 1 - inbufct) \ + parbegin = -1; \ + else \ + parend = inbufct; \ + } \ + } /* * Return 1 for math, 0 for a command, 2 for an error. If it couldn't be |