Files
bux-lang/bootstrap
dimgigov 3b7fc455b0 fix(parser): infinite loop on newlines in multi-import, multi-line params, type args, struct patterns
Parser would hang (infinite loop) when encountering newline tokens
inside certain constructs because expect() returns without advancing
position when the expected token doesn't match.

Fixed 5 places in parseBaseType, parsePrimaryPattern, parseTypeParams,
parseParamList, and parseUseDecl by adding newline-skipping at the
start of each iteration.

Verified: compiler no longer hangs/crashes on all 3 real-world apps
from apps/ (boko-framework, jwt-pitbul, nexus).
2026-06-07 23:02:43 +03:00
..
2026-06-06 04:53:39 +03:00
2026-06-06 04:53:39 +03:00
2026-06-06 04:53:39 +03:00
2026-06-06 04:53:39 +03:00
2026-06-06 04:53:39 +03:00
2026-06-06 04:53:39 +03:00