Hash :
a5d7178c
Author :
Date :
2021-01-17T14:34:24
// foobar
(**)
(* foo
bar *)
// the next one is not a comment
(*) (*)
----------------------------------------------------
[
["comment", "// foobar"],
["comment", "(**)"],
["comment", "(* foo\r\nbar *)"],
["comment", "// the next one is not a comment"],
["punctuation", "("],
["operator", "*"],
["punctuation", ")"],
["punctuation", "("],
["operator", "*"],
["punctuation", ")"]
]
----------------------------------------------------
Checks for single-line and multi-line comments.