50 lines
869 B
Plaintext
50 lines
869 B
Plaintext
"foo"
|
|
"\"foo\""
|
|
|
|
"""
|
|
foo
|
|
"""
|
|
|
|
var a = """
|
|
\"""
|
|
foo""";
|
|
|
|
"""
|
|
The quick brown fox""" + " \n" + """
|
|
jumps over the lazy dog
|
|
"""
|
|
|
|
String empty = """
|
|
""";
|
|
|
|
----------------------------------------------------
|
|
|
|
[
|
|
["string", "\"foo\""],
|
|
["string", "\"\\\"foo\\\"\""],
|
|
|
|
["triple-quoted-string", "\"\"\"\r\nfoo\r\n\"\"\""],
|
|
|
|
["keyword", "var"],
|
|
" a ",
|
|
["operator", "="],
|
|
["triple-quoted-string", "\"\"\"\r\n\\\"\"\"\r\nfoo\"\"\""],
|
|
["punctuation", ";"],
|
|
|
|
["triple-quoted-string", "\"\"\"\r\nThe quick brown fox\"\"\""],
|
|
["operator", "+"],
|
|
["string", "\" \\n\""],
|
|
["operator", "+"],
|
|
["triple-quoted-string", "\"\"\"\r\njumps over the lazy dog\r\n\"\"\""],
|
|
|
|
["class-name", ["String"]],
|
|
" empty ",
|
|
["operator", "="],
|
|
["triple-quoted-string", "\"\"\"\r\n\"\"\""],
|
|
["punctuation", ";"]
|
|
]
|
|
|
|
----------------------------------------------------
|
|
|
|
Checks for strings.
|