nginx.aug | |
Augeas Variables | |
block_re | The keywords reserved for block entries |
Augeas Lenses | |
simple | A simple entry |
block | A block containing simple entries |
lns | |
Augeas Variables | |
filter |
let block = let entry = Util.indent . simple in [ key block_re . Build.block_newlines entry Util.comment . Util.eol ]
A block containing simple entries
The keywords reserved for block entries
let block_re = "http" | "events" | "server" | "upstream" | "location" | "if"
A simple entry
let simple = let kw = Rx.word - block_re in let sto = store /[^ \t\n;][^;]*/ . Sep.semicolon in Build.key_value_line_comment kw Sep.space sto Util.comment_eol
A block containing simple entries
let block = let entry = Util.indent . simple in [ key block_re . Build.block_newlines entry Util.comment . Util.eol ]
let lns = ( Util.comment | Util.empty | simple | block )*