Hash :
13d99915
Author :
Date :
2018-03-26T21:15:10
#!/usr/bin/env rdmd
/++/
/+ foo
bar +/
/+ foo
/+
bar +/
baz +/
// This q{is} a comment
// This /* is a */ comment
----------------------------------------------------
[
["comment", "#!/usr/bin/env rdmd"],
["comment", "/++/"],
["comment", "/+ foo\r\nbar +/"],
["comment", "/+ foo\r\n\t/+\r\n\tbar +/\r\nbaz +/"],
["comment", "// This q{is} a comment"],
["comment", "// This /* is a */ comment"]
]
----------------------------------------------------
Checks for shebang and nestable multi-line comments.
Other comments are tested in clike.