Skip to content

Commit 55fb47f

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 4b008ec + 6c87bbb commit 55fb47f

127 files changed

Lines changed: 4452 additions & 708 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cirrus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ freebsd_task:
88
- name: FreeBSD 13.1
99
freebsd_instance:
1010
image_family: freebsd-13-1
11-
- name: FreeBSD 12.3
11+
- name: FreeBSD 12.4
1212
freebsd_instance:
13-
image_family: freebsd-12-3
13+
image_family: freebsd-12-4
1414
timeout_in: 20m
1515
install_script:
1616
- pkg update -f

.lgtm.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

Filelist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ SRC_ALL = \
1515
.github/dependabot.yml \
1616
.gitignore \
1717
.hgignore \
18-
.lgtm.yml \
1918
.appveyor.yml \
2019
.codecov.yml \
2120
ci/appveyor.bat \
@@ -784,6 +783,7 @@ RT_SCRIPTS = \
784783
runtime/autoload/README.txt \
785784
runtime/autoload/dist/*.vim \
786785
runtime/autoload/xml/*.vim \
786+
runtime/autoload/zig/*.vim \
787787
runtime/colors/*.vim \
788788
runtime/colors/README.txt \
789789
runtime/colors/lists/*.vim \

runtime/autoload/dist/ft.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ vim9script
33
# Vim functions for file type detection
44
#
55
# Maintainer: Bram Moolenaar <[email protected]>
6-
# Last Change: 2022 Apr 13
6+
# Last Change: 2022 Nov 24
77

88
# These functions are moved here from runtime/filetype.vim to make startup
99
# faster.

runtime/autoload/dist/script.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ vim9script
44
# Invoked from "scripts.vim" in 'runtimepath'
55
#
66
# Maintainer: Bram Moolenaar <[email protected]>
7-
# Last Change: 2022 Feb 13
7+
# Last Change: 2022 Nov 24
88

99
export def DetectFiletype()
1010
var line1 = getline(1)

runtime/compiler/dotnet.vim

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
" Vim compiler file
2+
" Compiler: dotnet build (.NET CLI)
3+
" Maintainer: Nick Jensen <[email protected]>
4+
" Last Change: 2022-12-06
5+
" License: Vim (see :h license)
6+
" Repository: https://github.com/nickspoons/vim-cs
7+
8+
if exists("current_compiler")
9+
finish
10+
endif
11+
let current_compiler = "dotnet"
12+
13+
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
14+
command -nargs=* CompilerSet setlocal <args>
15+
endif
16+
17+
let s:cpo_save = &cpo
18+
set cpo&vim
19+
20+
if get(g:, "dotnet_errors_only", v:false)
21+
CompilerSet makeprg=dotnet\ build\ -nologo
22+
\\ -consoleloggerparameters:NoSummary
23+
\\ -consoleloggerparameters:ErrorsOnly
24+
else
25+
CompilerSet makeprg=dotnet\ build\ -nologo\ -consoleloggerparameters:NoSummary
26+
endif
27+
28+
if get(g:, "dotnet_show_project_file", v:true)
29+
CompilerSet errorformat=%E%f(%l\\,%c):\ %trror\ %m,
30+
\%W%f(%l\\,%c):\ %tarning\ %m,
31+
\%-G%.%#
32+
else
33+
CompilerSet errorformat=%E%f(%l\\,%c):\ %trror\ %m\ [%.%#],
34+
\%W%f(%l\\,%c):\ %tarning\ %m\ [%.%#],
35+
\%-G%.%#
36+
endif
37+
38+
let &cpo = s:cpo_save
39+
unlet s:cpo_save

runtime/compiler/zig.vim

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
" Vim compiler file
2+
" Compiler: Zig Compiler
3+
" Upstream: https://github.com/ziglang/zig.vim
4+
5+
if exists("current_compiler")
6+
finish
7+
endif
8+
let current_compiler = "zig"
9+
10+
let s:save_cpo = &cpo
11+
set cpo&vim
12+
13+
if exists(":CompilerSet") != 2
14+
command -nargs=* CompilerSet setlocal <args>
15+
endif
16+
17+
" a subcommand must be provided for the this compiler (test, build-exe, etc)
18+
if has('patch-7.4.191')
19+
CompilerSet makeprg=zig\ \$*\ \%:S
20+
else
21+
CompilerSet makeprg=zig\ \$*\ \"%\"
22+
endif
23+
24+
" TODO: improve errorformat as needed.
25+
26+
let &cpo = s:save_cpo
27+
unlet s:save_cpo
28+
" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab

runtime/compiler/zig_build.vim

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
" Vim compiler file
2+
" Compiler: Zig Compiler (zig build)
3+
" Upstream: https://github.com/ziglang/zig.vim
4+
5+
if exists('current_compiler')
6+
finish
7+
endif
8+
runtime compiler/zig.vim
9+
let current_compiler = 'zig_build'
10+
11+
let s:save_cpo = &cpo
12+
set cpo&vim
13+
14+
15+
if exists(':CompilerSet') != 2
16+
command -nargs=* CompilerSet setlocal <args>
17+
endif
18+
19+
if exists('g:zig_build_makeprg_params')
20+
execute 'CompilerSet makeprg=zig\ build\ '.escape(g:zig_build_makeprg_params, ' \|"').'\ $*'
21+
else
22+
CompilerSet makeprg=zig\ build\ $*
23+
endif
24+
25+
" TODO: anything to add to errorformat for zig build specifically?
26+
27+
let &cpo = s:save_cpo
28+
unlet s:save_cpo
29+
" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab

runtime/compiler/zig_build_exe.vim

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
" Vim compiler file
2+
" Compiler: Zig Compiler (zig build-exe)
3+
" Upstream: https://github.com/ziglang/zig.vim
4+
5+
if exists('current_compiler')
6+
finish
7+
endif
8+
runtime compiler/zig.vim
9+
let current_compiler = 'zig_build_exe'
10+
11+
let s:save_cpo = &cpo
12+
set cpo&vim
13+
14+
15+
if exists(':CompilerSet') != 2
16+
command -nargs=* CompilerSet setlocal <args>
17+
endif
18+
19+
if has('patch-7.4.191')
20+
CompilerSet makeprg=zig\ build-exe\ \%:S\ \$*
21+
else
22+
CompilerSet makeprg=zig\ build-exe\ \"%\"\ \$*
23+
endif
24+
25+
let &cpo = s:save_cpo
26+
unlet s:save_cpo
27+
" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab

runtime/compiler/zig_test.vim

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
" Vim compiler file
2+
" Compiler: Zig Compiler (zig test)
3+
" Upstream: https://github.com/ziglang/zig.vim
4+
5+
if exists('current_compiler')
6+
finish
7+
endif
8+
runtime compiler/zig.vim
9+
let current_compiler = 'zig_test'
10+
11+
let s:save_cpo = &cpo
12+
set cpo&vim
13+
14+
15+
if exists(':CompilerSet') != 2
16+
command -nargs=* CompilerSet setlocal <args>
17+
endif
18+
19+
if has('patch-7.4.191')
20+
CompilerSet makeprg=zig\ test\ \%:S\ \$*
21+
else
22+
CompilerSet makeprg=zig\ test\ \"%\"\ \$*
23+
endif
24+
25+
let &cpo = s:save_cpo
26+
unlet s:save_cpo
27+
" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab

0 commit comments

Comments
 (0)