diff options
author | Martin Odersky <odersky@gmail.com> | 2012-07-26 16:01:27 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2012-07-27 17:04:36 +0200 |
commit | b964bac5e295df92d304e97657d01481d63f2d62 (patch) | |
tree | 5ceba7e649c5916f0f04dfed11364639f4e29075 /test/files/run | |
parent | e896c0ab2d36740207f91086262e9feb4fc1c32d (diff) | |
download | scala-b964bac5e295df92d304e97657d01481d63f2d62.tar.gz scala-b964bac5e295df92d304e97657d01481d63f2d62.tar.bz2 scala-b964bac5e295df92d304e97657d01481d63f2d62.zip |
Raw string interpolator
Adds a raw string interpolator raw"..." which does not do any escape sequence processing.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/rawstrings.check | 1 | ||||
-rw-r--r-- | test/files/run/rawstrings.scala | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/files/run/rawstrings.check b/test/files/run/rawstrings.check new file mode 100644 index 0000000000..36e63594df --- /dev/null +++ b/test/files/run/rawstrings.check @@ -0,0 +1 @@ +[\n\t'"$] diff --git a/test/files/run/rawstrings.scala b/test/files/run/rawstrings.scala new file mode 100644 index 0000000000..9df64f6625 --- /dev/null +++ b/test/files/run/rawstrings.scala @@ -0,0 +1,3 @@ +object Test extends App { + println(raw"[\n\t'${'"'}$$]") +} |