Implement "multiline_scope" functionality