Open charlesdaniels opened 6 months ago
This issue has been automatically marked as inactive because it has not had any activity in the last 30 days. Although currently inactive, the issue could still be considered and actively worked on in the future. More details about the use-case this issue attempts to address, the value provided by completing it or possible solutions to resolve it would help to prioritize the issue.
Short description
In some circumstances, use of keywords on the left hand side of comprehensions can cause the error message to be
unexpected identifier token: non-terminated object
rather thanunexpected ___ keyword
. Although OPA is correct to throw an error in this situation, it makes the problem much harder to debug.Steps To Reproduce
Expected behavior
All of the above examples should have emitted
rego_parse_error: unexpected as keyword
errors, and pointed to theas
, not to thebt
, which is an allowed variable name.Additional context