Skip to content

Commit b6df41d

Browse files
authored
allow private in with constraints (#301)
Close #298
1 parent 14ab043 commit b6df41d

4 files changed

Lines changed: 118593 additions & 117958 deletions

File tree

‎grammar.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ export default grammar({
12401240
$.module_primary_expression,
12411241
),
12421242

1243-
constrain_type: ($) => seq("type", $._type, choice("=", ":="), $._type),
1243+
constrain_type: ($) => seq("type", $._type, choice("=", ":="), optional("private"), $._type),
12441244

12451245
functor_use: ($) =>
12461246
seq($.module_primary_expression, alias($.functor_arguments, $.arguments)),

‎src/grammar.json‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)