Multiline strings work now, both single and triple quotes. Triple quotes also correctly escapes other quotes.
This commit is contained in:
10
tests/test_multiline_strings.expected_results
Normal file
10
tests/test_multiline_strings.expected_results
Normal file
@@ -0,0 +1,10 @@
|
||||
multi
|
||||
line
|
||||
first
|
||||
second
|
||||
third
|
||||
|
||||
How about this?
|
||||
multi line?
|
||||
inner quote "
|
||||
|
||||
18
tests/test_multiline_strings.krak
Normal file
18
tests/test_multiline_strings.krak
Normal file
@@ -0,0 +1,18 @@
|
||||
import io:*
|
||||
|
||||
fun main():int {
|
||||
println("multi
|
||||
line")
|
||||
var str = "first
|
||||
second
|
||||
third"
|
||||
println(str)
|
||||
var tripQute = """
|
||||
How about this?
|
||||
multi line?
|
||||
inner quote "
|
||||
"""
|
||||
|
||||
println(tripQute)
|
||||
return 0
|
||||
}
|
||||
Reference in New Issue
Block a user