Skip to content

Commit 1342458

Browse files
Merge pull request #86 from nicolasstucki/fix-83-without-bracking-enum
Fix #83: Match function extensions with (?=\\([^\\)]+=>)
2 parents b2f11b9 + 92832c8 commit 1342458

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
@@ -935,7 +935,7 @@ export const scalaTmLanguage: TmLanguage = {
935935
inheritance: {
936936
patterns: [
937937
{
938-
match: '(extends|with|derives)\\s+([^\\s\\{\\[\\]]+)',
938+
match: '(extends|with|derives)\\s+([^\\s\\(\\{\\[\\]]+|(?=\\([^\\)]+=>))',
939939
captures: {
940940
'1': {
941941
name: 'keyword.declaration.scala'

0 commit comments

Comments
 (0)