diff --git a/src/typescript/Scala.tmLanguage.ts b/src/typescript/Scala.tmLanguage.ts index e7bcc26..f354a10 100644 --- a/src/typescript/Scala.tmLanguage.ts +++ b/src/typescript/Scala.tmLanguage.ts @@ -578,21 +578,13 @@ export const scalaTmLanguage: TmLanguage = { }, inline: { patterns: [ - { - match: `\\b(inline)\\s+(?=(([\\w\\s]*\\b(val|def|given)\\b)|(${plainid}|${backQuotedId})\\s*:))`, - captures: { - '1': { - name: 'storage.modifier.other' - } - } + { // inline parameters + match: `\\b(inline)(?=\\s+(${plainid}|${backQuotedId})\\s*:)`, + name: 'storage.modifier.other' }, { match: `\\b(inline)\\b(?=(?:.(?!\\b(?:val|def|given)\\b))*\\b(if|match)\\b)`, - captures: { - '1': { - name: 'keyword.control.flow.scala' - } - } + name: 'keyword.control.flow.scala' } ] }, @@ -645,7 +637,7 @@ export const scalaTmLanguage: TmLanguage = { } }, { - match: `\\b(?:(case|open)\\s+)?(class|object|enum)\\s+([^\\s\\{\\(\\[;]+)(?