Mercurial > repos > blastem
diff debug.c @ 2172:a00773a336d8
Fix bug in debugger lexer
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 06 Aug 2022 15:10:57 -0700 |
parents | 4b47155965c8 |
children | 894c7873a2b1 |
line wrap: on
line diff
--- a/debug.c Sat Aug 06 15:03:07 2022 -0700 +++ b/debug.c Sat Aug 06 15:10:57 2022 -0700 @@ -183,8 +183,29 @@ }; } *end = start + 1; - while (**end && !isblank(**end) && **end != '.') + while (**end && !isblank(**end)) { + uint8_t done = 0; + switch (**end) + { + case '+': + case '-': + case '*': + case '/': + case '&': + case '|': + case '^': + case '~': + case '=': + case '!': + case '.': + done = 1; + break; + } + if (done) { + break; + } + ++*end; } char *name = malloc(*end - start + 1);