read_verilog: fix spaces in macros being deleted

This commit is contained in:
nick
2026-10-02 13:07:18 -06:00
parent a45c5f3726
commit d0cb919bdb
+5 -1
View File
@@ -452,9 +452,13 @@ static void input_file(std::istream &f, std::string filename)
// the argument list); false if we finished with ','.
static bool read_argument(std::string &dest)
{
skip_spaces(true);
std::vector<char> openers;
for (;;) {
skip_spaces(true);
std::string skipped = skip_spaces(true);
if (skipped != "") {
dest += " ";
}
std::string tok = next_token(true);
if (tok == ")") {
if (openers.empty()) {