Bug fix for %i(node1) in an A instance.

Don't do i() replacement in an A instance as shown above.
This commit is contained in:
Holger Vogt 2021-06-04 11:47:06 +02:00
parent e0d5d98b33
commit 9abb61d6ac
1 changed files with 7 additions and 3 deletions

View File

@ -7455,9 +7455,13 @@ static void inp_meas_current(struct card *deck)
/* we have found it, but not (in error) at the beginning of the
* line */
if (s && s > v) {
/* '{' if at beginning of expression, '=' possible in B-line
*/
if (is_arith_char(s[-1]) || s[-1] == '{' || s[-1] == '=' ||
/* %i( may be part of the node definition in a XSPICE instance, so skip it here */
if (*curr_line == 'a' && s[-1] == '%') {
s++;
continue;
}
/* '{' if at beginning of expression, '=' possible in B-line */
else if (is_arith_char(s[-1]) || s[-1] == '{' || s[-1] == '=' ||
isspace_c(s[-1])) {
s += 2;
if (*s == 'v') {