Fix PEGTL flagParam grammar.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16393
This commit is contained in:
Jeff Young 2024-05-17 11:11:00 +01:00
parent 7e02f1254e
commit c5162f5483
1 changed files with 3 additions and 3 deletions

View File

@ -62,9 +62,9 @@ namespace SIM_MODEL_SERIALIZER_GRAMMAR
quotedStringContent,
one<'"'>> {};
struct flagParam : sor<TAO_PEGTL_ISTRING( "off" ), // VDMOS
TAO_PEGTL_ISTRING( "thermal" ), // VDMOS
TAO_PEGTL_ISTRING( "xpart" )> {}; // BSIM1
struct flagParam : sor<seq<TAO_PEGTL_ISTRING( "off" ), not_at<alnum>>, // VDMOS
seq<TAO_PEGTL_ISTRING( "thermal" ), not_at<alnum>>, // VDMOS
seq<TAO_PEGTL_ISTRING( "xpart" ), not_at<alnum>>> {}; // BSIM1
struct fieldParamValuePair : sor<flagParam,
if_must<param,