Skip to content

Commit

Permalink
loadlib の構文の間違いを修正した
Browse files Browse the repository at this point in the history
  • Loading branch information
noya2ruler committed Jun 4, 2024
1 parent e35cd43 commit 91d843e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/syntax/LoadLib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ struct LoadLib : public ASTNode {
struct LoadLibSyntax : public BlockSyntax {
bool operator()(Reader &read) const override {
if (!read.is_line_begin()) return false;
if (rtrim(read.get_row()) == ":::lib") return true;
if (rtrim(read.get_row()) == ":::loadlib") return true;
return false;
}
void operator()(Reader &read, ASTNode &ast) const override {
std::vector<std::string> libs;

// skip :::lib
// skip :::loadlib
read.move_next_line();

if (read.is_eof()){
Expand Down

0 comments on commit 91d843e

Please sign in to comment.