summaryrefslogtreecommitdiff
path: root/uscript/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'uscript/lex.c')
-rw-r--r--uscript/lex.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/uscript/lex.c b/uscript/lex.c
index c8218fa..b940cd4 100644
--- a/uscript/lex.c
+++ b/uscript/lex.c
@@ -312,10 +312,9 @@ struct token symbol_token(struct lexer *lex, char c)
match_char(lex, '=') ? TOKEN_EQL : c
);
case '!':
- return create_token(
- lex,
- match_char(lex, '=') ? TOKEN_NEQL : c
- );
+ if (match_char(lex, '='))
+ return create_token(lex, TOKEN_NEQL);
+ break;
}
// TODO: log unknown character