Parses simple key = value conffiles
Author: Raphael Pinson rap@gmai l.com hink
Simplevars | Parses simple key = value conffiles |
License | This file is licenced under the LGPL v2+, like the rest of Augeas. |
Lens Usage | To be documented |
Examples | The Test_Simplevars file contains various examples and tests. |
Augeas Variables | |
to_comment_re | The regexp to match the value |
Augeas Lenses | |
entry | |
lns | |
Augeas Variables | |
filter |
The Test_Simplevars file contains various examples and tests.
The regexp to match the value
let to_comment_re = let to_comment_squote = /'[^\n']*'/ in let to_comment_dquote = /"[^\n"]*"/ in let to_comment_noquote = /[^\n \t'"#][^\n#]*[^\n \t#]|[^\n \t'"#]/ in to_comment_squote | to_comment_dquote | to_comment_noquote
let entry = let some_value = Sep.space_equal . store to_comment_re
let lns = (Util.empty | Util.comment | entry)*