diff options
| author | iamcheeseman <[email protected]> | 2026-04-17 20:06:02 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-04-17 20:06:02 -0400 |
| commit | a4677cf4301f378c6338f2f29408f83f91053516 (patch) | |
| tree | c4b5c69383d8317d0d91fc68be929af8555d95fa /uscript/lex.c | |
| parent | bdc4806f5ddc90aea8840225fd8993e305b7ad10 (diff) | |
microscript: change ! to not
Diffstat (limited to 'uscript/lex.c')
| -rw-r--r-- | uscript/lex.c | 7 |
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 |
