Fix a bug where syntax wasn't re-detected after save-as.