blockComment

convenient function

Parser!(T)
blockComment
(
T
)
(,,
bool collect = true
)

Examples

blockComment can collect the comment itself

auto parser = blockComment("/*", "*/", true);
auto res = parser.parseAll("/*abc*/");
res.success.should == true;
res.fResults[0].should == "/*abc*/";

blockComment can also throw the comment away

auto parser = blockComment("/*", "*/", false);
auto res = parser.parseAll("/*abc*/");
res.success.should == true;
res.fResults.length.should == 0;

Meta