re-enabled grammar rule for nested functions