diff options
author | tv <tv@krebsco.de> | 2016-06-12 21:14:03 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-06-12 21:14:03 +0200 |
commit | 5b99901e08676d92b078711e2de66bd64baa5d96 (patch) | |
tree | 00030e68da696546428fc1f6241bea48e2c94f62 | |
parent | 25ceeb7006225fa82a801a4ae59b1cda06101791 (diff) |
tv nix.vim Nix{ID,Other}: init
-rw-r--r-- | tv/2configs/vim.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 826c2d4..12eab46 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -211,9 +211,8 @@ let nix.vim = pkgs.writeText "nix.vim" '' setf nix - syn match NixCode /./ - " Ref <nix/src/libexpr/lexer.l> + syn match NixID /[a-zA-Z\_][a-zA-Z0-9\_\'\-]*/ syn match NixINT /\<[0-9]\+\>/ syn match NixPATH /[a-zA-Z0-9\.\_\-\+]*\(\/[a-zA-Z0-9\.\_\-\+]\+\)\+/ syn match NixHPATH /\~\(\/[a-zA-Z0-9\.\_\-\+]\+\)\+/ @@ -231,6 +230,7 @@ let \ end="'''" syn cluster NixStrings contains=NixSTRING,NixIND_STRING + syn match NixOther /[():/;=.,?\[\]]/ syn match NixCommentMatch /\(^\|\s\)#.*/ syn region NixCommentRegion start="/\*" end="\*/" @@ -241,6 +241,7 @@ let hi link NixCommentMatch NixComment hi link NixCommentRegion NixComment + hi link NixID NixCode hi link NixINT NixData hi link NixPATH NixData hi link NixHPATH NixData @@ -251,6 +252,7 @@ let hi link NixEnter NixCode hi link NixExit NixData + hi link NixOther NixCode hi link NixQuote NixData hi link NixQuote2 NixQuote hi link NixQuote3 NixQuote |