]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/multiline/multiline.factor
basis: use lint.vocabs tool to trim using lists
[factor.git] / basis / multiline / multiline.factor
index 66189cfe7f9fa9e08e7e03065b681934417ba90a..2a563ddfccc2a5f5ea7f9245420e4f423b5b80f3 100644 (file)
@@ -1,8 +1,7 @@
 ! Copyright (C) 2007 Daniel Ehrenberg
 ! See http://factorcode.org/license.txt for BSD license.
-USING: accessors combinators kernel lexer locals make math
-namespaces parser quotations sequences strings.parser
-strings.parser.private words ;
+USING: accessors kernel lexer make math namespaces parser
+quotations sequences strings.parser.private words ;
 IN: multiline
 
 <PRIVATE
@@ -41,10 +40,10 @@ SYNTAX: STRING:
 :: (scan-multiline-string) ( i end lexer -- j )
     lexer line-text>> :> text
     lexer still-parsing? [
-        i text end find-subseq-from [| j |
+        i text end subseq-index-from [| j |
             i j text subseq % j end length +
         ] [
-            text i bound tail % CHAR: \n ,
+            text i index-or-length tail % CHAR: \n ,
             lexer next-line
             0 end lexer (scan-multiline-string)
         ] if*