Files
regorus/tests/lexer/cases/rawstring.yaml
T
Anand Krishnamoorthi cb0b3a1790 Code from github.com/anakrish/rego-rs
Authored by anakrish and mingweishih

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
2023-02-09 10:56:54 -08:00

38 lines
721 B
YAML

# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
cases:
- note: positive
rego: |
#Empty
``
# Multiline
` This is m
u
lti
line`
`"String within rawstring"`
# Comment retained
`
Hello #retained comment!
`
# Utf-8
`Hello, சிக்கி
`
tokens: [ "", " This is m\n u\n lti\nline",
"\"String within rawstring\"",
"\nHello #retained comment!\n",
"Hello, சிக்கி\n",
""]
kinds: [RawString, RawString, RawString, RawString, RawString, Eof]
- note: unclosed
rego: |
`
Peekoo Maharaaj ki jai ho
tokens: []
error: unmatched `