Skip to content

Commit

Permalink
feat: add expr<types>
Browse files Browse the repository at this point in the history
  • Loading branch information
Nsidorenco committed Apr 5, 2024
1 parent 59c8537 commit 70239a9
Show file tree
Hide file tree
Showing 5 changed files with 12,497 additions and 12,459 deletions.
6 changes: 1 addition & 5 deletions examples/expressions.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
do
try
()
with
| _ -> ()
| _ -> ()
y<int>
6 changes: 3 additions & 3 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,9 +692,9 @@ module.exports = grammar({
prec(PREC.PAREN_EXPR,
seq(
$._expression,
token.immediate('<'),
token.immediate(prec(PREC.PAREN_EXPR, '<')),
optional($.types),
'>',
prec(PREC.PAREN_EXPR, '>'),
)),

declaration_expression: $ =>
Expand Down Expand Up @@ -1039,7 +1039,7 @@ module.exports = grammar({
types: $ =>
seq(
$.type,
repeat1(prec.left(PREC.COMMA, seq(',', $.type))),
repeat(prec.left(PREC.COMMA, seq(',', $.type))),
),

type_attribute: $ =>
Expand Down
18 changes: 13 additions & 5 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 70239a9

Please sign in to comment.