Andrew --
The "matched line" is what you see in the grid in GF -- that is, a single line delimited by CRs, not a executable line spread over multiple lines with the ';' at the end of each line.
I had investigated the issue of identifying statements spread over multiple lines in the past (for other reasons) and found it very difficult to implement, even when ignoring the complexity of having comments after the ';'.
So the best you can do is to look with the same procedure, probably a much wider net than you are interested in.