From fa73a86121584bac5b9eca5c980d5f8af93d4149 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sat, 2 May 2026 13:47:44 +0100 Subject: [PATCH] Fix theoretical symbols parser issue --- M6502/M6502.Symbols/Parser.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/M6502/M6502.Symbols/Parser.cs b/M6502/M6502.Symbols/Parser.cs index fe1869d..0dd2e58 100644 --- a/M6502/M6502.Symbols/Parser.cs +++ b/M6502/M6502.Symbols/Parser.cs @@ -328,14 +328,9 @@ private async Task ParseAsync(StreamReader reader) { - while (!reader.EndOfStream) + string? line; + while ((line = await reader.ReadLineAsync().ConfigureAwait(false)) is not null) { - var line = await reader.ReadLineAsync().ConfigureAwait(false); - if (line is null) - { - break; - } - this.ParseLine(line.Split(' ', '\t')); } }