]> gitweb.factorcode.org Git - factor.git/commitdiff
lexer: cleanup docs for $slots.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 27 May 2020 16:47:38 +0000 (09:47 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 27 May 2020 16:59:42 +0000 (09:59 -0700)
core/lexer/lexer-docs.factor

index 951fb72335a2c95fee9aa20e9687c861d482289e..e3ed29a2e84c061e3f632bc4a79cd72317076403 100644 (file)
@@ -5,10 +5,10 @@ IN: lexer
 HELP: lexer
 { $var-description "Stores the current " { $link lexer } " instance." }
 { $class-description "An object for tokenizing parser input. It has the following slots:"
-    { $list
-        { { $snippet "text" } " - the lines being parsed; an array of strings" }
-        { { $snippet "line" } " - the line number being parsed; unlike most indices this is 1-based for friendlier error reporting and integration with text editors" }
-        { { $snippet "column" } " - the current column position, zero-based" }
+    { $slots
+        { "text" "the lines being parsed; an array of strings" }
+        { "line" "the line number being parsed; unlike most indices this is 1-based for friendlier error reporting and integration with text editors" }
+        { "column" "the current column position, zero-based" }
     }
 "Custom lexing can be implemented by delegating a tuple to an instance of this class and implementing the " { $link skip-word } " and " { $link skip-blank } " generic words." } ;