Fixing multiline error
							parent
							
								
									272b919fb7
								
							
						
					
					
						commit
						ef569240d0
					
				| 
						 | 
				
			
			@ -16,3 +16,6 @@ bar
 | 
			
		|||
world"> ] unit-test
 | 
			
		||||
 | 
			
		||||
[ "hello" "world" ] [ <" hello"> <" world"> ] unit-test
 | 
			
		||||
 | 
			
		||||
[ "\nhi" ] [ <"
 | 
			
		||||
hi"> ] unit-test
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,9 +30,10 @@ PRIVATE>
 | 
			
		|||
:: (parse-multiline-string) ( i end -- j )
 | 
			
		||||
    lexer get line-text>> :> text
 | 
			
		||||
    text [
 | 
			
		||||
        end text i start*
 | 
			
		||||
        [| j | i j text subseq % j end length + ] [
 | 
			
		||||
            text i tail % CHAR: \n ,
 | 
			
		||||
        end text i start* [| j |
 | 
			
		||||
            i j text subseq % j end length +
 | 
			
		||||
        ] [
 | 
			
		||||
            text i short tail % CHAR: \n ,
 | 
			
		||||
            lexer get next-line
 | 
			
		||||
            0 end (parse-multiline-string)
 | 
			
		||||
        ] if*
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue