-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enumeration an Type declarations (#43)
* Highlight metamodelica enumerations * Handling type declarations
- Loading branch information
1 parent
0355079
commit 5c0bea2
Showing
3 changed files
with
54 additions
and
3 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,20 @@ | ||
// SYNTAX TEST "source.metamodelica" "Enumeration" | ||
|
||
type FavouriteMinionFood = enumeration( | ||
//<--- source.metamodelica storage.type | ||
// ^^^^^^^^^^^^^^^^^^^ source.metamodelica entity.name.type | ||
// ^ source.metamodelica keyword.operator.assignment | ||
// ^^^^^^^^^^^ source.metamodelica storage.type.enumeration | ||
BANANA "A banana", | ||
//^^^^^^ source.metamodelica entity.name.type | ||
// ^^^^^^^^^^ source.metamodelica comment.line | ||
APPLE "An apple", | ||
//^^^^^ source.metamodelica entity.name.type | ||
// ^^^^^^^^^^ source.metamodelica comment.line | ||
GELATO "Ice-cream from the italian \"gelato\"", | ||
//^^^^^^ source.metamodelica entity.name.type | ||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.metamodelica comment.line | ||
PAPAYA "Wikipedia tells me the fruit is a berry. I don't agree." | ||
//^^^^^^ source.metamodelica entity.name.type | ||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.metamodelica comment.line | ||
); |
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