prism/tests/languages/psl/string_feature.test

32 lines
529 B
Plaintext

"abc"
"a \"bc\""
"a\nbc"
"a\invalid"
"foo # not a comment"
"multi
line string"
----------------------------------------------------
[
["string", ["\"abc\""]],
["string", [
"\"a ",
["symbol", "\\\""],
"bc",
["symbol", "\\\""],
"\""
]],
["string", [
"\"a",
["symbol", "\\n"],
"bc\""
]],
["string", ["\"a\\invalid\""]],
["string", ["\"foo # not a comment\""]],
["string", ["\"multi\r\nline string\""]]
]
----------------------------------------------------
Test for strings