From 4bdd085d5c9102503d7e4392cfeb37293fb3e966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heath=20Dutton=F0=9F=95=B4=EF=B8=8F?= Date: Thu, 12 Feb 2026 16:12:30 -0500 Subject: [PATCH] Fix #219, Prevent infinite loop when line contains both braces --- Subsystems/cmdGui/CHeaderParser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Subsystems/cmdGui/CHeaderParser.py b/Subsystems/cmdGui/CHeaderParser.py index 439c701..97e2ef8 100644 --- a/Subsystems/cmdGui/CHeaderParser.py +++ b/Subsystems/cmdGui/CHeaderParser.py @@ -311,6 +311,10 @@ def get_file_list(filename='CHeaderParser-hdr-paths.txt'): # Now that we know the struct is over, add list of lines # to the sets of command structures list_cmd_structs.append(lines_of_struct) + + # Advance past the closing brace line so the + # outer loop does not reprocess it (fixes #219) + line_num += 1 break # Add line number to list