Skip to content

Commit

Permalink
Fix #83: Match function extensions with (?=\\([^\\)]+=>)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed Jun 26, 2020
1 parent 6c995f9 commit 92832c8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/typescript/Scala.tmLanguage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ export const scalaTmLanguage: TmLanguage = {
inheritance: {
patterns: [
{
match: '(extends|with|derives)\\s+([^\\s\\{\\[\\]]+)',
match: '(extends|with|derives)\\s+([^\\s\\(\\{\\[\\]]+|(?=\\([^\\)]+=>))',
captures: {
'1': {
name: 'keyword.declaration.scala'
Expand Down
Loading

0 comments on commit 92832c8

Please sign in to comment.