From 0dcb2186817c5fcb8e3a04ce89ef84e0ba7ba922 Mon Sep 17 00:00:00 2001 From: TAC109 <49378716+TAC109@users.noreply.github.com> Date: Thu, 22 Dec 2022 11:53:15 +1300 Subject: [PATCH] Only skip */ if within a block comment --- ScriptParser.ahk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ScriptParser.ahk b/ScriptParser.ahk index 29714c6..ca2a72a 100644 --- a/ScriptParser.ahk +++ b/ScriptParser.ahk @@ -67,8 +67,8 @@ PreprocessScript(ByRef ScriptText, AhkScript, Directives, PriorLines cmtBlock := true continue } - else if StrStartsWith(tline, "*/") - continue ; Will only happen in a 'Keep' section + else if (cmtBlock = true && StrStartsWith(tline, "*/")) + continue } if StrStartsWith(tline, "(") && !IsFakeCSOpening(SubStr(tline,2)) contSection := true