-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #110: Highlight class/object names in imports
- Loading branch information
1 parent
e907413
commit 0da2784
Showing
5 changed files
with
71 additions
and
13 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
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,45 @@ | ||
// SYNTAX TEST "source.scala" | ||
|
||
import java.io.BufferedReaded | ||
// ^^^^^^ keyword.other.import.scala | ||
// ^^^^ entity.name.import.scala | ||
// ^^ entity.name.import.scala | ||
// ^^^^^^^^^^^^^^ entity.name.class.import.scala | ||
|
||
import foo._ | ||
// ^^^^^^ keyword.other.import.scala | ||
// ^^^ entity.name.import.scala | ||
// ^ entity.name.import.scala | ||
|
||
import foo.Bar | ||
// ^^^^^^ keyword.other.import.scala | ||
// ^^^ entity.name.import.scala | ||
// ^^^ entity.name.class.import.scala | ||
|
||
import foo.Bar._ | ||
// ^^^^^^ keyword.other.import.scala | ||
// ^^^ entity.name.import.scala | ||
// ^^^ entity.name.class.import.scala | ||
// ^ entity.name.import.scala | ||
|
||
import foo.Foo.Bar._ | ||
// ^^^^^^ keyword.other.import.scala | ||
// ^^^ entity.name.import.scala | ||
// ^^^ entity.name.class.import.scala | ||
// ^^^ entity.name.class.import.scala | ||
|
||
import foo.{Foo, bar} | ||
// ^^^^^^ keyword.other.import.scala | ||
// ^^^ entity.name.import.scala | ||
// ^^^ entity.name.class.import.scala | ||
// ^^^ entity.name.import.scala | ||
|
||
import foo.{Foo => Bar, bar => foo} | ||
// ^^^^^^ keyword.other.import.scala | ||
// ^^^ entity.name.import.scala | ||
// ^^^ meta.import.scala meta.import.selector.scala entity.name.class.import.renamed-from.scala | ||
// ^^ meta.import.scala | ||
// ^^^ meta.import.scala meta.import.selector.scala entity.name.class.import.renamed-to.scala | ||
// ^^^ meta.import.scala meta.import.selector.scala entity.name.import.renamed-from.scala | ||
// ^^ meta.import.scala meta.import.selector.scala keyword.other.arrow.scala | ||
// ^^^ meta.import.scala meta.import.selector.scala entity.name.import.renamed-to.scala |
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