Allow .ends to be preceeded by whitespace.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16560
This commit is contained in:
Jeff Young 2024-05-13 13:35:54 +01:00
parent cae3be6bac
commit b934914c59
1 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,8 @@ namespace SPICE_GRAMMAR
struct dotSubcktPinName : seq<not_at<dotSubcktParams>,
plus<not_at<space>, any>> {};
struct dotSubcktPinSequence : list<dotSubcktPinName, sep> {};
struct dotSubcktEnd : seq<TAO_PEGTL_ISTRING( ".ends" ),
struct dotSubcktEnd : seq<opt<sep>,
TAO_PEGTL_ISTRING( ".ends" ),
until<newline>> {};
struct spiceUnit;
struct dotSubckt : seq<opt<sep>,