From 80148aa75335563106abae8680197e4adf3eb2eb Mon Sep 17 00:00:00 2001 From: Tuomas Siipola Date: Sun, 12 Jan 2020 00:47:52 +0200 Subject: Support escaping in string literals Do not attempt to parse escape sequences thoroughly. Instead let the Rust compiler to check the string literals and provide nice error messages if necessary. --- testing/templates/literals-escape.html | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 testing/templates/literals-escape.html (limited to 'testing/templates') diff --git a/testing/templates/literals-escape.html b/testing/templates/literals-escape.html new file mode 100644 index 0000000..4886cfb --- /dev/null +++ b/testing/templates/literals-escape.html @@ -0,0 +1,2 @@ +{{ '\x41' }}{{ '\n' }}{{ '\r' }}{{ '\t' }}{{ '\\' }}{{ '\0' }}{{ '\u{2665}' }}{{ '\'' }}{{ '\"' }}{{ '"' }} +{{ "\x41\n\r\t\\\0\u{2665}\'\"'" }} -- cgit