Skip to content

Commit 69c8e35

Browse files
committed
Fix #226: Parse quoted blocks with spaces (' {)
1 parent 52eae26 commit 69c8e35

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

src/typescript/Scala.tmLanguage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,11 +678,11 @@ export const scalaTmLanguage: TmLanguage = {
678678
'scala-quoted': {
679679
patterns: [
680680
{ // Start of `'{ .. }` or `${ .. }`
681-
match: "['$]\\{(?!')",
681+
match: "['$][ \t]*\\{(?!')",
682682
name: 'punctuation.section.block.begin.scala'
683683
},
684684
{ // Start of `'[ .. ]`
685-
match: "'\\[(?!')",
685+
match: "'[ \t]*\\[(?!')",
686686
name: 'meta.bracket.scala'
687687
}
688688
]

0 commit comments

Comments
 (0)