nix-community / rnix-parser

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

Lexer refactor #117

Closed oberblastmeister closed 2 years ago

oberblastmeister commented 2 years ago

Summary & Motivation

Fixes error introduced in #102 because we weren't checking for None. Refactors the lexer to use the context only instead of duplicating it in struct fields. Make tests cleaner and shorter by removing tokens macro.