commit 16b164e37b76fb6f0fe3ba6c08a802944077d6df
parent 1bd4983f20e77691090bff63eb76c4623a0b4d24
Author: m21c <ho*******@gmail.com>
Date: Thu, 25 Jun 2026 07:39:38 +0200
fix: colon is a delimiter, but also part of unary suffix op
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler.c b/compiler.c
@@ -1973,7 +1973,7 @@ getunarysuffix(Source *source)
/* @note fixes parsing unary suffix across multiple lines.
* (which shouldn't happen) */
- if (isbasicdelimiter(source->lastkind))
+ if (isbasicdelimiter(source->lastkind) && kind != COLONDELIM)
return 0;
switch (kind) {