mirror of https://github.com/YosysHQ/yosys.git
A "#" does start a comment, not a label.
This commit is contained in:
parent
31755ed1cf
commit
cfdc9fc50e
|
@ -698,6 +698,9 @@ static void handle_label(std::string &command, bool &from_to_active, const std::
|
|||
while (pos < GetSize(command) && (command[pos] == ' ' || command[pos] == '\t'))
|
||||
pos++;
|
||||
|
||||
if (pos < GetSize(command) && command[pos] == '#')
|
||||
return;
|
||||
|
||||
while (pos < GetSize(command) && command[pos] != ' ' && command[pos] != '\t' && command[pos] != '\r' && command[pos] != '\n')
|
||||
label += command[pos++];
|
||||
|
||||
|
|
Loading…
Reference in New Issue