Have you actually tried to execute the query and what error message does it give?
Because I just tried to modify a stored procedure also and it is highlighting the stored procedure object with a red underline but the query still executes successfully.