- output += fmt.Sprintf(" start: \"%s\"\n", rule.start)
- output += fmt.Sprintf(" end: \"%s\"\n", rule.end)
+ output += fmt.Sprintf(" start: \"%s\"\n", strings.Replace(strings.Replace(rule.start, "\\", "\\\\", -1), "\"", "\\\"", -1))
+ output += fmt.Sprintf(" end: \"%s\"\n", strings.Replace(strings.Replace(rule.end, "\\", "\\\\", -1), "\"", "\\\"", -1))