Browse Source

Sim: Don't match newlines in model names

This caused errors in AKO models with no overrides.
7.0
Mikolaj Wielgus 3 years ago
parent
commit
662f6c7d83
  1. 7
      eeschema/sim/spice_grammar.h

7
eeschema/sim/spice_grammar.h

@ -88,7 +88,7 @@ namespace SPICE_GRAMMAR
struct sep : sor<plus<continuation>,
garbage> {};
struct modelName : plus<not_at<garbage>, any> {};
struct modelName : plus<not_at<garbage>, not_at<eolf>, any> {};
struct dotModelType : plus<alpha> {};
@ -126,7 +126,10 @@ namespace SPICE_GRAMMAR
opt<sep,
dotModelType>,
opt<sep,
paramValuePairs>>> {};
paramValuePairs>,
opt<sep>,
newline>> {};
struct dotModel : seq<opt<sep>,
if_must<TAO_PEGTL_ISTRING( ".model" ),
sep,

Loading…
Cancel
Save