mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 11:55:30 +00:00
Fixed macro reference problem with reference arguments
This commit is contained in:
parent
0dab91d8d9
commit
4540874e7e
BIN
docs/native.wasm
BIN
docs/native.wasm
Binary file not shown.
3
peglib.h
3
peglib.h
@ -2822,6 +2822,9 @@ inline void ReferenceChecker::visit(Reference &ope) {
|
|||||||
error_s[ope.name_] = ope.s_;
|
error_s[ope.name_] = ope.s_;
|
||||||
error_message[ope.name_] = "'" + ope.name_ + "' is not macro.";
|
error_message[ope.name_] = "'" + ope.name_ + "' is not macro.";
|
||||||
}
|
}
|
||||||
|
for (auto arg : ope.args_) {
|
||||||
|
arg->accept(*this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user