From 0a623a10c7e89a80b6dc74445a0ae6240f65723e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 13 Jul 2011 12:19:57 +0000 Subject: * Allow a default value in attribute selection by writing x.y.z or default (as originally proposed in https://mail.cs.uu.nl/pipermail/nix-dev/2009-September/002989.html). For instance, an expression like stdenv.lib.attrByPath ["features" "ckSched"] false args can now be written as args.features.ckSched or false --- src/libexpr/lexer.l | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libexpr/lexer.l') diff --git a/src/libexpr/lexer.l b/src/libexpr/lexer.l index 5b27e2582d2b..330c2bd54d3a 100644 --- a/src/libexpr/lexer.l +++ b/src/libexpr/lexer.l @@ -96,6 +96,7 @@ let { return LET; } in { return IN; } rec { return REC; } inherit { return INHERIT; } +or { return OR_KW; } \.\.\. { return ELLIPSIS; } \=\= { return EQ; } -- cgit 1.4.1