Comments, var access, start on objects
This commit is contained in:
@@ -60,6 +60,10 @@ Lexer::Lexer(std::string in) : file(std::move(in)) {
|
||||
if (!buf.empty()) content.push_back(buf);
|
||||
if (c.value() != ' ') content.emplace_back(1, c.value());
|
||||
buf.clear();
|
||||
} else if (c.value() == '/' && peek(0).has_value() && peek(0).value() == '/') {
|
||||
while (c.has_value() && c.value() != '\n') {
|
||||
c = consume();
|
||||
}
|
||||
} else {
|
||||
buf += c.value();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user