From 8aaca0509c1343c9a2265fb3a20da46f179bac82 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 13 May 2024 21:41:40 +0100 Subject: [PATCH] More PEGTL tomfoolery. --- eeschema/sim/spice_grammar.h | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/eeschema/sim/spice_grammar.h b/eeschema/sim/spice_grammar.h index 2a531cacb1..e0f32f3a5f 100644 --- a/eeschema/sim/spice_grammar.h +++ b/eeschema/sim/spice_grammar.h @@ -156,6 +156,17 @@ namespace SPICE_GRAMMAR opt, newline>> {}; + struct dotModelCPL : seq, + if_must, + opt, + opt, + newline>> {}; + struct dotModel : seq, if_must, newline>> {}; - struct dotModelCPL : seq, - if_must, - opt, - newline>> {}; - - - struct dotSubcktParamValuePair : seq`s match Ngspice's // behavior. @@ -216,6 +214,7 @@ namespace SPICE_GRAMMAR struct modelUnit : seq, sor> {}; @@ -305,7 +304,9 @@ namespace SPICE_GRAMMAR ""; template <> inline constexpr auto errorMessage> = ""; - template <> inline constexpr auto errorMessage> = + template <> inline constexpr auto errorMessage> = + ""; + template <> inline constexpr auto errorMessage> = ""; template <> inline constexpr auto errorMessage> = "";