Native OCaml Rego/OPA policy engine
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-rego: suppress synthetic SEMICOLON before WITH

Multi-line policies often write [with] modifiers on the line below
the literal they modify. The lexer was inserting a synthetic
SEMICOLON before WITH, which broke the with-modifier list.

+1 -1
+1 -1
lib/lexer.ml
··· 173 173 | Parser.PIPE | Parser.AMPERSAND | Parser.PLUS | Parser.MINUS | Parser.STAR 174 174 | Parser.SLASH | Parser.PERCENT | Parser.EQEQ | Parser.BANGEQ | Parser.LT 175 175 | Parser.LE | Parser.GT | Parser.GE | Parser.ASSIGN | Parser.COLONEQ 176 - | Parser.IN | Parser.DOT -> 176 + | Parser.IN | Parser.DOT | Parser.WITH -> 177 177 true 178 178 | _ -> false 179 179