nginx.aug

Summary
nginx.aug
Augeas Variables
block_reThe keywords reserved for block entries
Augeas Lenses
simpleA simple entry
blockA block containing simple entries
lns
Augeas Variables
filter

Augeas Variables

block_re

let block_re = "http" | "events" | "server" | "upstream" | "location" | "if"

The keywords reserved for block entries

Augeas Lenses

simple

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 simple entry

block

let block = let entry = Util.indent . simple in [ key block_re . Build.block_newlines entry Util.comment . Util.eol ]

A block containing simple entries

lns

let lns = ( Util.comment | Util.empty | simple | block )*

Augeas Variables

filter

let block_re = "http" | "events" | "server" | "upstream" | "location" | "if"
The keywords reserved for block entries
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 simple entry
let block = let entry = Util.indent . simple in [ key block_re . Build.block_newlines entry Util.comment . Util.eol ]
A block containing simple entries
let lns = ( Util.comment | Util.empty | simple | block )*
Close