Fix PEGTL flagParam grammar.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16393
This commit is contained in:
parent
7e02f1254e
commit
c5162f5483
|
@ -62,9 +62,9 @@ namespace SIM_MODEL_SERIALIZER_GRAMMAR
|
||||||
quotedStringContent,
|
quotedStringContent,
|
||||||
one<'"'>> {};
|
one<'"'>> {};
|
||||||
|
|
||||||
struct flagParam : sor<TAO_PEGTL_ISTRING( "off" ), // VDMOS
|
struct flagParam : sor<seq<TAO_PEGTL_ISTRING( "off" ), not_at<alnum>>, // VDMOS
|
||||||
TAO_PEGTL_ISTRING( "thermal" ), // VDMOS
|
seq<TAO_PEGTL_ISTRING( "thermal" ), not_at<alnum>>, // VDMOS
|
||||||
TAO_PEGTL_ISTRING( "xpart" )> {}; // BSIM1
|
seq<TAO_PEGTL_ISTRING( "xpart" ), not_at<alnum>>> {}; // BSIM1
|
||||||
|
|
||||||
struct fieldParamValuePair : sor<flagParam,
|
struct fieldParamValuePair : sor<flagParam,
|
||||||
if_must<param,
|
if_must<param,
|
||||||
|
|
Loading…
Reference in New Issue