mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-17 08:11:45 +03:00
4ceccaf00c
Add wrap on file end use rust-style raw string syntax use swift style syntax raw string Update src/Parser/Support.idr Co-authored-by: André Videla <andre.videla@gmail.com> Escape line wrap Resolve conflict
35 lines
485 B
Idris
35 lines
485 B
Idris
module RawString
|
|
|
|
withWrap : String
|
|
withWrap = "foo
|
|
bar"
|
|
|
|
withNoWrap : String
|
|
withNoWrap = "foo \
|
|
bar"
|
|
|
|
withIndent : String
|
|
withIndent = "foo
|
|
bar"
|
|
|
|
withEscape : String
|
|
withEscape = #""foo"\#n
|
|
\bar"#
|
|
|
|
withEscapeNoWrap : String
|
|
withEscapeNoWrap = #""foo" \#
|
|
\bar"#
|
|
|
|
test : IO ()
|
|
test =
|
|
do
|
|
putStrLn withWrap
|
|
putStrLn withNoWrap
|
|
putStrLn withIndent
|
|
putStrLn withEscape
|
|
putStrLn withEscapeNoWrap
|
|
putStrLn ##"
|
|
name: #"foo"
|
|
version: "bar"
|
|
bzs: \#\'a\n\t\\'"##
|