This makes some of the changes clearer, see the section called 'Continuation Sections':
I now feel more clear about what the situation is. Although because of the multiple possibilities in each of AHK v1 and AHK v2, and the differences between AHK v1 and AHK v2, there's quite a lot to take in, so it would be a good idea to collect some examples. I might add something to my strings tutorial or start a new thread.
In making certain changes to the syntax in AHK v2, certain consequences of this made continuation sections potentially less useful, which Lexikos and/or others anticipated, hence making changes to continuation sections, including resolving that blank line issue (I've added more examples above) and this is mentioned in the 'changes' link that I've placed just above.
So in conclusion I think that continuation sections can be fiddly and yet they have been implemented well. Generally I say: imagine the contents of a continuation section 'unwrapped', i.e. as normal code combined into one line, with the round brackets at the beginning and end removed.
Funnily enough I intend to avoid using continuation sections and do things like this:
Code: Select all
vText := "a"
. "`r`n" "b"
. "`r`n" "c"
MsgBox, % vText
For two reasons: for two-way compatibility, and ease of parsing lines when checking scripts, i.e. knowing whether a line is code or part of a continuation section.