2018-12-19 14:09:39 +08:00

21 lines
405 B
Plaintext

-- foo bar
# foo bar
(* foo
bar *)
(* foo
(* bar *)
*)
----------------------------------------------------
[
["comment", "-- foo bar"],
["comment", "# foo bar"],
["comment", "(* foo\r\nbar *)"],
["comment", "(* foo\r\n(* bar *)\r\n*)"]
]
----------------------------------------------------
Checks for single-line and multi-line comments.
Also checks for one level of nesting.