Sim: Don't match newlines in model names

This caused errors in AKO models with no overrides.
This commit is contained in:
Mikolaj Wielgus 2022-10-20 03:55:47 +02:00
parent 7ad927671d
commit 662f6c7d83
1 changed files with 5 additions and 2 deletions

View File

@ -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,