about summary refs log tree commit diff
path: root/misc
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2007-12-12T02·12+0000
committerMarc Weber <marco-oweber@gmx.de>2007-12-12T02·12+0000
commit4ff1335b2e7f69c33fa3d4223fe51e109338aa90 (patch)
tree7050efcd40149de17349f52288abb65041e93f91 /misc
parent3a2833daffcaf22894220837d9f9985580f5823a (diff)
small udpate
Diffstat (limited to 'misc')
-rw-r--r--misc/vim/syntax/nix.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/vim/syntax/nix.vim b/misc/vim/syntax/nix.vim
index 1f19ce6382..6e47a21714 100644
--- a/misc/vim/syntax/nix.vim
+++ b/misc/vim/syntax/nix.vim
@@ -3,15 +3,13 @@
 " Maintainer:	Marc Weber <marco-oweber@gmx.de>
 "               Modify and commit if you feel that way
 " Last Change:	2007 Dec
-"
-" TODO What about headings (### header ) ?
 
 " Quit when a (custom) syntax file was already loaded
 if exists("b:current_syntax")
   finish
 endif
 
-syn keyword	nixKeyword	let throw inherit import true false null
+syn keyword	nixKeyword	let throw inherit import true false null with
 syn keyword	nixConditional	if else then
 syn keyword     nixBrace        ( ) { } =
 syn keyword     nixBuiltin         __currentSystem __currentTime __isFunction __getEnv __trace __toPath __pathExists 
@@ -19,6 +17,7 @@ syn keyword     nixBuiltin         __currentSystem __currentTime __isFunction __
   \ __head __tail __add __sub __lessThan __substring __stringLength
 
 syn match nixAttr "\w\+\ze\s*="
+syn match nixFuncArg "\zs\w\+\ze\s*:"
 syn region nixStringParam start=+\${+ end=+}+
 syn region nixMultiLineComment start=+/\*+ skip=+\\"+ end=+\*/+
 syn match  nixEndOfLineComment "#.*$"
@@ -29,7 +28,8 @@ hi def link nixConditional   Conditional
 hi def link nixBrace         Special
 hi def link nixString        String
 hi def link nixBuiltin       Special
-hi def link nixStringParam   Label
+hi def link nixStringParam   Macro
 hi def link nixMultiLineComment Comment
 hi def link nixEndOfLineComment Comment
 hi def link nixAttr        Identifier
+hi def link nixFuncArg     Identifier