Fix PEGTL flagParam grammar.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16393

(cherry picked from commit c5162f5483)
This commit is contained in:
Jeff Young
2024-05-17 11:20:26 +01:00
parent 3e50a03ce7
commit 341f102d79
+3 -3
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,