Files
regorus/tests/lexer/cases/rawstring.yaml
Ming-Wei Shih c0972ad2ba Update license to MIT
Signed-off-by: Ming-Wei Shih <mishih@microsoft.com>
2023-02-09 19:40:35 +00:00

38 lines
720 B
YAML

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT 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 `