diff --git a/eeschema/sim/spice_grammar.h b/eeschema/sim/spice_grammar.h index 1a7fcfee6a..0d1e3d9bde 100644 --- a/eeschema/sim/spice_grammar.h +++ b/eeschema/sim/spice_grammar.h @@ -94,6 +94,11 @@ namespace SPICE_GRAMMAR struct dotModelType : plus {}; + struct numparamBracedExpr : seq, + star>>, + one<'}'>> {}; + // Ngspice has some heuristic logic to allow + and - in tokens. We replicate that here. struct tokenStart : seq>, opt {}; struct paramValuePair : seq inline constexpr auto errorMessage = "expected newline not followed by a line continuation"; template <> inline constexpr auto errorMessage = - "expected token separator (typ. one or more whitespace, parenthesis, '=', ',', line continuation)"; + "expected token separator (one or more whitespace, parenthesis, '=', ',', line continuation)"; template <> inline constexpr auto errorMessage> = ""; template <> inline constexpr auto errorMessage = "expected model name"; template <> inline constexpr auto errorMessage = "expected model type";