* 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
This commit is contained in:
		
							parent
							
								
									2b9e29b1c8
								
							
						
					
					
						commit
						0a623a10c7
					
				
					 9 changed files with 70 additions and 22 deletions
				
			
		|  | @ -67,7 +67,7 @@ The hook `nix-mode-hook' is run when Nix mode is started. | |||
| 
 | ||||
| (defvar nix-keywords | ||||
|   '("\\<if\\>" "\\<then\\>" "\\<else\\>" "\\<assert\\>" "\\<with\\>" | ||||
|     "\\<let\\>" "\\<in\\>" "\\<rec\\>" "\\<inherit\\>" | ||||
|     "\\<let\\>" "\\<in\\>" "\\<rec\\>" "\\<inherit\\>" "\\<or\\>" | ||||
|     ("\\<true\\>" . font-lock-builtin-face) | ||||
|     ("\\<false\\>" . font-lock-builtin-face) | ||||
|     ("\\<null\\>" . font-lock-builtin-face) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue