fix expression aritmetic

This commit is contained in:
2026-02-17 08:49:30 -05:00
parent 225a1533cc
commit d8a80bd728
2 changed files with 4 additions and 90 deletions

View File

@@ -111,7 +111,7 @@ tokenizer_next :: proc(t: ^Tokenizer) -> Maybe(string) {
}
// Single-character operators
if c == '=' || c == '<' || c == '>' {
if c == '=' || c == '<' || c == '>' || c == '+' || c == '-' {
t.pos += 1
return t.input[start:t.pos]
}
@@ -138,9 +138,9 @@ is_whitespace :: proc(c: byte) -> bool {
@(private = "file")
is_ident_char :: proc(c: byte) -> bool {
return (c >= 'a' && c <= 'z') ||
(c >= 'A' && c <= 'Z') ||
(c >= '0' && c <= '9') ||
c == '_' || c == ':' || c == '#' || c == '-' || c == '.'
(c >= 'A' && c <= 'Z') ||
(c >= '0' && c <= '9') ||
c == '_' || c == ':' || c == '#' || c == '.'
}
// ---------------------------------------------------------------------------