mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-23 08:44:48 -06:00
917dfc445f
Priot to this change, the `fmt` command panicked when rego files processed contained a comprehension written on multiple lines with comments in these lines. An example of such comprehension is presented in #5798. After this change, comprehensions on multiple lines are not moved in a single line, in order to correcly handle comments, similarly to what has been already done in #3864. Fixes: #5798 Signed-off-by: Gianluca Oldani <oldanigianluca@gmail.com>