skipSingleLineComment

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

Examples

Test skipping over single-line comments.

import mir.deser.text.tokenizer : tokenizeString, testRead;
auto t = tokenizeString("single-line comment\r\nok");
assert(t.skipSingleLineComment());

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

Test skipping of a single-line comment on the last line

import mir.deser.text.tokenizer : tokenizeString, testRead;
auto t = tokenizeString("single-line comment");
assert(t.skipSingleLineComment());
t.testRead(0);

Meta