nix-community / rnix-parser

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

`or` is not accepted as an identifier #127

Closed darichey closed 2 years ago

darichey commented 2 years ago

Following #106 and #116, or is no longer accepted as an identifier.

fn main() {
    let nix_expr = "{ or = 1; }";
    println!(
        "{:#?}",
        rnix::Root::parse(&nix_expr).ok().unwrap()
    );
}
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: UnexpectedWanted(TOKEN_OR, 2..11, [TOKEN_IDENT])', src/main.rs:5:43