skipBlockComment

Undocumented in source. Be warned that the author may not have intended to support it.
@safe @nogc pure
bool
skipBlockComment

Examples

Test skipping of an invalid comment

import mir.deser.text.tokenizer : tokenizeString;
auto t = tokenizeString("this is a string that never ends");
assert(!t.skipBlockComment());

Test skipping of a multi-line comment

import mir.deser.text.tokenizer : tokenizeString, testRead;
auto t = tokenizeString("this is/ a\nmulti-line /** comment.**/ok");
assert(t.skipBlockComment());

t.testRead('o');
t.testRead('k');
t.testRead(0);

Meta