OPA Conformance: Do not interpret # within regular string (#216)

fixes #213

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2024-04-25 23:51:52 -07:00
committed by GitHub
parent 7fde3382f6
commit 744dad6126
2 changed files with 4 additions and 6 deletions
+3 -5
View File
@@ -56,11 +56,9 @@ cases:
- note: comments-within-rstring
rego: |
#Comments aren't allowed within strings,
"#This is not a comment
"#c
tokens:
error: unmatched "
#Comments aren't lexed within raw strings.
"#This is not a comment"#c
tokens: ["#This is not a comment", ""]
- note: comment-integer-break
rego: |