Skip to content

Commit

Permalink
Fix regex on mac
Browse files Browse the repository at this point in the history
The *? doesn't work on aarch64-darwin
NixOS/nix#4758

I also don't think it does anything on linux as far as I can tell, even
though it is permitted, so it was an oversight to have it there in the
first place.
  • Loading branch information
ursi committed Aug 29, 2022
1 parent 12009e2 commit 69f45d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.nix
Expand Up @@ -10,7 +10,7 @@ with builtins;
ws = "([ \r\n]|--[^\n]*\n|\\{-([^-]|-[^}])*-})";
module-name = ''([^ ${"\r\n"}()=:{},-]+)'';
fun-type-name = ''([^ ${"\r\n"}()=:{},.-]+)'';
op-name = ''(\([^ ${"\n"})]*?\))'';
op-name = ''(\([^ ${"\n"})]*\))'';
fun-type-export = ''(${fun-type-name}(${ws}*\(${ws}*(${csl fun-type-name}|\.\.)${ws}*\))?)'';
type-op-export = ''(type${ws}*${op-name})'';
class-export = ''(class${ws}+${fun-type-name})'';
Expand Down

0 comments on commit 69f45d0

Please sign in to comment.