Skip to content

Instantly share code, notes, and snippets.

@raphink
Created January 27, 2014 21:15
Show Gist options
  • Save raphink/8657447 to your computer and use it in GitHub Desktop.
Save raphink/8657447 to your computer and use it in GitHub Desktop.
--- a/lenses/yum.aug
+++ b/lenses/yum.aug
@@ -19,7 +19,7 @@ let eol = IniFile.eol
let list_entry (list_key:string) =
let list_value = store /[^# \t\n,][^ \t\n,]*[^# \t\n,]|[^# \t\n,]/ in
let list_sep = del /([ \t]*(,[ \t]*|\n[ \t]+))|[ \t]+/ "\n\t" in
- [ key list_key . sep . list_value ]
+ [ key list_key . sep . Sep.opt_space . list_value ]
. (list_sep . Build.opt_list [ label list_key . list_value ] list_sep)?
. eol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment