From 0ceda013b19957633d13d713002feda02fe11bea Mon Sep 17 00:00:00 2001 From: deathaxe Date: Tue, 7 Jan 2025 20:28:39 +0100 Subject: [PATCH] [Scala] Add some escape tests for triple quoted --- Scala/syntax_test_scala.scala | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Scala/syntax_test_scala.scala b/Scala/syntax_test_scala.scala index dde555ec96..a85d5d9e1f 100644 --- a/Scala/syntax_test_scala.scala +++ b/Scala/syntax_test_scala.scala @@ -367,15 +367,18 @@ type Foo = Bar[A] forSome { type A } "bad escaping: \p" // ^ invalid.illegal.lone-escape.scala + """testing""" +// ^^^^^^^^^^^^^ meta.string.scala string.quoted.triple.scala + """escaped in triple: \u1221 \125 \n""" //^^^ punctuation.definition.string.begin.scala // ^^^^^^ constant.character.escape.scala -// ^^^ - constant.character.escape.scala -// ^^ - constant.character.escape.scala +// ^^^^ - constant.character +// ^^ - constant.character // ^^^ punctuation.definition.string.end.scala - """testing""" -// ^^^^^^^^^^^^^ meta.string.scala string.quoted.triple.scala + """not bad in triple: \p""" +// ^^ - constant.character - invalid s"testing $a ${42}" // ^^^^^^^^^^ meta.string.interpolated.scala string.quoted.double.scala - meta.interpolation