Allow a limited set of un-braced expressions in SPICE model values.

Fixes https://gitlab.com/kicad/code/kicad/issues/13768
This commit is contained in:
Jeff Young 2023-02-04 19:49:09 +00:00
parent f588da2bef
commit 56a1cdb4dc
1 changed files with 3 additions and 3 deletions

View File

@ -118,11 +118,11 @@ namespace SPICE_GRAMMAR
struct token : seq<tokenStart,
star<not_at<eolf>,
not_at<backslashContinuation>,
not_one<' ', '\t', '=', '(', ')', ',', '*', '/', '^', ';'>>>
{};
not_one<' ', '\t', '=', '(', ')', ',', ';'>>> {};
// Param names cannot be `token` because LTspice models contain spurious values without
// parameter names, which we need to skip.
// parameter names, which we need to skip, and because tokens can include a very limited
// subset of un-braced expressions
struct param : identifier {};
struct paramValue : sor<bracedExpr,
vectorExpr,