summaryrefslogtreecommitdiff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/lex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/lex.c b/Src/lex.c
index 700af2da1..efbb62b66 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1402,10 +1402,11 @@ gettokstr(int c, int sub)
/*
* Same logic as Dash, for ! to perform negation in range.
*/
- if (seen_brct)
+ if (seen_brct && brct)
c = Bang;
else
c = '!';
+ break;
case LX2_OTHER:
if (in_brace_param) {
if (c == '/') {