-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added some missing keywords - Added highlighting for modules, labels, and constructors - Split polymorphic variant types and type variables
- Loading branch information
1 parent
e5678a0
commit 2a570fd
Showing
10 changed files
with
85 additions
and
25 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,13 @@ | ||
~foo | ||
~bar_42 | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["label", "~foo"], | ||
["label", "~bar_42"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for labels. |
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,15 @@ | ||
Foo | ||
Bar42 | ||
Baz_42 | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["module", "Foo"], | ||
["module", "Bar42"], | ||
["module", "Baz_42"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for modules. |
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
10 changes: 3 additions & 7 deletions
10
tests/languages/ocaml/type_feature.test → ...anguages/ocaml/type_variable_feature.test
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,17 +1,13 @@ | ||
'Foo | ||
'bar_42 | ||
`Foo | ||
`bar_42 | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["type", "'Foo"], | ||
["type", "'bar_42"], | ||
["type", "`Foo"], | ||
["type", "`bar_42"] | ||
["type_variable", "'Foo"], | ||
["type_variable", "'bar_42"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for types. | ||
Checks for type variables. |
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,15 @@ | ||
`Foo | ||
`bar32 | ||
`Baz_42 | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["variant", "`Foo"], | ||
["variant", "`bar32"], | ||
["variant", "`Baz_42"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for polymorphic variants. |