Handle multi-line expressions at the end of a declaration by including all rows up to the next declaration (including blank lines).