Hash :
81cf2344
Author :
Date :
2020-05-19T01:58:59
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
""
"fo\"o"
"\xe2\x88"
'x'
'\''
'\u2200'
'\x80'
'\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"\\ \\\""
# not a character
A'b
A'b''
----------------------------------------------------
[
["string", "\"\""],
["string", "\"fo\\\"o\""],
["string", "\"\\xe2\\x88\""],
["string", "'x'"],
["string", "'\\''"],
["string", "'\\u2200'"],
["string", "'\\x80'"],
["string", "'\\xe2\\x88'"],
["string", "'∀'"],
["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\"\\\\ \\\\\\\"\""],
["comment", "# not a character"],
"\r\nA",
["operator", "'"],
"b\r\nA",
["operator", "'"],
"b",
["operator", "'"],
["operator", "'"]
]
----------------------------------------------------
Checks for strings and characters.