Skip to content

Commit 1e34a9f

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 1306cc9 + 6c1afa3 commit 1e34a9f

File tree

289 files changed

+35409
-6194
lines changed

Some content is hidden

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

289 files changed

+35409
-6194
lines changed

.github/CODEOWNERS_vim

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ runtime/autoload/tar.vim @cecamp
2323
runtime/autoload/vimball.vim @cecamp
2424
runtime/autoload/xmlformat.vim @chrisbra
2525
runtime/autoload/zip.vim @cecamp
26+
runtime/autoload/dist/json.vim @habamax
2627
runtime/colors/blue.vim @habamax @romainl @neutaaaaan
2728
runtime/colors/darkblue.vim @habamax @romainl @neutaaaaan
2829
runtime/colors/default.vim @habamax @romainl @neutaaaaan

.github/dependabot.yml

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
commit-message:
8+
prefix: "CI"

.github/labeler.yml

+124-75
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,155 @@
11
# list of labels and minimatch globs to match to apply the label.
22

33
CI:
4-
- any: ['.cirrus.yml']
5-
- any: ['.github/dependabot.yml']
6-
- any: ['.github/labeler.yml']
7-
- any: ['.github/workflows/*']
8-
- any: ['.appveyor.yml']
9-
- any: ['.codecov.yml']
4+
- all:
5+
- changed-files:
6+
- any-glob-to-any-file:
7+
- '.cirrus.yml'
8+
- '.github/dependabot.yml'
9+
- '.github/labeler.yml'
10+
- '.github/workflows/*'
11+
- '.appveyor.yml'
12+
- '.codecov.yml'
1013

1114
documentation:
12-
- all: ['*/doc/*']
15+
- all:
16+
- changed-files:
17+
- any-glob-to-all-files:
18+
- '*/doc/*'
1319

1420
translation:
15-
- any: ['src/po/*.po']
21+
- all:
22+
- changed-files:
23+
- any-glob-to-any-file:
24+
- 'src/po/*.po'
1625

1726
if_lua:
18-
- any: ['src/if_lua.c']
19-
- any: ['src/proto/if_lua.pro']
20-
- any: ['runtime/doc/if_lua.txt']
27+
- all:
28+
- changed-files:
29+
- any-glob-to-any-file:
30+
- 'src/if_lua.c'
31+
- 'src/proto/if_lua.pro'
32+
- 'runtime/doc/if_lua.txt'
2133

2234
if_mzscheme:
23-
- any: ['src/if_mzsch.c']
24-
- any: ['src/if_mzsch.h']
25-
- any: ['src/proto/if_mzsch.pro']
26-
- any: ['runtime/doc/if_mzsch.txt']
35+
- all:
36+
- changed-files:
37+
- any-glob-to-any-file:
38+
- 'src/if_mzsch.c'
39+
- 'src/if_mzsch.h'
40+
- 'src/proto/if_mzsch.pro'
41+
- 'runtime/doc/if_mzsch.txt'
2742

2843
if_perl:
29-
- any: ['src/if_perl.xs']
30-
- any: ['src/if_perlsfio.c']
31-
- any: ['src/proto/if_perl.pro']
32-
- any: ['src/proto/if_perlsfio.pro']
33-
- any: ['runtime/doc/if_perl.txt']
44+
- all:
45+
- changed-files:
46+
- any-glob-to-any-file:
47+
- 'src/if_perl.xs'
48+
- 'src/if_perlsfio.c'
49+
- 'src/proto/if_perl.pro'
50+
- 'src/proto/if_perlsfio.pro'
51+
- 'runtime/doc/if_perl.txt'
3452

3553
if_python:
36-
- any: ['src/if_py_both.h']
37-
- any: ['runtime/doc/if_pyth.txt']
38-
- any: ['src/if_python.c']
39-
- any: ['src/if_python3.c']
40-
- any: ['src/proto/if_python.pro']
41-
- any: ['src/proto/if_python3.pro']
54+
- all:
55+
- changed-files:
56+
- any-glob-to-any-file:
57+
- 'src/if_py_both.h'
58+
- 'runtime/doc/if_pyth.txt'
59+
- 'src/if_python.c'
60+
- 'src/if_python3.c'
61+
- 'src/proto/if_python.pro'
62+
- 'src/proto/if_python3.pro'
4263

4364
if_ruby:
44-
- any: ['src/if_ruby.c']
45-
- any: ['src/proto/if_ruby.pro']
46-
- any: ['runtime/doc/if_ruby.txt']
65+
- all:
66+
- changed-files:
67+
- any-glob-to-any-file:
68+
- 'src/if_ruby.c'
69+
- 'src/proto/if_ruby.pro'
70+
- 'runtime/doc/if_ruby.txt'
4771

4872
if_tcl:
49-
- any: ['src/if_tcl.c']
50-
- any: ['src/proto/if_tcl.pro']
51-
- any: ['runtime/doc/if_tcl.txt']
73+
- all:
74+
- changed-files:
75+
- any-glob-to-any-file:
76+
- 'src/if_tcl.c'
77+
- 'src/proto/if_tcl.pro'
78+
- 'runtime/doc/if_tcl.txt'
5279

