@@ -80,6 +80,7 @@ var tokens = [...]elt{
8080 {token .STRING , `"foo" "bar"` , literal , "=" , " " },
8181 {token .STRING , "foo\\ \n bar" , literal , "=" , "" },
8282 {token .STRING , "foo\\ \r \n bar" , literal , "=" , "" },
83+ {token .STRING , `\"foobar\"` , literal , "=" , "" },
8384}
8485
8586const whitespace = " \t \n \n \n " // to separate tokens
@@ -381,8 +382,8 @@ var errors = []struct {
381382 {"\" \n " , token .STRING , 0 , "string not terminated" },
382383 {`="` , token .STRING , 1 , "string not terminated" },
383384 {"=\" \n " , token .STRING , 1 , "string not terminated" },
384- {"=\\ " , token .STRING , 1 , "unquoted '\\ ' must be followed by new line" },
385- {"=\\ \r " , token .STRING , 1 , "unquoted '\\ ' must be followed by new line" },
385+ {"=\\ " , token .STRING , 1 , "unquoted '\\ ' must be followed by new line or double quote " },
386+ {"=\\ \r " , token .STRING , 1 , "unquoted '\\ ' must be followed by new line or double quote " },
386387 {`"\z"` , token .STRING , 2 , "unknown escape sequence" },
387388 {`"\a"` , token .STRING , 2 , "unknown escape sequence" },
388389 {`"\b"` , token .STRING , 2 , "unknown escape sequence" },
0 commit comments