Skip to content

Commit 6839617

Browse files
lolgabnicolasstucki
authored andcommitted
Fix #226: Parse quoted blocks with spaces (' {)
1 parent 4a3fb2d commit 6839617

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
@@ -713,11 +713,11 @@ export const scalaTmLanguage: TmLanguage = {
713713
'scala-quoted': {
714714
patterns: [
715715
{ // Start of `'{ .. }` or `${ .. }`
716-
match: "['$]\\{(?!')",
716+
match: "['$][ \\t]*\\{(?!')",
717717
name: 'punctuation.section.block.begin.scala'
718718
},
719719
{ // Start of `'[ .. ]`
720-
match: "'\\[(?!')",
720+
match: "'[ \\t]*\\[(?!')",
721721
name: 'meta.bracket.scala'
722722
}
723723
]

0 commit comments

Comments
 (0)