Skip to content

Commit

Permalink
Fix string interpolation with curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
kiendang committed Jan 11, 2020
1 parent 7e9d18f commit c00e6ae
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
22 changes: 22 additions & 0 deletions src/typescript/Scala.tmLanguage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ export const scalaTmLanguage: TmLanguage = {
{
include: '#backQuotedVariable'
},
{
include: '#curly-braces'
},
{
include: '#meta-brackets'
},
Expand Down Expand Up @@ -611,6 +614,25 @@ export const scalaTmLanguage: TmLanguage = {
match: `(?>'${plainid})(?!')`,
name: 'constant.other.symbol.scala'
},
'curly-braces': {
begin: '\\{',
end: '\\}',
beginCaptures: {
'0': {
name: 'punctuation.section.block.begin.scala'
}
},
endCaptures: {
'0': {
name: 'punctuation.section.block.end.scala'
}
},
patterns: [
{
include: '#code'
}
]
},
'meta-brackets': {
patterns: [
{
Expand Down
Loading

0 comments on commit c00e6ae

Please sign in to comment.