Skip to content

Commit 37c1f36

Browse files
Merge pull request #71 from kiendang/interpolation
Fix string interpolation with curly braces
2 parents 7e9d18f + c00e6ae commit 37c1f36

File tree

3 files changed

+56
-1
lines changed

3 files changed

+56
-1
lines changed

src/typescript/Scala.tmLanguage.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ export const scalaTmLanguage: TmLanguage = {
191191
{
192192
include: '#backQuotedVariable'
193193
},
194+
{
195+
include: '#curly-braces'
196+
},
194197
{
195198
include: '#meta-brackets'
196199
},
@@ -611,6 +614,25 @@ export const scalaTmLanguage: TmLanguage = {
611614
match: `(?>'${plainid})(?!')`,
612615
name: 'constant.other.symbol.scala'
613616
},
617+
'curly-braces': {
618+
begin: '\\{',
619+
end: '\\}',
620+
beginCaptures: {
621+
'0': {
622+
name: 'punctuation.section.block.begin.scala'
623+
}
624+
},
625+
endCaptures: {
626+
'0': {
627+
name: 'punctuation.section.block.end.scala'
628+
}
629+
},
630+
patterns: [
631+
{
632+
include: '#code'
633+
}
634+
]
635+
},
614636
'meta-brackets': {
615637
patterns: [
616638
{

0 commit comments

Comments
 (0)