| 1 |
"" |
| 2 |
"foo" |
| 3 |
"\"\"" |
| 4 |
|
| 5 |
"""""" |
| 6 |
"""Foo "bar"" baz""" |
| 7 |
""" |
| 8 |
"Foo" |
| 9 |
bar |
| 10 |
""" |
| 11 |
|
| 12 |
// interpolation |
| 13 |
|
| 14 |
"$foo ${bar} ${'$'} ${foobar()}" |
| 15 |
""" |
| 16 |
$foo ${bar} |
| 17 |
${'$'} ${foobar()} |
| 18 |
""" |
| 19 |
|
| 20 |
---------------------------------------------------- |
| 21 |
|
| 22 |
[ |
| 23 |
["string-literal", [ |
| 24 |
["string", "\"\""] |
| 25 |
]], |
| 26 |
["string-literal", [ |
| 27 |
["string", "\"foo\""] |
| 28 |
]], |
| 29 |
["string-literal", [ |
| 30 |
["string", "\"\\\"\\\"\""] |
| 31 |
]], |
| 32 |
|
| 33 |
["string-literal", [ |
| 34 |
["string", "\"\"\"\"\"\""] |
| 35 |
]], |
| 36 |
["string-literal", [ |
| 37 |
["string", "\"\"\"Foo \"bar\"\" baz\"\"\""] |
| 38 |
]], |
| 39 |
["string-literal", [ |
| 40 |
["string", "\"\"\"\r\n\"Foo\"\r\nbar\r\n\"\"\""] |
| 41 |
]], |
| 42 |
|
| 43 |
["comment", "// interpolation"], |
| 44 |
|
| 45 |
["string-literal", [ |
| 46 |
["string", "\""], |
| 47 |
["interpolation", [ |
| 48 |
["interpolation-punctuation", "$"], |
| 49 |
["expression", ["foo"]] |
| 50 |
]], |
| 51 |
["string", " "], |
| 52 |
["interpolation", [ |
| 53 |
["interpolation-punctuation", "${"], |
| 54 |
["expression", ["bar"]], |
| 55 |
["interpolation-punctuation", "}"] |
| 56 |
]], |
| 57 |
["string", " "], |
| 58 |
["interpolation", [ |
| 59 |
["interpolation-punctuation", "${"], |
| 60 |
["expression", [ |
| 61 |
["char", "'$'"] |
| 62 |
]], |
| 63 |
["interpolation-punctuation", "}"] |
| 64 |
]], |
| 65 |
["string", " "], |
| 66 |
["interpolation", [ |
| 67 |
["interpolation-punctuation", "${"], |
| 68 |
["expression", [ |
| 69 |
["function", "foobar"], |
| 70 |
["punctuation", "("], |
| 71 |
["punctuation", ")"] |
| 72 |
]], |
| 73 |
["interpolation-punctuation", "}"] |
| 74 |
]], |
| 75 |
["string", "\""] |
| 76 |
]], |
| 77 |
["string-literal", [ |
| 78 |
["string", "\"\"\"\r\n"], |
| 79 |
["interpolation", [ |
| 80 |
["interpolation-punctuation", "$"], |
| 81 |
["expression", ["foo"]] |
| 82 |
]], |
| 83 |
["string", " "], |
| 84 |
["interpolation", [ |
| 85 |
["interpolation-punctuation", "${"], |
| 86 |
["expression", ["bar"]], |
| 87 |
["interpolation-punctuation", "}"] |
| 88 |
]], |
| 89 |
["string", "\r\n"], |
| 90 |
["interpolation", [ |
| 91 |
["interpolation-punctuation", "${"], |
| 92 |
["expression", [ |
| 93 |
["char", "'$'"] |
| 94 |
]], |
| 95 |
["interpolation-punctuation", "}"] |
| 96 |
]], |
| 97 |
["string", " "], |
| 98 |
["interpolation", [ |
| 99 |
["interpolation-punctuation", "${"], |
| 100 |
["expression", [ |
| 101 |
["function", "foobar"], |
| 102 |
["punctuation", "("], |
| 103 |
["punctuation", ")"] |
| 104 |
]], |
| 105 |
["interpolation-punctuation", "}"] |
| 106 |
]], |
| 107 |
["string", "\r\n\"\"\""] |
| 108 |
]] |
| 109 |
] |
| 110 |
|
| 111 |
---------------------------------------------------- |
| 112 |
|
| 113 |
Checks for raw strings. |