Browse Source

Sim: Don't accept lone '.' as Value principal value

7.0
Mikolaj Wielgus 3 years ago
parent
commit
2a5bc9f87e
  1. 3
      eeschema/sim/sim_model.h

3
eeschema/sim/sim_model.h

@ -86,7 +86,8 @@ namespace SIM_MODEL_GRAMMAR
struct fieldInferValuePrincipalValue : seq<// HACK: Because `number` matches empty string,
// ensure it is not empty.
at<sor<tao::pegtl::digit,
one<'.'>>>,
seq<one<'.'>>,
tao::pegtl::digit>>,
// END HACK.
number<SIM_VALUE::TYPE_FLOAT, NOTATION::SI>,
// Hackish: match anything until param-value pairs.

Loading…
Cancel
Save