]> gitweb.factorcode.org Git - factor.git/commitdiff
prettyprint-docs: fix the obsolete parser code in an example
authorAlexander Iljin <ajsoft@yandex.ru>
Sun, 24 Mar 2019 23:54:50 +0000 (00:54 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 25 Mar 2019 00:00:22 +0000 (17:00 -0700)
basis/prettyprint/prettyprint-docs.factor

index d91203bca572662156eb84288e7ddc6102c7bdaa..b9235f569cf12dd9692ce2517e71cf83fbf5de39 100644 (file)
@@ -113,10 +113,10 @@ ARTICLE: "prettyprint-literal" "Literal prettyprinting protocol"
     "TUPLE: rect w h ;"
     ""
     "SYNTAX: RECT["
-    "    scan-word"
-    "    scan-word \\ * assert="
-    "    scan-word"
-    "    scan-word \\ ] assert="
+    "    scan-number"
+    "    scan-token \"*\" assert="
+    "    scan-number"
+    "    scan-token \"]\" assert="
     "    <rect> suffix! ;"
 }
 "An example literal might be:"