nix-community / rnix-parser

A Nix parser written in Rust [maintainer=@oberblastmeister]
MIT License
366 stars 44 forks source link

Mark duplicated arguments in argument-patterns as syntax error #53

Closed Ma27 closed 3 years ago

Ma27 commented 3 years ago

Summary & Motivation

To remain consistent with nix-instantiate --parser, expressions like

{ a, a }: a

should be marked as invalid.

Backwards-incompatible changes

n/a

Further context

Closes #45


cc @nerdypepper

oppiliappan commented 3 years ago

Looks good to me! Thanks again, @Ma27.