]> gitweb.factorcode.org Git - factor.git/commitdiff
toml: fix empty arrays.
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 5 Oct 2023 03:04:06 +0000 (22:04 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 5 Oct 2023 03:05:11 +0000 (22:05 -0500)
peg parsers don't pick up all the changes faithfully unless you forget-vocab and load it again

basis/toml/toml.factor

index eec51118d917f5be12c248ab04f808a50e3e178b..8250097188c697e85187c3e1553fff17878831de 100644 (file)
@@ -217,7 +217,7 @@ DEFER: value-parser
 : array-parser ( -- parser )
     [
         "[" token hide ,
-        array-value-parser separator list-of ,
+        array-value-parser separator list-of optional ,
         separator optional hide ,
         ws-comment-newline hide ,
         "]" token hide ,