]> gitweb.factorcode.org Git - factor.git/commitdiff
multline: fix docs for /*.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sat, 22 Sep 2012 23:45:26 +0000 (16:45 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 22 Sep 2012 23:45:26 +0000 (16:45 -0700)
basis/multiline/multiline-docs.factor
basis/multiline/multiline.factor

index d22cbdf1ae1263e571708d0d165f21282de7d61b..e34b1679de3544caa39b05ec14c7fcb9f3343e9e 100644 (file)
@@ -7,10 +7,13 @@ HELP: STRING:
 
 HELP: /*
 { $syntax "/* comment */" }
-{ $description "Provides C-like comments that can span multiple lines. One caveat is that " { $snippet "/*" } " and " { $snippet "*/" } " are still tokens and must not abut the comment text itself." }
-{ $code "USING: multiline ;"
+{ $description "Provides C-like comments that can span multiple lines. One caveat is that " { $snippet "/*" } " and " { $snippet "*/" } " are still tokens and must not appear in the comment text itself." }
+{ $examples
+    { $example "USING: multiline ;"
            "/* I think that I shall never see"
            "   A poem lovely as a tree. */"
+            ""
+    }
 } ;
 
 HELP: HEREDOC:
index 070b1da03266aadab73fab954dd1163619fb4085..e8f4b02491def88297c02fd5117df718a7364299 100644 (file)
@@ -49,7 +49,7 @@ SYNTAX: STRING:
             0 end (scan-multiline-string)
         ] if*
     ] [ end unexpected-eof ] if ;
-        
+
 :: (parse-multiline-string) ( end-text skip-n-chars -- str )
     [
         lexer get