-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from camilaagw/Fix-155-highlight-all-soft-mod…
…ifiers Highlight all soft modifiers
- Loading branch information
Showing
3 changed files
with
82 additions
and
15 deletions.
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,71 @@ | ||
// SYNTAX TEST "source.scala" | ||
|
||
transparent inline def foo | ||
// ^^^^^^^^^^^ storage.modifier.other | ||
// ^^^^^^ storage.modifier.other | ||
|
||
transparent inline xdef foo | ||
// ^^^^^^^^^^^ - storage.modifier.other | ||
// ^^^^^^ - storage.modifier.other | ||
|
||
transparent inline defx foo | ||
// ^^^^^^^^^^^ - storage.modifier.other | ||
// ^^^^^^ - storage.modifier.other | ||
|
||
transparent inline final def assert | ||
// ^^^^^^^^^^^ storage.modifier.other | ||
// ^^^^^^ storage.modifier.other | ||
|
||
transparent badkeyword inline override def alternative | ||
// ^^^^^^^^^^^ storage.modifier.other | ||
// ^^^^^^ storage.modifier.other | ||
|
||
transparent trait Enum extends Any with Product with Serializable | ||
// ^^^^^^^^^^^ storage.modifier.other | ||
|
||
opaque type Logarithm = Double | ||
// ^^^^^^ storage.modifier.other | ||
|
||
opaque private type Matching = Option[Tuple] | ||
// ^^^^^^ storage.modifier.other | ||
|
||
infix def + (that: Rational) = | ||
// ^^^^^ storage.modifier.other | ||
|
||
infix type +[X <: Int | String, Y <: Int | String] = (X, Y) match | ||
// ^^^^^ storage.modifier.other | ||
|
||
open class Open | ||
// ^^^^ storage.modifier.other | ||
|
||
open final class Foo1 | ||
// ^^^^ storage.modifier.other | ||
|
||
open final class Foo1 | ||
// <---- storage.modifier.other | ||
|
||
@inline def | ||
// ^^^^^^ - storage.modifier.other | ||
|
||
@infix def | ||
// ^^^^^ - storage.modifier.other | ||
|
||
@transparent def | ||
// ^^^^^^^^^^^ - storage.modifier.other | ||
|
||
@opaque def | ||
// ^^^^^^ - storage.modifier.other | ||
|
||
@open def | ||
// ^^^^ - storage.modifier.other | ||
|
||
@scala.inline def | ||
// ^^^^^^ - storage.modifier.other | ||
|
||
@infix inline def | ||
// ^^^^^ - storage.modifier.other | ||
// ^^^^^^ storage.modifier.other | ||
|
||
file.open() | ||
// ^^^^ - storage.modifier.other | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// SYNTAX TEST "source.scala" | ||
|
||
open class A | ||
// ^^^^ keyword.declaration.scala | ||
// ^^^^ storage.modifier.other | ||
// ^^^^^ keyword.declaration.scala | ||
// ^ entity.name.class.declaration |