tv vim-syntax-nix-nested: detect .vim".text
This commit is contained in:
parent
1c4810bd40
commit
21a0d53f2f
@ -130,14 +130,14 @@ let {
|
|||||||
'';
|
'';
|
||||||
})))
|
})))
|
||||||
((rtp: rtp // { inherit rtp; }) (pkgs.write "vim-syntax-nix-nested" {
|
((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=+|]+
|
syn region String start=+\[[[:alnum:]]*|+ end=+|]+
|
||||||
|
|
||||||
hi link ConId Identifier
|
hi link ConId Identifier
|
||||||
hi link VarId Identifier
|
hi link VarId Identifier
|
||||||
hi link hsDelimiter Delimiter
|
hi link hsDelimiter Delimiter
|
||||||
'';
|
'';
|
||||||
"/syntax/nix.vim".text = /* vim */ ''
|
"/syntax/nix.vim".text = ''
|
||||||
"" Quit when a (custom) syntax file was already loaded
|
"" Quit when a (custom) syntax file was already loaded
|
||||||
"if exists("b:current_syntax")
|
"if exists("b:current_syntax")
|
||||||
" finish
|
" finish
|
||||||
@ -291,6 +291,7 @@ let {
|
|||||||
];
|
];
|
||||||
yaml = {};
|
yaml = {};
|
||||||
vim.extraStart = alts [
|
vim.extraStart = alts [
|
||||||
|
(def ''"[^"]*\.vim"\.text'')
|
||||||
(writerExt "vim")
|
(writerExt "vim")
|
||||||
(writerName ''\([^"]*\.\)\?vimrc'')
|
(writerName ''\([^"]*\.\)\?vimrc'')
|
||||||
];
|
];
|
||||||
@ -334,7 +335,7 @@ let {
|
|||||||
|
|
||||||
set isk=@,48-57,_,192-255,-,'
|
set isk=@,48-57,_,192-255,-,'
|
||||||
'';
|
'';
|
||||||
"/syntax/sed.vim".text = /* vim */ ''
|
"/syntax/sed.vim".text = ''
|
||||||
syn region sedBranch
|
syn region sedBranch
|
||||||
\ matchgroup=sedFunction start="T"
|
\ matchgroup=sedFunction start="T"
|
||||||
\ matchgroup=sedSemicolon end=";\|$"
|
\ matchgroup=sedSemicolon end=";\|$"
|
||||||
|
Loading…
Reference in New Issue
Block a user