5380
installer:
54-
- any: ['nsis/**']
55-
- any: ['src/dosinst.*']
56-
- any: ['src/uninstall.c']
81+
- all:
82+
- changed-files:
83+
- any-glob-to-any-file:
84+
- 'nsis/**'
85+
- 'src/dosinst.*'
86+
- 'src/uninstall.c'
5787

5888
platform-mac:
59-
- any: ['src/INSTALLmac.txt']
60-
- any: ['src/os_mac*']
61-
- any: ['src/proto/os_mac*']
89+
- all:
90+
- changed-files:
91+
- any-glob-to-any-file:
92+
- 'src/INSTALLmac.txt'
93+
- 'src/os_mac*'
94+
- 'src/proto/os_mac*'
6295

6396
platform-windows:
64-
- any: ['nsis/**']
65-
- any: ['src/*.bat']
66-
- any: ['src/*.bmp']
67-
- any: ['src/*.ico']
68-
- any: ['src/GvimExt/*']
69-
- any: ['src/INSTALLpc.txt']
70-
- any: ['src/Make_cyg*.mak']
71-
- any: ['src/Make_ming.mak']
72-
- any: ['src/Make_mvc.mak']
73-
- any: ['src/dosinst.*']
74-
- any: ['src/gui_dwrite.*']
75-
- any: ['src/gui_w32*']
76-
- any: ['src/if_ole.*']
77-
- any: ['src/iid_ole.c']
78-
- any: ['src/os_mswin*']
79-
- any: ['src/os_w32*']
80-
- any: ['src/os_win32.*']
81-
- any: ['src/proto/gui_w32.pro']
82-
- any: ['src/proto/os_mswin.pro']
83-
- any: ['src/proto/os_win32.pro']
84-
- any: ['src/proto/winclip.pro']
85-
- any: ['src/uninstall.c']
86-
- any: ['src/vim.manifest']
87-
- any: ['src/vim.rc']
88-
- any: ['src/vimrun.c']
89-
- any: ['src/winclip.c']
90-
- any: ['src/xpm/**']
91-
- any: ['src/xpm_w32.*']
97+
- all:
98+
- changed-files:
99+
- any-glob-to-any-file:
100+
- 'nsis/**'
101+
- 'src/*.bat'
102+
- 'src/*.bmp'
103+
- 'src/*.ico'
104+
- 'src/GvimExt/*'
105+
- 'src/INSTALLpc.txt'
106+
- 'src/Make_cyg*.mak'
107+
- 'src/Make_ming.mak'
108+
- 'src/Make_mvc.mak'
109+
- 'src/dosinst.*'
110+
- 'src/gui_dwrite.*'
111+
- 'src/gui_w32*'
112+
- 'src/if_ole.*'
113+
- 'src/iid_ole.c'
114+
- 'src/os_mswin*'
115+
- 'src/os_w32*'
116+
- 'src/os_win32.*'
117+
- 'src/proto/gui_w32.pro'
118+
- 'src/proto/os_mswin.pro'
119+
- 'src/proto/os_win32.pro'
120+
- 'src/proto/winclip.pro'
121+
- 'src/uninstall.c'
122+
- 'src/vim.manifest'
123+
- 'src/vim.rc'
124+
- 'src/vimrun.c'
125+
- 'src/winclip.c'
126+
- 'src/xpm/**'
127+
- 'src/xpm_w32.*'
92128

93129
runtime:
94-
- any: ['runtime/ftplugin']
95-
- any: ['runtime/syntax']
96-
- any: ['runtime/indent']
97-
- any: ['runtime/pack/dist/opt/termdebug/plugin/termdebug.vim']
98-
99-
termdebug: runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
130+
- all:
131+
- changed-files:
132+
- any-glob-to-any-file:
133+
- 'runtime/ftplugin'
134+
- 'runtime/syntax'
135+
- 'runtime/indent'
136+
- 'runtime/pack/dist/opt/termdebug/plugin/termdebug.vim'
137+
138+
termdebug:
139+
- all:
140+
- changed-files:
141+
- any-glob-to-any-file:
142+
- 'runtime/pack/dist/opt/termdebug/plugin/termdebug.vim'
100143

101144
plugin-netrw:
102-
- any: ['runtime/plugin/netrwPlugin.vim']
103-
- any: ['runtime/autoload/netrw*']
145+
- all:
146+
- changed-files:
147+
- any-glob-to-any-file:
148+
- 'runtime/plugin/netrwPlugin.vim'
149+
- 'runtime/autoload/netrw*'
104150

105151
xxd:
106-
- any: ['src/xxd/*']
152+
- all:
153+
- changed-files:
154+
- any-glob-to-any-file:
155+
- 'src/xxd/*'

