Skip to content

Commit

Permalink
Fix #226: Parse quoted blocks with spaces (' {)
Browse files Browse the repository at this point in the history
  • Loading branch information
lolgab authored and nicolasstucki committed Feb 10, 2023
1 parent 4a3fb2d commit 6839617
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/typescript/Scala.tmLanguage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,11 +713,11 @@ export const scalaTmLanguage: TmLanguage = {
'scala-quoted': {
patterns: [
{ // Start of `'{ .. }` or `${ .. }`
match: "['$]\\{(?!')",
match: "['$][ \\t]*\\{(?!')",
name: 'punctuation.section.block.begin.scala'
},
{ // Start of `'[ .. ]`
match: "'\\[(?!')",
match: "'[ \\t]*\\[(?!')",
name: 'meta.bracket.scala'
}
]
Expand Down
Loading

0 comments on commit 6839617

Please sign in to comment.