tv vim: isk, INTs, and comments
This commit is contained in:
parent
1ddbdddc69
commit
5ec7cd4ad5
@ -66,9 +66,10 @@ let
|
|||||||
|
|
||||||
au BufRead,BufNewFile *.nix so ${pkgs.writeText "nix.vim" ''
|
au BufRead,BufNewFile *.nix so ${pkgs.writeText "nix.vim" ''
|
||||||
setf nix
|
setf nix
|
||||||
|
set isk=@,48-57,_,192-255,-,'
|
||||||
|
|
||||||
" Ref <nix/src/libexpr/lexer.l>
|
" 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 PATH /[a-zA-Z0-9\.\_\-\+]*\(\/[a-zA-Z0-9\.\_\-\+]\+\)\+/
|
||||||
syn match HPATH /\~\(\/[a-zA-Z0-9\.\_\-\+]\+\)\+/
|
syn match HPATH /\~\(\/[a-zA-Z0-9\.\_\-\+]\+\)\+/
|
||||||
syn match SPATH /<[a-zA-Z0-9\.\_\-\+]\+\(\/[a-zA-Z0-9\.\_\-\+]\+\)*>/
|
syn match SPATH /<[a-zA-Z0-9\.\_\-\+]\+\(\/[a-zA-Z0-9\.\_\-\+]\+\)*>/
|
||||||
@ -80,7 +81,7 @@ let
|
|||||||
hi link URI Constant
|
hi link URI Constant
|
||||||
|
|
||||||
syn match String /"\([^"]\|\\\"\)*"/
|
syn match String /"\([^"]\|\\\"\)*"/
|
||||||
syn match Comment /\s#.*/
|
syn match Comment /\(^\|\s\)#.*/
|
||||||
''}
|
''}
|
||||||
|
|
||||||
au BufRead,BufNewFile /dev/shm/* set nobackup nowritebackup noswapfile
|
au BufRead,BufNewFile /dev/shm/* set nobackup nowritebackup noswapfile
|
||||||
|
Loading…
Reference in New Issue
Block a user