28 lines
531 B
Plaintext
28 lines
531 B
Plaintext
{
|
|
// Line comment
|
|
"//": "//",
|
|
|
|
/* Block comment */
|
|
"/*": "*/"
|
|
}
|
|
|
|
----------------------------------------------------
|
|
|
|
[
|
|
["punctuation", "{"],
|
|
["comment", "// Line comment"],
|
|
["property", "\"//\""],
|
|
["operator", ":"],
|
|
["string", "\"//\""],
|
|
["punctuation", ","],
|
|
["comment", "/* Block comment */"],
|
|
["property", "\"/*\""],
|
|
["operator", ":"],
|
|
["string", "\"*/\""],
|
|
["punctuation", "}"]
|
|
]
|
|
|
|
----------------------------------------------------
|
|
|
|
Checks for single-line and multi-line comments.
|