.github/workflows/codeql-analysis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
# Initializes the CodeQL tools for scanning.
5050
- name: Initialize CodeQL
51-
uses: github/codeql-action/init@v2
51+
uses: github/codeql-action/init@v3
5252
with:
5353
languages: ${{ matrix.language }}
5454
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -59,7 +59,7 @@ jobs:
5959
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6060
# If this step fails, then you should remove it and run the build manually (see below)
6161
- name: Autobuild
62-
uses: github/codeql-action/autobuild@v2
62+
uses: github/codeql-action/autobuild@v3
6363

6464
# ℹ️ Command-line programs to run using the OS shell.
6565
# 📚 https://git.io/JvXDl
@@ -73,4 +73,4 @@ jobs:
7373
# make release
7474

7575
- name: Perform CodeQL Analysis
76-
uses: github/codeql-action/analyze@v2
76+
uses: github/codeql-action/analyze@v3

.github/workflows/label.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
pull-requests: write
1818

1919
steps:
20-
- uses: actions/labeler@v4
20+
- uses: actions/labeler@v5
2121
with:
2222
repo-token: "${{ secrets.GITHUB_TOKEN }}"
23-
configuration-path: .github/labeler.yml
24-
sync-labels: ''

Filelist

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# source files for all source archives
55
SRC_ALL = \
66
.cirrus.yml \
7-
.coveralls.yml \
87
.gitattributes \
98
.github/CODEOWNERS \
109
.github/ISSUE_TEMPLATE/bug_report.yml \
@@ -863,6 +862,7 @@ RT_DOS = \
863862
README_dos.txt \
864863
runtime/doc/Make_mvc.mak \
865864
runtime/tutor/Make_mvc.mak \
865+
runtime/lang/Make_mvc.mak \
866866
vimtutor.bat \
867867

868868
# DOS runtime without CR-LF translation (also in the extra archive)
@@ -1073,7 +1073,6 @@ LANG_SRC = \
10731073
# the language files for the Win32 lang archive
10741074
LANG_DOS = \
10751075
src/po/*.mo \
1076-
runtime/lang/Make_mvc.mak \
10771076

10781077
# Files in the repository that are deliberately not listed above, and will thus
10791078
# be excluded from distribution tarballs and the like.

runtime/autoload/context.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ vim9script
33
# Language: ConTeXt typesetting engine
44
# Maintainer: Nicola Vitacolonna <[email protected]>
55
# Former Maintainers: Nikolai Weibull <[email protected]>
6-
# Latest Revision: 2022 Sep 19
6+
# Latest Revision: 2023 Dec 26
77

88
# Typesetting {{{
99
import autoload './typeset.vim'

runtime/autoload/dist/ft.vim

+31-11
Original file line numberDiff line numberDiff line change
@@ -1186,26 +1186,46 @@ export def FTv()
11861186
# ":setf" will do nothing, bail out early
11871187
return
11881188
endif
1189+
if exists("g:filetype_v")
1190+
exe "setf " .. g:filetype_v
1191+
return
1192+
endif
11891193

1190-
for line in getline(1, 200)
1191-
if line[0] =~ '^\s*/'
1194+
var in_comment = 0
1195+
for lnum in range(1, min([line("$"), 200]))
1196+
var line = getline(lnum)
1197+
# Skip Verilog and V comments (lines and blocks).
1198+
if line =~ '^\s*/\*'
1199+
# start comment block
1200+
in_comment = 1
1201+
endif
1202+
if in_comment == 1
1203+
if line =~ '\*/'
1204+
# end comment block
1205+
in_comment = 0
1206+
endif
1207+
# skip comment-block line
1208+
continue
1209+
endif
1210+
if line =~ '^\s*//'
11921211
# skip comment line
11931212
continue
11941213
endif
11951214

1196-
# Verilog: line ends with ';' followed by an optional variable number of
1197-
# spaces and an optional start of a comment.
1198-
# Example: " b <= a + 1; // Add 1".
1199-
if line =~ ';\(\s*\)\?\(/.*\)\?$'
1200-
setf verilog
1215+
# Coq: line ends with a '.' followed by an optional variable number of
1216+
# spaces or contains the start of a comment, but not inside a Verilog or V
1217+
# comment.
1218+
# Example: "Definition x := 10. (*".
1219+
if (line =~ '\.\s*$' && line !~ '/[/*]') || (line =~ '(\*' && line !~ '/[/*].*(\*')
1220+
setf coq
12011221
return
12021222
endif
12031223

1204-
# Coq: line ends with a '.' followed by an optional variable number of
1224+
# Verilog: line ends with ';' followed by an optional variable number of
12051225
# spaces and an optional start of a comment.
1206-
# Example: "Definition x := 10. (*".
1207-
if line =~ '\.\(\s*\)\?\((\*.*\)\?$'
1208-
setf coq
1226+
# Example: " b <= a + 1; // Add 1".
1227+
if line =~ ';\s*\(/[/*].*\)\?$'
1228+
setf verilog
12091229
return
12101230
endif
12111231
endfor

0 commit comments

Comments
 (0)