nix-community / rnix-parser

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

Diversion from `nix` while parsing inherit statements #37

Closed oppiliappan closed 3 years ago

oppiliappan commented 3 years ago

nix repl suggests that the following is a syntax error:

nix-repl> { inherit x (p) a; }
error: syntax error, unexpected '('

       at «string»:1:13:

            1| { inherit x (p) a; }
             |             ^
            2|

However, rnix parses it without erroring out.