Ignore line comments in pin defs and param defs.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19584
This commit is contained in:
Jeff Young
2025-01-11 13:30:45 +00:00
parent 2f96dfd5cb
commit d83a2a90cb
+3 -1
View File
@@ -178,7 +178,8 @@ namespace SPICE_GRAMMAR
opt<sep>,
newline>> {};
struct dotSubcktParamValuePair : seq<param,
struct dotSubcktParamValuePair : seq<not_at<eolfComment>,
param,
// TODO: Check if these `star<space>`s match Ngspice's
// behavior.
star<space>,
@@ -192,6 +193,7 @@ namespace SPICE_GRAMMAR
opt<sep>>,
dotSubcktParamValuePairs> {};
struct dotSubcktPinName : seq<not_at<dotSubcktParams>,
not_at<eolfComment>,
plus<not_at<space>, any>> {};
struct dotSubcktPinSequence : list<dotSubcktPinName, sep> {};
struct dotSubcktEnd : seq<opt<sep>,