File tree 2 files changed +24
-2
lines changed
2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -815,7 +815,7 @@ export const scalaTmLanguage: TmLanguage = {
815
815
}
816
816
} ,
817
817
{ // val x1[, x2, x3, ...] = y
818
- match : `\\b(val)\\b\\s*${ notStartOfComment } (${ anyId } (?:\\s*,\\s*${ anyId } )*)?` ,
818
+ match : `\\b(val)\\b\\s*${ notStartOfComment } (${ anyId } (?:\\s*,\\s*${ anyId } )*)?(?!\") ` ,
819
819
captures : {
820
820
'1' : {
821
821
name : 'keyword.declaration.stable.scala'
@@ -826,7 +826,7 @@ export const scalaTmLanguage: TmLanguage = {
826
826
}
827
827
} ,
828
828
{ // var x1[, x2, x3, ...] = y
829
- match : `\\b(var)\\b\\s*${ notStartOfComment } (${ anyId } (?:\\s*,\\s*${ anyId } )*)?` ,
829
+ match : `\\b(var)\\b\\s*${ notStartOfComment } (${ anyId } (?:\\s*,\\s*${ anyId } )*)?(?!\") ` ,
830
830
captures : {
831
831
'1' : {
832
832
name : 'keyword.declaration.volatile.scala'
Original file line number Diff line number Diff line change
1
+ // SYNTAX TEST "source.scala"
2
+
3
+ " abc" match
4
+ case x " ${x}b $y" =>
5
+ // ^ keyword.interpolation.scala
6
+ // ^ meta.template.expression.scala punctuation.definition.template-expression.begin.scala
7
+ // ^ meta.template.expression.scala punctuation.definition.template-expression.end.scala
8
+
9
+ val x " ${x}b $y" = " abc"
10
+ // ^ keyword.interpolation.scala
11
+ // ^ meta.template.expression.scala punctuation.definition.template-expression.begin.scala
12
+ // ^ meta.template.expression.scala punctuation.definition.template-expression.end.scala
13
+
14
+ var x " ${x}b $y" = " abc"
15
+ // ^ keyword.interpolation.scala
16
+ // ^ meta.template.expression.scala punctuation.definition.template-expression.begin.scala
17
+ // ^ meta.template.expression.scala punctuation.definition.template-expression.end.scala
18
+
19
+ val (x " ${x}b $y" , _) = " abc"
20
+ // ^ keyword.interpolation.scala
21
+ // ^ meta.template.expression.scala punctuation.definition.template-expression.begin.scala
22
+ // ^ meta.template.expression.scala punctuation.definition.template-expression.end.scala
You can’t perform that action at this time.
0 commit comments