Blame lenses/iproute2.aug
|
Packit Service |
a2ae7a |
module IPRoute2 =
|
|
Packit Service |
a2ae7a |
autoload xfm
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let empty = [ del /[ \t]*#?[ \t]*\n/ "\n" ]
|
|
Packit Service |
a2ae7a |
let id = Rx.hex | Rx.integer
|
|
Packit Service |
a2ae7a |
let record = [ key id . del /[ \t]+/ "\t" . store /[a-zA-Z0-9\/-]+/ . Util.comment_or_eol ]
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let lns = ( empty | Util.comment | record ) *
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let xfm = transform lns (incl "/etc/iproute2/*" . Util.stdexcl)
|