From d83a2a90cb4dfe2af2fa4256cbf302b7ef55d446 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 11 Jan 2025 13:29:00 +0000 Subject: [PATCH] Ignore line comments in pin defs and param defs. Fixes https://gitlab.com/kicad/code/kicad/-/issues/19584 --- eeschema/sim/spice_grammar.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eeschema/sim/spice_grammar.h b/eeschema/sim/spice_grammar.h index 2ddf4af872..19a50e218d 100644 --- a/eeschema/sim/spice_grammar.h +++ b/eeschema/sim/spice_grammar.h @@ -178,7 +178,8 @@ namespace SPICE_GRAMMAR opt, newline>> {}; - struct dotSubcktParamValuePair : seq, + param, // TODO: Check if these `star`s match Ngspice's // behavior. star, @@ -192,6 +193,7 @@ namespace SPICE_GRAMMAR opt>, dotSubcktParamValuePairs> {}; struct dotSubcktPinName : seq, + not_at, plus, any>> {}; struct dotSubcktPinSequence : list {}; struct dotSubcktEnd : seq,