File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -420,6 +420,8 @@ def matchTest(x: Int): String = x match {
420
420
case A if a == 1 =>
421
421
case A if a == 2 => 2
422
422
case ((i, _)) => i
423
+ case s"$l1 -- $l2" =>
424
+ l1 + l2
423
425
case _ =>
424
426
val x = "many"
425
427
"more"
@@ -440,6 +442,18 @@ def matchTest(x: Int): String = x match {
440
442
(case_clause (identifier) (guard (infix_expression (identifier) (operator_identifier) (integer_literal))))
441
443
(case_clause (identifier) (guard (infix_expression (identifier) (operator_identifier) (integer_literal))) (integer_literal))
442
444
(case_clause (tuple_pattern (tuple_pattern (identifier) (wildcard))) (identifier))
445
+ (case_clause
446
+ (interpolated_string_expression
447
+ (identifier)
448
+ (interpolated_string
449
+ (interpolation
450
+ (identifier))
451
+ (interpolation
452
+ (identifier))))
453
+ (infix_expression
454
+ (identifier)
455
+ (operator_identifier)
456
+ (identifier)))
443
457
(case_clause (wildcard) (val_definition (identifier) (string)) (string))))))
444
458
445
459
===============================
Original file line number Diff line number Diff line change @@ -777,6 +777,7 @@ module.exports = grammar({
777
777
_pattern : $ => choice (
778
778
$ . _identifier ,
779
779
$ . stable_identifier ,
780
+ $ . interpolated_string_expression ,
780
781
$ . capture_pattern ,
781
782
$ . tuple_pattern ,
782
783
$ . case_class_pattern ,
@@ -1317,7 +1318,7 @@ module.exports = grammar({
1317
1318
)
1318
1319
) ,
1319
1320
1320
- string : $ =>
1321
+ string : $ =>
1321
1322
choice (
1322
1323
$ . _simple_string ,
1323
1324
$ . _simple_multiline_string
Original file line number Diff line number Diff line change 3
3
# This is an integration test to generally check the quality of parsing.
4
4
5
5
SCALA_SCALA_LIBRARY_EXPECTED=100
6
- SCALA_SCALA_COMPILER_EXPECTED=66
6
+ SCALA_SCALA_COMPILER_EXPECTED=67
7
7
DOTTY_COMPILER_EXPECTED=65
8
8
9
9
if [ ! -d " $SCALA_SCALA_DIR " ]; then
You can’t perform that action at this time.
0 commit comments