diff options
| author | makefu <github@syntax-fehler.de> | 2015-11-06 22:38:44 +0100 |
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2015-11-06 22:38:44 +0100 |
| commit | dd78cfa9952ec87ced5c00355e924990e4648dbd (patch) | |
| tree | 8c61660c8d2af94a9afb103ff4b8df4c2c1b2bb2 /tv/2configs/vim.nix | |
| parent | b0dda11ba0cef7ae707fd7b60e458336f7ce232d (diff) | |
| parent | 260f893f9d9f5bd54c7b406021bce14fd2c39139 (diff) | |
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'tv/2configs/vim.nix')
| -rw-r--r-- | tv/2configs/vim.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 14f086e..04b1480 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -66,9 +66,10 @@ let au BufRead,BufNewFile *.nix so ${pkgs.writeText "nix.vim" '' setf nix + set isk=@,48-57,_,192-255,-,' " Ref <nix/src/libexpr/lexer.l> - syn match INT /[0-9]\+/ + syn match INT /\<[0-9]\+\>/ syn match PATH /[a-zA-Z0-9\.\_\-\+]*\(\/[a-zA-Z0-9\.\_\-\+]\+\)\+/ syn match HPATH /\~\(\/[a-zA-Z0-9\.\_\-\+]\+\)\+/ syn match SPATH /<[a-zA-Z0-9\.\_\-\+]\+\(\/[a-zA-Z0-9\.\_\-\+]\+\)*>/ @@ -79,8 +80,8 @@ let hi link SPATH Constant hi link URI Constant - syn match String /"\([^"]\|\\\"\)*"/ - syn match Comment /\s#.*/ + syn match String /"\([^\\"]\|\\.\)*"/ + syn match Comment /\(^\|\s\)#.*/ ''} au BufRead,BufNewFile /dev/shm/* set nobackup nowritebackup noswapfile |
