# HG changeset patch # User Michael Pavone # Date 1659823857 25200 # Node ID a00773a336d8acefca92689c650cf97f3ffdccfb # Parent 4b47155965c8f31b6c98212573367a4184cf0397 Fix bug in debugger lexer diff -r 4b47155965c8 -r a00773a336d8 debug.c --- 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);