File tree 2 files changed +28
-4
lines changed
2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -590,8 +590,16 @@ export const scalaTmLanguage: TmLanguage = {
590
590
]
591
591
} ,
592
592
'scala-quoted' : {
593
- match : "('\\{|'\\[)(?!')" ,
594
- name : 'constant.other.quoted.scala'
593
+ patterns : [
594
+ { // Start of `'{ .. }` or `${ .. }`
595
+ match : "['$]\\{(?!')" ,
596
+ name : 'punctuation.section.block.begin.scala'
597
+ } ,
598
+ { // Start of `'[ .. ]`
599
+ match : "'\\[(?!')" ,
600
+ name : 'meta.bracket.scala'
601
+ }
602
+ ]
595
603
} ,
596
604
'xml-doublequotedString' : {
597
605
end : '"' ,
Original file line number Diff line number Diff line change 1
1
// SYNTAX TEST "source.scala"
2
2
3
3
' { 2 }
4
- // ^^ constant.other.quoted .scala
4
+ // ^^ punctuation.section.block.begin .scala
5
5
// ^ constant.numeric.scala
6
6
// ^ punctuation.section.block.end.scala
7
7
8
8
' [ String ]
9
- // ^^ constant.other.quoted .scala
9
+ // ^^ meta.bracket .scala
10
10
// ^^^^^^ entity.name.class
11
+ // ^ meta.bracket.scala
12
+
13
+
14
+ $ { 1 }
15
+ // ^^ punctuation.section.block.begin.scala
16
+ // ^ constant.numeric.scala
17
+ // ^ punctuation.section.block.end.scala
18
+
19
+ case ' { x } =>
20
+ // ^^^^ keyword.control.flow.scala
21
+ // ^^ punctuation.section.block.begin.scala
22
+ // ^ punctuation.section.block.end.scala
23
+
24
+ case ' [ T ] =>
25
+ // ^^^^ keyword.control.flow.scala
26
+ // ^^ meta.bracket.scala
11
27
// ^ meta.bracket.scala
You can’t perform that action at this time.
0 commit comments