Decoder: flag invalid carriage returns in literal strings (#673)

This commit is contained in:
Cameron Moore
2021-11-23 21:41:59 -06:00
committed by GitHub
parent 64fe47161f
commit 8645d6376b
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -2544,10 +2544,18 @@ world'`,
desc: `carriage return inside basic key`,
data: "\"\r\"=42",
},
{
desc: `carriage return inside literal key`,
data: "'\r'=42",
},
{
desc: `carriage return inside basic string`,
data: "A = \"\r\"",
},
{
desc: `carriage return inside literal string`,
data: "A = '\r'",
},
{
desc: `carriage return in comment`,
data: "# this is a test\ra=1",