about summary refs log tree commit diff
path: root/Src/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/lex.c b/Src/lex.c
index 3f3c0f9d2..147bea598 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1526,7 +1526,7 @@ exalias(void)
 	    } else if (incond && !strcmp(yytext, "]]")) {
 		tok = DOUTBRACK;
 		incond = 0;
-	    } else if (incond && yytext[0] == '!' && !yytext[1])
+	    } else if (incond == 1 && yytext[0] == '!' && !yytext[1])
 		tok = BANG;
 	}
 	inalmore = 0;