Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh(nix): major improvements to grammar (#4140)
* nix: add function type, import regex library * nix: update keywords - Add a bunch of new keywords - List all `builtins` explicitly - Sort alphabetically, to make it easier to spot missing builtins - Remove `add`, not a real builtin - Move `or` to `keywords`, this is not a `literal` * nix: fix string handling - The different string variants have different modes of escapes. Split `STRING.contains` into their different variants to reflect this. - Add escape logic for `'''` - Add escape logic for backslash escaped characters. * nix: handle path, lookup paths, and operators * nix: handle markdown comments Also ensure comments are handled before any other expressions * nix: handle REPL keywords * nix: handle basic function params * nix: better parsing for attrsets * nix: update tests * CHANGES.md: update with changes to nix
- Loading branch information