From 18e608a152672168fc06bfbf9c9c096226b5215d Mon Sep 17 00:00:00 2001 From: PS Date: Sat, 10 Feb 2024 19:34:25 -0800 Subject: [PATCH] Parsing jai style compiler errors --- code/custom/4coder_jumping.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/custom/4coder_jumping.cpp b/code/custom/4coder_jumping.cpp index e7adf549..d8e5e40d 100644 --- a/code/custom/4coder_jumping.cpp +++ b/code/custom/4coder_jumping.cpp @@ -133,7 +133,11 @@ parse_jump_location(String_Const_u8 line){ } u64 colon_pos2 = string_find_first(string_skip(line, colon_pos1 + 1), ':') + colon_pos1 + 1; - u64 colon_pos3 = string_find_first(string_skip(line, colon_pos2 + 1), ':') + colon_pos2 + 1; + u64 comma_pos2 = string_find_first(string_skip(line, colon_pos1 + 1), ',') + colon_pos1 + 1; + if (comma_pos2 < colon_pos2) { + colon_pos2 = comma_pos2; + } + u64 colon_pos3 = string_find_first(string_skip(line, colon_pos2 + 1), ':') + colon_pos2 + 1; if (colon_pos3 < line.size){ if (check_is_note(line, colon_pos3)){