Skip to content

Commit

Permalink
Only skip */ if within a block comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TAC109 committed Dec 21, 2022
1 parent 41560b1 commit 0dcb218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ScriptParser.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0dcb218

Please sign in to comment.