-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
every
isn't treated as a reserved keyword when rego.v1
is imported
#6652
Comments
package play
import rego.v1
if if "if" 😆
|
💭 Maybe |
Another wrinkle: if you use package play
import rego.v1
p if {
every x in [1, 2, 3] {
x < 4
}
}
every := 42 ->
It's not the expected We get the same error if we import |
I don't really see the point in rejecting keywords that are part of a ref, though .. package play
p if {
input.import.x == 1
} ->
Unless there is some reason not to that I'm missing, I'd like to loosen that constraint. |
The following module should produce a
rego_parse_error: unexpected every keyword
error:but it doesn't.
The text was updated successfully, but these errors were encountered: