Skip to content

Commit

Permalink
Merge pull request #85 from nicolasstucki/fix-#83
Browse files Browse the repository at this point in the history
Fix #83: Accept `extends` followed by a `(`
  • Loading branch information
anatoliykmetyuk authored Jun 18, 2020
2 parents b5027ba + e707aec commit 6c995f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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
7 changes: 7 additions & 0 deletions tests/unit/#83.test.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// SYNTAX TEST "source.scala"

trait A extends B
// ^^^^^^^ keyword.declaration.scala

trait A extends (B => B){}
// ^^^^^^^ keyword.declaration.scala

0 comments on commit 6c995f9

Please sign in to comment.