Skip to content

Commit

Permalink
fix: parsing of prefix op
Browse files Browse the repository at this point in the history
  • Loading branch information
Nsidorenco committed May 27, 2024
1 parent 309f956 commit 1b2d53e
Show file tree
Hide file tree
Showing 7 changed files with 12,836 additions and 12,794 deletions.
2 changes: 2 additions & 0 deletions examples/async.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
let x = f(&i)

6 changes: 1 addition & 5 deletions examples/expressions.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
let x =
let y = 5
(*
blah
*)
y + 1
f(y) |> g
6 changes: 1 addition & 5 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1654,11 +1654,7 @@ module.exports = grammar({

prefix_op: ($) =>
prec.left(
choice(
$._infix_or_prefix_op,
repeat1("~"),
/[!][!%&*+-./<>@^|~?][!%&*+-./<=>@^|~?]*/,
),
choice($._infix_or_prefix_op, repeat1("~"), /[!][!%&*+-./<=>@^|~?]*/),
),

infix_op: ($) =>
Expand Down
2 changes: 1 addition & 1 deletion 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 1b2d53e

Please sign in to comment.