Branch
Hash :
3a876df0
Author :
Date :
2021-12-05T14:42:04
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
""
"fo\"o"
"\xe2\x88"
"""foo"""
"""fo"o
bar"""
`echo hello`
`echo "foo bar"`
# non-standard string
s"\g<0>1"
b"DATA\xff\u2200"
v"0.3-"
raw"\\ \\\""
----------------------------------------------------
[
["string", "\"\""],
["string", "\"fo\\\"o\""],
["string", "\"\\xe2\\x88\""],
["string", "\"\"\"foo\"\"\""],
["string", "\"\"\"fo\"o\r\nbar\"\"\""],
["string", "`echo hello`"],
["string", "`echo \"foo bar\"`"],
["comment", "# non-standard string"],
["string", "s\"\\g<0>1\""],
["string", "b\"DATA\\xff\\u2200\""],
["string", "v\"0.3-\""],
["string", "raw\"\\\\ \\\\\\\"\""]
]
----------------------------------------------------
Checks for strings and characters.