Closed brohacz closed 10 months ago
Plugin reports an error for := assignment after else keyword.
:=
else
No error reported as shown here: https://play.openpolicyagent.org/p/AfCBX28GQh
package play test := "allow" { false } else := "deny"
opa-idea-plugin uses grammar for OPA from version older than v0.40.0. In version v0.40.0 the grammar was changed to allow := assignment operator after else keyword: https://www.openpolicyagent.org/docs/v0.40.0/policy-reference/#grammar
opa-idea-plugin
Actual Behavior
Plugin reports an error for
:=
assignment afterelse
keyword.Expected Behavior
No error reported as shown here: https://play.openpolicyagent.org/p/AfCBX28GQh
How To Reproduce
Environment
Additional context
opa-idea-plugin
uses grammar for OPA from version older than v0.40.0. In version v0.40.0 the grammar was changed to allow:=
assignment operator afterelse
keyword: https://www.openpolicyagent.org/docs/v0.40.0/policy-reference/#grammarSuggested labels
bug #area/grammar