bool IgnoreComment() {
var current = Current();
var next = Next();
// Skip // comments - TODO: What about storing them??
if (current == '/' && next == '/') {
while (Current() != '\n')
Forward();
return true;
}
// Skip /* comments */ - TODO: What about storing them?
// Actually, these aren't supported in the original format
if (current == '/' && next == '*') {
while (current != default(char)
&& (current != '*' && next != '/')) {
Forward();
current = Current();
next = Next();
if (current == '\n') {
LastLineBreak = _position;
_line++;
}
}
Forward(2); // Move past the */
return true;
}
return false;
}