summaryrefslogtreecommitdiffstats
path: root/tv
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
commitb1d6781af067876dbd7b88b4b038f048d3e8e3f5 (patch)
tree40a1ef40b84714745226b419eb3ae768f1a4cf23 /tv
parent710a19d29afa5ef0c5eee4d02f54251aa714e6e2 (diff)
tv vim-syntax-nix-nested: detect .vim".text
Diffstat (limited to 'tv')
-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 9f78d6e..7e37ef3 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=";\|$"