summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-02-02 20:20:44 +0100
committertv <tv@krebsco.de>2019-02-02 20:20:44 +0100
commit5aea1da2e1e545caf8e8f41b2ce9d589562165c2 (patch)
treed390622d4493c21feb5cee9dd6c54c72182fb6b8
parent8b6e3765de2c82929ec63843e9a782886eb0da4e (diff)
tv vim-syntax-nix-nested: detect .vim".text
-rw-r--r--tv/2configs/vim.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix
index 9f78d6e0..7e37ef32 100644
--- a/tv/2configs/vim.nix
+++ b/tv/2configs/vim.nix
@@ -130,14 +130,14 @@ let {
'';
})))
((rtp: rtp // { inherit rtp; }) (pkgs.write "vim-syntax-nix-nested" {
- "/syntax/haskell.vim".text = /* vim */ ''
+ "/syntax/haskell.vim".text = ''
syn region String start=+\[[[:alnum:]]*|+ end=+|]+
hi link ConId Identifier
hi link VarId Identifier
hi link hsDelimiter Delimiter
'';
- "/syntax/nix.vim".text = /* vim */ ''
+ "/syntax/nix.vim".text = ''
"" Quit when a (custom) syntax file was already loaded
"if exists("b:current_syntax")
" finish
@@ -291,6 +291,7 @@ let {
];
yaml = {};
vim.extraStart = alts [
+ (def ''"[^"]*\.vim"\.text'')
(writerExt "vim")
(writerName ''\([^"]*\.\)\?vimrc'')
];
@@ -334,7 +335,7 @@ let {
set isk=@,48-57,_,192-255,-,'
'';
- "/syntax/sed.vim".text = /* vim */ ''
+ "/syntax/sed.vim".text = ''
syn region sedBranch
\ matchgroup=sedFunction start="T"
\ matchgroup=sedSemicolon end=";\|$"