Parameter names in .model lines may be preceeded

by spaces, but also by '('
This commit is contained in:
Holger Vogt 2018-01-27 21:47:48 +01:00
parent ff00ec3aed
commit bb162de1d8
1 changed files with 3 additions and 1 deletions

View File

@ -1648,7 +1648,9 @@ inp_parse_temper(struct card *card, struct pt_temper **modtlist_p, struct pt_tem
}
/* go back over param name */
char *end_param = skip_back_ws(eq_ptr, curr_line);
char *beg_param = skip_back_non_ws(end_param, curr_line);
char *beg_param = eq_ptr;
while (beg_param > curr_line && !isspace_c(beg_param[-1]) && beg_param[-1] != '(')
beg_param--;
/* find end of expression string */
char *beg_expr = skip_ws(eq_ptr + 1);
char *end_expr = find_assignment(beg_expr);