-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Identify
extends
, with
and derives
at the end of a line
- Loading branch information
1 parent
b3d18b4
commit 0080fe4
Showing
2 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// SYNTAX TEST "source.scala" | ||
|
||
|
||
class Foo extends | ||
// ^^^^^ keyword.declaration.scala | ||
// ^^^ entity.name.class.declaration | ||
// ^^^^^^^ keyword.declaration.scala | ||
|
||
class Foo extends Bar with Baz | ||
// ^^^^^ keyword.declaration.scala | ||
// ^^^ entity.name.class.declaration | ||
// ^^^^^^^ keyword.declaration.scala | ||
// ^^^ entity.other.inherited-class.scala | ||
// ^^^^ keyword.declaration.scala | ||
// ^^^ entity.other.inherited-class.scala | ||
|
||
class Foo extends Bar with | ||
// ^^^^^ keyword.declaration.scala | ||
// ^^^ entity.name.class.declaration | ||
// ^^^^^^^ keyword.declaration.scala | ||
// ^^^ entity.other.inherited-class.scala | ||
// ^^^^ keyword.declaration.scala | ||
|
||
|
||
given tc: TC with {} | ||
// ^^^^^ keyword.declaration.scala | ||
// ^^ variable.parameter.scala | ||
// ^^ entity.name.class | ||
// ^^^^ keyword.declaration.scala | ||
|
||
given Liftable[Boolean] with { | ||
// ^^^^^ keyword.declaration.scala | ||
// ^^^^^^^^ entity.name.class | ||
// ^^^^^^^ entity.name.class | ||
// ^^^^ keyword.declaration.scala | ||
|
||
given listMonad: Monad[List] with | ||
// ^^^^^ keyword.declaration.scala | ||
// ^^^^^^^^^ variable.parameter.scala | ||
// ^^^^^ entity.name.class | ||
// ^^^^ entity.name.class | ||
// ^^^^ keyword.declaration.scala | ||
|
||
enum Opt[+T] derives Eq { | ||
// ^^^^ keyword.declaration.scala | ||
// ^^^ entity.name.class.declaration | ||
// ^ entity.name.class | ||
// ^^^^^^^ keyword.declaration.scala | ||
// ^^ entity.other.inherited-class.scala | ||
|
||
enum Opt[+T] derives | ||
// ^^^^ keyword.declaration.scala | ||
// ^^^ entity.name.class.declaration | ||
// ^ entity.name.class | ||
// ^^^^^^^ keyword.declaration.scala |