mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-16 13:58:47 +00:00
cmdref: Format help_script() output as yoscrypt
Or at least all of the synth commands, because they have the same preceding text. Except `synth_fabulous`, because that has unconditional `read_verilog`s at the start. Which seems like a bad idea and and not compatible with `-run`?
This commit is contained in:
parent
b1c9097a12
commit
a2433ba34b
|
@ -974,7 +974,11 @@ struct HelpPass : public Pass {
|
|||
}
|
||||
|
||||
if (!current_buffer.empty()) {
|
||||
current_listing->codeblock(current_buffer, "none", null_source);
|
||||
if (current_buffer.size() > 64 && current_buffer.substr(0, 64).compare("The following commands are executed by this synthesis command:\n\n") == 0) {
|
||||
current_listing->paragraph(current_buffer.substr(0, 62), null_source);
|
||||
current_listing->codeblock(current_buffer.substr(64), "yoscrypt", null_source);
|
||||
} else
|
||||
current_listing->codeblock(current_buffer, "none", null_source);
|
||||
current_buffer = "";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue