diff --git a/src/typescript/Scala.tmLanguage.ts b/src/typescript/Scala.tmLanguage.ts index 80870a0..c4afc60 100644 --- a/src/typescript/Scala.tmLanguage.ts +++ b/src/typescript/Scala.tmLanguage.ts @@ -174,6 +174,9 @@ export const scalaTmLanguage: TmLanguage = { { include: '#scala-symbol' }, + { + include: '#singleton-type' + }, { include: '#scala-quoted' }, @@ -431,6 +434,14 @@ export const scalaTmLanguage: TmLanguage = { } ] }, + 'singleton-type': { + match: `\\.(type)(?!${idrest}|[0-9])`, + captures: { + '1': { + name: 'keyword.type.scala' + } + } + }, 'scala-quoted': { match: "('\\{|'\\[)(?!')", name: 'constant.other.quoted.scala' @@ -494,7 +505,7 @@ export const scalaTmLanguage: TmLanguage = { } }, { - match: `\\b(type)\\s+(${backQuotedId}|${plainid})`, + match: `(?