Replace fmt.Errorf calls with a SyntaxError struct