5 Author: Raphael Pinson <raphink@gmail.com>
8 This lens tries to keep as close as possible to `man 3 readline` where possible.
11 This file is licenced under the LGPL v2+, like the rest of Augeas.
16 About: Configuration files
17 This lens applies to /etc/inputrc. See <filter>.
20 The <Test_Inputrc> file contains various examples and tests.
28 An inputrc mapping entry *)
30 let mapping = [ label "mapping" . store Rx.word ]
32 . Util.del_str "\"" . store /[^" \t\n]+/
33 . Util.del_str "\":" . Sep.space
38 An inputrc variable declaration *)
39 let variable = [ Util.del_str "set" . Sep.space
40 . key (Rx.word - "entry") . Sep.space
41 . store Rx.word . Util.eol ]
44 An "if" declaration, recursive *)
45 let rec condition = [ Util.del_str "$if" . label "@if"
46 . Sep.space . store Rx.space_in . Util.eol
47 . (Util.empty | Util.comment | condition | variable | entry)*
48 . Util.del_str "$endif" . Util.eol ]
52 let lns = (Util.empty | Util.comment | condition | variable | entry)*
54 (* Variable: filter *)
55 let filter = incl "/etc/inputrc"
57 let xfm = transform lns filter