thinca | cf8695d | 2024-01-28 18:57:23 +0100 | [diff] [blame] | 1 | " String |
| 2 | |
| 3 | echo 'It''s a string' |
| 4 | echo 'tab: \t, new line: \n, backslash: \\' |
| 5 | echo "tab: \t, new line: \n, backslash: \\" |
| 6 | |
| 7 | " String interpolation |
| 8 | |
| 9 | echo 'Don''t highlight interpolation: {{ {1 + 2} }}' |
| 10 | echo "Don't highlight interpolation: {{ {1 + 2} }}" |
| 11 | echo $'Highlight interpolation:\t{{ { string({'foo': 'bar'}) } }}' |
| 12 | echo $'Highlight interpolation:\t{{ { $'nested: {{ {1 + 2} }}' } }}' |
| 13 | echo $"Highlight interpolation:\t{{ { string({"foo": "bar"}) } }}" |
| 14 | echo $"Highlight interpolation:\t{{ { $"nested: {{ {1 + 2} }}" } }}" |