Generic separators to build lenses
Author: Raphael Pinson rap@gmai l.com hink
Sep | Generic separators to build lenses |
License | This file is licensed under the LGPL v2+, like the rest of Augeas. |
Augeas Variables | |
colon | |
semicolon | |
comma | |
equal | |
space_equal | |
space | Deletes a Rx.space and default to a single space |
tab | Deletes a Rx.space and default to a tab |
opt_space | Deletes a Rx.opt_space and default to an empty string |
opt_tab | Deletes a Rx.opt_space and default to a tab |
cl_or_space | Deletes a Rx.cl_or_space and default to a single space |
cl_or_opt_space | Deletes a Rx.cl_or_opt_space and default to a single space |
lbracket | |
rbracket |
let space = del Rx.space " "
Deletes a Rx.space and default to a single space
let tab = del Rx.space "\t"
Deletes a Rx.space and default to a tab
let opt_space = del Rx.opt_space ""
Deletes a Rx.opt_space and default to an empty string
let opt_tab = del Rx.opt_space "\t"
Deletes a Rx.opt_space and default to a tab
let cl_or_space = del Rx.cl_or_space " "
Deletes a Rx.cl_or_space and default to a single space
let cl_or_opt_space = del Rx.cl_or_opt_space " "
Deletes a Rx.cl_or_opt_space and default to a single space
let colon = Util.del_str ":"
let semicolon = Util.del_str ";"
let comma = Util.del_str ","
let equal = Util.del_str "="
let space_equal = Util.delim "="
Deletes a Rx.space and default to a single space
let space = del Rx.space " "
A mandatory space or tab
let space = /[ \t]+/
Deletes a Rx.space and default to a tab
let tab = del Rx.space "\t"
Deletes a Rx.opt_space and default to an empty string
let opt_space = del Rx.opt_space ""
An optional space or tab
let opt_space = /[ \t]*/
Deletes a Rx.opt_space and default to a tab
let opt_tab = del Rx.opt_space "\t"
Deletes a Rx.cl_or_space and default to a single space
let cl_or_space = del Rx.cl_or_space " "
A cl or a space
let cl_or_space = cl | space
Deletes a Rx.cl_or_opt_space and default to a single space
let cl_or_opt_space = del Rx.cl_or_opt_space " "
A cl or a opt_space
let cl_or_opt_space = cl | opt_space
let rbracket = Util.del_str ")"