mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
docs: Fix the EBNF for the '=' terminal symbol
The rule-body non-terminal symbol did not quote the '=' symbol. Signed-off-by: marco <marco@styra.com>
This commit is contained in:
@@ -712,7 +712,7 @@ policy = { rule }
|
||||
rule = [ "default" ] rule-head { rule-body }
|
||||
rule-head = var [ "(" rule-args ")" ] [ "[" term "]" ] [ ( ":=" | "=" ) term ]
|
||||
rule-args = term { "," term }
|
||||
rule-body = [ "else" [ = term ] ] "{" query "}"
|
||||
rule-body = [ "else" [ "=" term ] ] "{" query "}"
|
||||
query = literal { ( ";" | ( [CR] LF ) ) literal }
|
||||
literal = ( some-decl | expr | "not" expr ) { with-modifier }
|
||||
with-modifier = "with" term "as" term
|
||||
|
||||
Reference in New Issue
Block a user