summaryrefslogtreecommitdiff
path: root/tests/examplefiles/interp.scala
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-10-07 13:00:01 -0700
committerTim Hatch <tim@timhatch.com>2014-10-07 13:00:01 -0700
commit6da701e9ee6865df608a332e03b58c03d5db89b2 (patch)
tree2dea11e86a0477a2bea7a4381efa1b370a2fda5f /tests/examplefiles/interp.scala
parentf70bf51ec7d50aadaafa668d482619ed88b72618 (diff)
downloadpygments-6da701e9ee6865df608a332e03b58c03d5db89b2.tar.gz
ScalaLexer: Improve interpolated strings, adding triplequoted strings and test file.
Diffstat (limited to 'tests/examplefiles/interp.scala')
-rw-r--r--tests/examplefiles/interp.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/examplefiles/interp.scala b/tests/examplefiles/interp.scala
new file mode 100644
index 00000000..4131b75e
--- /dev/null
+++ b/tests/examplefiles/interp.scala
@@ -0,0 +1,10 @@
+val n = 123;
+val a = s"n=$n";
+val a2 = s"n=$n''";
+val b = s"""n=$n""";
+val c = f"n=$n%f";
+val d = f"""n=$n%f""";
+val d2 = s"""a"""";
+val e = s"abc\u00e9";
+val f = s"a${n}b";
+val g = s"a${n + 1}b";