mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 14:40:20 +09:00
syntax/syntax_converter: Remove empty rules in regions
This commit is contained in:
@@ -149,7 +149,6 @@ func generateFile(filetype, syntax, header string, rules []interface{}) string {
|
||||
output += fmt.Sprintf(" - %s:\n", rule.color)
|
||||
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))
|
||||
output += fmt.Sprintf(" rules: []\n\n")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user