Skip to content

Commit 9712788

Browse files
committed
Add mapAttrs as a builtin.
Although traditionally it should be used as with lib.attrsets.mapAttrs[1], it's a builtin since Nix 2.1. https://nixos.org/manual/nixpkgs/unstable/#function-library-lib.attrsets.mapAttrs
1 parent 63b47b3 commit 9712788

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/nix.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ syn match nixInterpolationParam "[a-zA-Z_][a-zA-Z0-9_'-]*\%(\.[a-zA-Z_][a-zA-Z0-
129129
" Non-namespaced Nix builtins as of version 2.0:
130130
syn keyword nixSimpleBuiltin
131131
\ abort baseNameOf derivation derivationStrict dirOf fetchGit
132-
\ fetchMercurial fetchTarball import isNull map placeholder removeAttrs
132+
\ fetchMercurial fetchTarball import isNull map mapAttrs placeholder removeAttrs
133133
\ scopedImport throw toString
134134
135135

@@ -142,7 +142,7 @@ syn keyword nixNamespacedBuiltin contained
142142
\ findFile foldl' fromJSON functionArgs genList \ genericClosure getAttr
143143
\ getEnv hasAttr hasContext hashString head import intersectAttrs isAttrs
144144
\ isBool isFloat isFunction isInt isList isNull isString langVersion
145-
\ length lessThan listToAttrs map match mul nixPath nixVersion
145+
\ length lessThan listToAttrs map mapAttrs match mul nixPath nixVersion
146146
\ parseDrvName partition path pathExists placeholder readDir readFile
147147
\ removeAttrs replaceStrings scopedImport seq sort split splitVersion
148148
\ storeDir storePath stringLength sub substring tail throw toFile toJSON

0 commit comments

Comments
 (0)