From 209ff933e7aad1f93b728154e9904a244dc3fb07 Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Fri, 21 Oct 2022 18:39:40 +0200 Subject: [PATCH] Sim: Ignore everything between principal value and parameter-value pairs --- eeschema/sim/sim_model.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/eeschema/sim/sim_model.h b/eeschema/sim/sim_model.h index 1c5b61501e..93cbf08982 100644 --- a/eeschema/sim/sim_model.h +++ b/eeschema/sim/sim_model.h @@ -84,12 +84,18 @@ namespace SIM_MODEL_GRAMMAR struct fieldInferValueType : plus {}; struct fieldInferValuePrincipalValue : seq>>, // END HACK. number, - star, not_at>, any>> {}; + // Hackish: match anything until param-value pairs. + // Because the user may want to write something like + // "10k 30% 30mW w=0.4", but we care only about the + // "10k" and "w=0.4". + star, + any>> {}; struct fieldInferValue : sor>,