Skip to content

Commit

Permalink
parse ---- correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Jun 30, 2023
1 parent ff940b4 commit 85b1554
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Juvix/Parser/Lexer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ space' special =
when
special
( notFollowedBy
( P.chunk Str.judocStart
( (P.chunk Str.judocStart >> P.chunk " ")
<|> P.chunk Str.judocBlockEnd
)
)
Expand Down
6 changes: 4 additions & 2 deletions tests/positive/Format.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
module -- Declaring a top module of name:
Format;

------------ many --- in comment

import -- Import a module of name:
Stdlib.Prelude open -- Bring all names into scope but..
hiding -- Hide some names
{-- like this
{-- like this
,; -- don't want , here
-- Bool either
-- Bool either
Bool; true; false};

import Stdlib.Data.Nat.Ord open;
Expand Down

0 comments on commit 85b1554

Please sign in to comment.