3 Parses /etc/approx/approx.conf
5 Author: David Lutterkort <lutter@redhat.com>
8 This lens tries to keep as close as possible to `man 5 approx.conf` where possible.
11 This file is licenced under the LGPLv2+, like the rest of Augeas.
16 About: Configuration files
17 This lens applies to /etc/approx/approx.conf.
20 The <Test_Approx> file contains various examples and tests.
32 let indent = Util.indent
34 (* Variable: key_re *)
35 let key_re = /\$?[A-Za-z0-9_.-]+/
40 (* Variable: value_re *)
41 let value_re = /[^ \t\n](.*[^ \t\n])?/
44 let comment = [ indent . label "#comment" . del /[#;][ \t]*/ "# "
45 . store /([^ \t\n].*[^ \t\n]|[^ \t\n])/ . eol ]
49 let empty = Util.empty
52 let kv = [ indent . key key_re . del sep " " . store value_re . eol ]
55 let lns = (empty | comment | kv) *
58 let filter = incl "/etc/approx/approx.conf"
59 let xfm = transform lns filter