annotate runtime/compiler/ruby.vim @ 36533:90545c76016e draft default tip

runtime(tar): Update tar.vim to support permissions Commit: https://github.com/vim/vim/commit/129a8446d23cd9cb4445fcfea259cba5e0487d29 Author: Lennart00 <73488709+Lennart00@users.noreply.github.com> Date: Mon Nov 11 22:39:30 2024 +0100 runtime(tar): Update tar.vim to support permissions These changes enable tar.vim to keep permissions of files that were edited intact instead of replacing them with the default permissions. The major change for this is switching from "tar -OPxf", which reads out the contents of the selected file from an tar archive to stdout to "tar -pPxf" which extracts the selected file to the current directory with permissions intact This requirs the temporary directory to be created earlier. closes: #7379 Signed-off-by: Lennart00 <73488709+Lennart00@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 11 Nov 2024 22:45:02 +0100
parents e1df51f68736
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim compiler file
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents: 557
diff changeset
2 " Language: Ruby
f24a95dae8ee updated for version 7.0d05
vimboss
parents: 557
diff changeset
3 " Function: Syntax check and/or error reporting
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
4 " Maintainer: Tim Pope <vimNOSPAM@tpope.org>
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
5 " URL: https://github.com/vim-ruby/vim-ruby
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents: 557
diff changeset
6 " Release Coordinator: Doug Kearns <dougkearns@gmail.com>
15512
f0f06837a699 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 4869
diff changeset
7 " Last Change: 2019 Jan 06
34778
e1df51f68736 runtime: Remove fallback :CompilerSet definition from compiler plugins
Christian Brabandt <cb@256bit.org>
parents: 15512
diff changeset
8 " 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if exists("current_compiler")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 let current_compiler = "ruby"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 let s:cpo_save = &cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 set cpo-=C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " default settings runs script normally
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " add '-c' switch to run syntax check only:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 "
15512
f0f06837a699 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 4869
diff changeset
21 " CompilerSet makeprg=ruby\ -c
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " or add '-c' at :make command line:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " :make -c %<CR>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 "
15512
f0f06837a699 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 4869
diff changeset
27 CompilerSet makeprg=ruby
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 CompilerSet errorformat=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 \%+E%f:%l:\ parse\ error,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 \%W%f:%l:\ warning:\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 \%E%f:%l:in\ %*[^:]:\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 \%E%f:%l:\ %m,
15512
f0f06837a699 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 4869
diff changeset
34 \%-C%\t%\\d%#:%#\ %#from\ %f:%l:in\ %.%#,
f0f06837a699 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 4869
diff changeset
35 \%-Z%\t%\\d%#:%#\ %#from\ %f:%l,
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 \%-Z%p^,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 \%-G%.%#
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 let &cpo = s:cpo_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 unlet s:cpo_save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 831
diff changeset
42 " vim: nowrap sw=2 sts=2 ts=8: