-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add colorization for new module syntax (#146)
* Add module related keywords and declarations * Add test * Slight change
- Loading branch information
1 parent
a14c481
commit 55e5e77
Showing
2 changed files
with
121 additions
and
20 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,42 @@ | ||
module foo.bar.baz; | ||
|
||
new module foo.bar.baz { | ||
} | ||
|
||
module newtype x = y; | ||
|
||
internal interface foo { | ||
} | ||
|
||
public interface foo { | ||
} | ||
|
||
internal enum foo { | ||
} | ||
|
||
public enum foo { | ||
} | ||
|
||
internal enum class foo { | ||
} | ||
|
||
public enum class foo { | ||
} | ||
|
||
internal trait foo { | ||
internal int $x; | ||
internal function y(): void { | ||
} | ||
} | ||
|
||
public trait foo { | ||
} | ||
|
||
internal class foo { | ||
internal int $x; | ||
internal function y(): void { | ||
} | ||
} | ||
|
||
public class foo { | ||
} |