Skip to content

Commit 92832c8

Browse files
committed
Fix #83: Match function extensions with (?=\\([^\\)]+=>)
1 parent 6c995f9 commit 92832c8

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

src/typescript/Scala.tmLanguage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ export const scalaTmLanguage: TmLanguage = {
847847
inheritance: {
848848
patterns: [
849849
{
850-
match: '(extends|with|derives)\\s+([^\\s\\{\\[\\]]+)',
850+
match: '(extends|with|derives)\\s+([^\\s\\(\\{\\[\\]]+|(?=\\([^\\)]+=>))',
851851
captures: {
852852
'1': {
853853
name: 'keyword.declaration.scala'

0 commit comments

Comments
 (0)