i don't remember what i changed

This commit is contained in:
2026-04-14 20:38:14 +02:00
parent a577ffe094
commit 9ac3df1f37
4 changed files with 52 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ int noomL_isalphanum(char c) {
}
int noomL_iswhitespace(char c) {
return c == ' ' || c == '\r' || c == '\n' || c == '\t';
return c == ' ' || c == '\r' || c == '\n' || c == '\t' || c == '\v' || c == '\f';
}
noom_uint_t noomL_getsymbol(const char* s) { // TODO: maybe find some less shit crap holy crap
@@ -26,6 +26,13 @@ noom_uint_t noomL_getsymbol(const char* s) { // TODO: maybe find some less shit
if (noom_startswith(s, "<=")) return 2;
if (noom_startswith(s, ">=")) return 2;
if (noom_startswith(s, "..")) return 2;
if (noom_startswith(s, "::")) return 2;
if (noom_startswith(s, "//")) return 2;
if (noom_startswith(s, ">>")) return 2;
if (noom_startswith(s, "<<")) return 2;
if (noom_startswith(s, "+")) return 1;
if (noom_startswith(s, "-")) return 1;
@@ -52,6 +59,10 @@ noom_uint_t noomL_getsymbol(const char* s) { // TODO: maybe find some less shit
if (noom_startswith(s, ";")) return 1;
if (noom_startswith(s, "&")) return 1;
if (noom_startswith(s, "|")) return 1;
if (noom_startswith(s, "~")) return 1;
return 0; // no symbol
}