From: Clifford Wolf Date: Thu, 6 Feb 2014 13:26:39 +0000 (+0100) Subject: Added support for #-comments in same line as command X-Git-Tag: yosys-0.2.0~70 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c6dea3a0d596c490e09d55b20057e669ec12a23;p=yosys.git Added support for #-comments in same line as command --- diff --git a/kernel/register.cc b/kernel/register.cc index 949d7c628..10ba4f274 100644 --- a/kernel/register.cc +++ b/kernel/register.cc @@ -148,6 +148,8 @@ void Pass::call(RTLIL::Design *design, std::string command) for (char *p = strtok_r(s, " \t\r\n", &saveptr); p; p = strtok_r(NULL, " \t\r\n", &saveptr)) { std::string str = p; int strsz = str.size(); + if (str == "#") + break; if (strsz > 0 && str[strsz-1] == ';') { int num_semikolon = 0; while (strsz > 0 && str[strsz-1] == ';')