]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
16 months agoruntime(kconfig): add include to ftplugin (#14524)
Christian Brabandt [Fri, 12 Apr 2024 16:33:48 +0000 (17:33 +0100)] 
runtime(kconfig): add include to ftplugin (#14524)

related: #14521

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(doc): mention :argded for :argedit
Christian Brabandt [Fri, 12 Apr 2024 08:17:57 +0000 (10:17 +0200)] 
runtime(doc): mention :argded for :argedit

related: #14464

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoProblem: Commit 6f585d breaks CI
Christian Brabandt [Thu, 11 Apr 2024 21:10:54 +0000 (23:10 +0200)] 
Problem:  Commit 6f585d breaks CI

Problem:  Commit 6f585d breaks CI
Solution: Don't error out, simply return an error message.

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0309: crash when 'textwidth' > MAX_INT v9.1.0309
Christian Brabandt [Thu, 11 Apr 2024 20:54:44 +0000 (22:54 +0200)] 
patch 9.1.0309: crash when 'textwidth' > MAX_INT

Problem:  crash when 'textwidth' > MAX_INT (after vv9.1.0055)
          (Zoltan Balogh)
Solution: limit textwidth to MAX_INT

fixes: #14482
closes: #14489

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(doc): typo in intro.txt
Antonio Giovanni Colombo [Thu, 11 Apr 2024 20:11:21 +0000 (22:11 +0200)] 
runtime(doc): typo in intro.txt

16 months agoOverlong translation files may cause repo to become "dirty"
Christian Brabandt [Thu, 11 Apr 2024 20:02:28 +0000 (22:02 +0200)] 
Overlong translation files may cause repo to become "dirty"

Problem:  Overlong translation files may cause repo to become "dirty"
Solution: Add a test into check.vim to warn for lines being longer than
          80 virt columns

related: #14490

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0308: configure: msgfmt hardcoded v9.1.0308
Vladimír Marek [Thu, 11 Apr 2024 19:54:34 +0000 (21:54 +0200)] 
patch 9.1.0308: configure: msgfmt hardcoded

Problem:  configure: msgfmt hardcoded (after v9.1.0173)
Solution: use $MSGFMT instead of msgfmt in configure script,
          regenerate the configure script
          (Vladimír Marek)

fixes: #14515

Signed-off-by: Vladimír Marek <vlmarek13@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(compiler): add vimdoc
Wu, Zhenyu [Thu, 11 Apr 2024 19:25:39 +0000 (21:25 +0200)] 
runtime(compiler): add vimdoc

closes: #14459

https://github.com/google/vimdoc generates vim help files from vimscript files

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(doc): clarify behaviour or :argadd and :argedit
Christian Brabandt [Thu, 11 Apr 2024 19:21:51 +0000 (21:21 +0200)] 
runtime(doc): clarify behaviour or :argadd and :argedit

related: #14464

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0307: filetype: texdoc config files is not recognized v9.1.0307
Wu, Zhenyu [Thu, 11 Apr 2024 18:53:33 +0000 (20:53 +0200)] 
patch 9.1.0307: filetype: texdoc config files is not recognized

Problem:  filetype: texdoc config files is not recognized
Solution: Detect 'texdoc.cnf' as conf filetype
          (Wu, Zhenyu)

See: https://github.com/TeX-Live/texdoc/blob/master/texdoc.cnf

closes: #14507

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0306: filetype: x11vnc config file is not recognized v9.1.0306
Wu, Zhenyu [Thu, 11 Apr 2024 18:47:45 +0000 (20:47 +0200)] 
patch 9.1.0306: filetype: x11vnc config file is not recognized

Problem:  filetype: x11vnc config file is not recognized
Solution: Detect '.x11vncrc' as conf filetype
          (Wu, Zhenyu)

See: https://linux.die.net/man/1/x11vnc

closes: #14511

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0305: filetype: some history files are not recognized v9.1.0305
Wu, Zhenyu [Thu, 11 Apr 2024 18:43:00 +0000 (20:43 +0200)] 
patch 9.1.0305: filetype: some history files are not recognized

Problem:  filetype: some history files are not recognized
Solution: Add some history patterns to filetype.vim
          (Wu, Zhenyu)

closes: #14513

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoftplugin(asm): add Matchit support
Wu, Zhenyu [Wed, 10 Apr 2024 20:57:31 +0000 (22:57 +0200)] 
ftplugin(asm): add Matchit support

closes: #14461

Refer https://github.com/vim/vim/blob/master/runtime/ftplugin/masm.vim#L18-L29

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0304: filetype: cgdb config file is not recognized v9.1.0304
Wu, Zhenyu [Wed, 10 Apr 2024 20:52:40 +0000 (22:52 +0200)] 
patch 9.1.0304: filetype: cgdb config file is not recognized

Problem:  filetype: cgdb config file is not recognized
Solution: Detect cgdbrc files as cgdbrc filetype
          (Wu, Zhenyu)

closes: #14458

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(asm): add basic indent support
Wu, Zhenyu [Wed, 10 Apr 2024 20:48:57 +0000 (22:48 +0200)] 
runtime(asm): add basic indent support

closes: #14383

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoftplugin(gdb): add matchit support
Wu, Zhenyu [Wed, 10 Apr 2024 20:42:10 +0000 (22:42 +0200)] 
ftplugin(gdb): add matchit support

closes: #14462

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0303: filetype: some protocol buffer files not recognized v9.1.0303
Bruno BELANYI [Wed, 10 Apr 2024 20:34:42 +0000 (22:34 +0200)] 
patch 9.1.0303: filetype: some protocol buffer files not recognized

Problem:  filetype: some protocol buffer files not recognized
Solution: Detect '*.textproto', '*.textpb', '*.txtpb' as pbtxt files
          (Bruno Belanyi)

See: https://protobuf.dev/reference/protobuf/textformat-spec/#text-format-files

closes: #14463

Signed-off-by: Bruno BELANYI <bruno@belanyi.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0302: filetype: blueprint files are not recognized v9.1.0302
Bruno BELANYI [Wed, 10 Apr 2024 20:28:28 +0000 (22:28 +0200)] 
patch 9.1.0302: filetype: blueprint files are not recognized

Problem:  filetype: blueprint files are not recognized
Solution: Detect '*.bp' files as blueprint files, add
          a minimal filetype plugin (Bruno Belanyi)

See: https://source.android.com/docs/setup/build

closes: #14488

Signed-off-by: Bruno BELANYI <bruno@belanyi.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(vim): Improve Vim9 and legacy-script comment highlighting (#13104)
dkearns [Wed, 10 Apr 2024 20:18:37 +0000 (06:18 +1000)] 
runtime(vim): Improve Vim9 and legacy-script comment highlighting (#13104)

This is a first-pass attempt to limit matching of Vim9 and legacy-script
comments to the appropriate syntactic contexts.

Vim9-script comments are highlighted at top level in a Vim9-script file,
in all :def functions, and in all :autocmd and :commmand command blocks.
Legacy-script comments are highlighted at top level in a legacy script
file, in all :func functions and in the Vim9-script preamble before the
:vim9script marker command.

Fixes #13047, #11307 and #9587.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0301: Vim9: heredoc start may be recognized in string v9.1.0301
zeertzjq [Wed, 10 Apr 2024 15:37:47 +0000 (17:37 +0200)] 
patch 9.1.0301: Vim9: heredoc start may be recognized in string

Problem:  Vim9: heredoc start may be recognized in string.
Solution: Don't skip to closing bracket for invalid list assignment.
          (zeertzjq)

closes: #14472

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0300: Missing test for what patch v9.1.0285 fixes v9.1.0300
Luuk van Baal [Wed, 10 Apr 2024 15:33:43 +0000 (17:33 +0200)] 
patch 9.1.0300: Missing test for what patch v9.1.0285 fixes

Problem:  Missing test for what patch v9.1.0285 fixes
Solution: Add a test for cursor movement at buffer boundaries.
          (Luuk van Baal)

closes: #14470

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0299: Vim9: return type not set for a lambda assigned to script var v9.1.0299
Yegappan Lakshmanan [Wed, 10 Apr 2024 15:18:19 +0000 (17:18 +0200)] 
patch 9.1.0299: Vim9: return type not set for a lambda assigned to script var

Problem:  Vim9: return type not set for a lambda assigned to script var
          (Ernie Rael)
Solution: Correctly determine the return type (Yegappan Lakshmanan)

fixes: #14445
closes: #14473

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoadd runtime/doc/tags-* to ignore files (#14479)
shane.xb.qian [Wed, 10 Apr 2024 15:15:34 +0000 (17:15 +0200)] 
add runtime/doc/tags-* to ignore files (#14479)

closes: #14479

Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agotranslation(ru): Updated translation (#14481)
Restorer [Wed, 10 Apr 2024 15:05:24 +0000 (15:05 +0000)] 
translation(ru): Updated translation (#14481)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(doc): Update documentation
RestorerZ [Wed, 10 Apr 2024 14:57:12 +0000 (16:57 +0200)] 
runtime(doc): Update documentation

- Add security e-mail for private bugreports
- Remove mentioning of the voting feature

closes: #14483

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Co-authored-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0298: MS-Windows: GETTEXT_PATH hard-coded in src/po/Make_mvc.mak v9.1.0298
Cthulhux [Wed, 10 Apr 2024 14:34:49 +0000 (16:34 +0200)] 
patch 9.1.0298: MS-Windows: GETTEXT_PATH hard-coded in src/po/Make_mvc.mak

Problem:  MS-Windows: GETTEXT_PATH hard-coded in src/po/Make_mvc.mak
Solution: Add IFNDEF/ENDIF around the definition of GETTEXT_PATH
          (Cthulhux)

It makes no sense to enforce modifying Vim source files just because
your build stuff is not where it's expected. My change is supposed to
add support for a locally-defined %GETTEXT_PATH%.

closes: #14480

Signed-off-by: Cthulhux <github@tuxproject.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0297: Patch 9.1.0296 causes too many issues v9.1.0297
Christian Brabandt [Wed, 10 Apr 2024 14:18:15 +0000 (16:18 +0200)] 
patch 9.1.0297: Patch 9.1.0296 causes too many issues

Problem:  Patch 9.1.0296 causes too many issues
          (Tony Mechelynck, @chdiza, CI)
Solution: Back out the change for now

Revert "patch 9.1.0296: regexp: engines do not handle case-folding well"

This reverts commit 7a27c108e0509f3255ebdcb6558e896c223e4d23 it causes
issues with syntax highlighting and breaks the FreeBSD and MacOS CI. It
needs more work.

fixes: #14487

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoNSIS: Fix a few issues with gvim.nsi
RestorerZ [Tue, 9 Apr 2024 21:04:44 +0000 (23:04 +0200)] 
NSIS: Fix a few issues with gvim.nsi

- correctly find libsodium.dll
- disable inclusion of libgcc_s_sjlj-1.dll
- generate PATCHLEVEL correctly

related: #14214
closes: #14465

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0296: regexp: engines do not handle case-folding well v9.1.0296
Christian Brabandt [Tue, 9 Apr 2024 20:53:19 +0000 (22:53 +0200)] 
patch 9.1.0296: regexp: engines do not handle case-folding well

Problem:  Regex engines do not handle case-folding well
Solution: Correctly calculate byte length of characters to skip

When the regexp engine compares two utf-8 codepoints case insensitively
it may match an adjacent character, because it assumes it can step over
as many bytes as the pattern contains.

This however is not necessarily true because of case-folding, a
multi-byte UTF-8 character can be considered equal to some single-byte
value.

Let's consider the pattern 'ſ' and the string 's'. When comparing and
ignoring case, the single character 's' matches, and since it matches
Vim will try to step over the match (by the amount of bytes of the
pattern), assuming that since it matches, the length of both strings is
the same.

However in that case, it should only step over the single byte
value 's' so by 1 byte and try to start matching after it again. So for the
backtracking engine we need to ensure:
- we try to match the correct length for the pattern and the text
- in case of a match, we step over it correctly

The same thing can happen for the NFA engine, when skipping to the next
character to test for a match. We are skipping over the regstart
pointer, however we do not consider the case that because of
case-folding we may need to adjust the number of bytes to skip over. So
this needs to be adjusted in find_match_text() as well.

A related issue turned out, when prog->match_text is actually empty. In
that case we should try to find the next match and skip this condition.

fixes: #14294
closes: #14433

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0295: filetype: pip config files are not recognized v9.1.0295
Wu, Zhenyu [Tue, 9 Apr 2024 20:49:19 +0000 (22:49 +0200)] 
patch 9.1.0295: filetype: pip config files are not recognized

Problem:  filetype: pip config files are not recognized
Solution: detect pip.conf as dosini filetype
          (Wu, Zhenyu)

closes: #14448

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0294: Text height function does not respect it's argument v9.1.0294
Luuk van Baal [Tue, 9 Apr 2024 20:43:49 +0000 (22:43 +0200)] 
patch 9.1.0294: Text height function does not respect it's argument

Problem:  plines_m_win() does not take into account it's "limit_winheight"
          argument for filler lines below the last line of the buffer.
          (after v9.1.0280)
Solution: Check window height when "limit_winheight" is TRUE.
          (Luuk van Baal)

closes: #14449

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0293: filetype: lxqt config files are not recognized v9.1.0293
Wu, Zhenyu [Tue, 9 Apr 2024 20:39:53 +0000 (22:39 +0200)] 
patch 9.1.0293: filetype: lxqt config files are not recognized

Problem:  filetype: lxqt config files are not recognized
Solution: Detect {lxqt,screengrab}/*.conf files as dosini,
          fix failing filetype test for */tex/latex/**.cfg
          (Wu, Zhenyu)

closes: #14450

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0292: filetype: XDG mimeapps.list file is not recognized v9.1.0292
Wu, Zhenyu [Tue, 9 Apr 2024 20:25:41 +0000 (22:25 +0200)] 
patch 9.1.0292: filetype: XDG mimeapps.list file is not recognized

Problem:  filetype: XDG mimeapps.list file is not recognized
Solution: Detect mimeapps.list as dosini filetype
          (Wu, Zhenyu)

Refer: https://wiki.archlinux.org/title/XDG_MIME_Applications#Format

closes: #14451

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0291: filetype: libreoffice config files are not recognized v9.1.0291
Wu, Zhenyu [Tue, 9 Apr 2024 20:20:55 +0000 (22:20 +0200)] 
patch 9.1.0291: filetype: libreoffice config files are not recognized

Problem:  filetype: libreoffice config files are not recognized
Solution: Detect Libreoffice config fils as xml/dosini
          (Wu, Zhenyu)

closes: #14453

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0290: filetype: xilinx files are not recognized v9.1.0290
Wu, Zhenyu [Tue, 9 Apr 2024 20:14:37 +0000 (22:14 +0200)] 
patch 9.1.0290: filetype: xilinx files are not recognized

Problem:  filetype: xilinx files are not recognized
Solution: Add a few xilinx specific file patterns,
          inspect lpr files for being xml/pascal
          (Wu, Zhenyu)

closes: #14454

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0289: filetype: some TeX files are not recognized v9.1.0289
Wu, Zhenyu [Tue, 9 Apr 2024 20:09:30 +0000 (22:09 +0200)] 
patch 9.1.0289: filetype: some TeX files are not recognized

Problem:  filetype: some TeX files are not recognized
Solution: Add more patterns for TeX files and inspect
          a few more files for being TeX files
          (Wu, Zhenyu)

closes: #14456

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0288: MS-Windows: compiler warning for size_t to int conversion v9.1.0288
Mike Williams [Tue, 9 Apr 2024 20:04:54 +0000 (22:04 +0200)] 
patch 9.1.0288: MS-Windows: compiler warning for size_t to int conversion

Problem:  MS-Windows: compiler warning for size_t to int conversion
          (after  v9.1.0282)
Solution: Use size_t instead of int in highlight_set_termgui_attr
          (Mike Williams)

closes: #14457

Signed-off-by: Mike Williams <mrmrdubya@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0287: Vim9: comment may be treated as heredoc start v9.1.0287
zeertzjq [Tue, 9 Apr 2024 19:47:10 +0000 (21:47 +0200)] 
patch 9.1.0287: Vim9: comment may be treated as heredoc start

Problem:  Vim9: comment may be treated as heredoc start.
          (Ernie Rael)
Solution: Use skip_var_list() instead of find_name_end().
          (zeertzjq)

fixes: #14444
closes: #14446

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0286: Vim9: E1027 with defcompile for abstract methods v9.1.0286
Yegappan Lakshmanan [Tue, 9 Apr 2024 19:39:27 +0000 (21:39 +0200)] 
patch 9.1.0286: Vim9: E1027 with defcompile for abstract methods

Problem:  Vim9: E1027 with defcompile for abstract methods with
          non-void return types, but still compiles it
          (zzzyxwvut)
Solution: Don't compile abstract methods
          (Yegappan Lakshmanan)

fixes: #14443
closes: #14447

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0285: Still problems with cursor position for CTRL-D/U v9.1.0285
Luuk van Baal [Tue, 9 Apr 2024 19:30:19 +0000 (21:30 +0200)] 
patch 9.1.0285: Still problems with cursor position for CTRL-D/U

Problem:  Problems with cursor position when scrolling half a page.
Solution: Rework the cursor logic. (Luuk van Baal)

closes: #14455

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(compiler): fix inaccuracies in pandoc compiler (#14467)
Enno [Tue, 9 Apr 2024 19:26:55 +0000 (21:26 +0200)] 
runtime(compiler): fix inaccuracies in pandoc compiler (#14467)

as kindly pointed out by @Freed-Wu

Signed-off-by: Enno <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0284: make testclean is not able to delete failed screendumps v9.1.0284
Julio B [Tue, 9 Apr 2024 19:22:41 +0000 (21:22 +0200)] 
patch 9.1.0284: make testclean is not able to delete failed screendumps

Problem:  make testclean is not able to delete failed screendumps.
Solution: Remove the "failed" directory when necessary.
          (Julio B)

Patch 8.1.1080 changed the way that failed screendumps are saved, but
the "rm -rf *.failed" clean command was not ported correctly.

closes: #14468

Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(vim): Update base-syntax, no curly-brace names in Vim9 script (#14466)
dkearns [Tue, 9 Apr 2024 19:19:41 +0000 (05:19 +1000)] 
runtime(vim): Update base-syntax, no curly-brace names in Vim9 script (#14466)

Remove curly-brace name matching for :def functions.  This is not
supported in Vim9 script.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0282: Several small issues in doc and tests v9.1.0283
Christian Brabandt [Tue, 9 Apr 2024 06:06:52 +0000 (08:06 +0200)] 
patch 9.1.0282: Several small issues in doc and tests

Problem:  Wrong doc style for pandoc syntax description,
          Test_diff_eob_halfpage() may fail depending on
          screen size, using braces in highlight.c when
          not necessary
Solution: Fix pandoc documentation, make sure the window
          for the test has 7 lines, remove the braces.

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0282: Finding highlighting attributes is inefficient v9.1.0282
John Marriott [Mon, 8 Apr 2024 21:28:12 +0000 (23:28 +0200)] 
patch 9.1.0282: Finding highlighting attributes is inefficient

Problem:  Finding highlighting attributes is inefficient
Solution: Use binary search to find highlighting attributes and color
          names (John Marriott)

closes: #14426

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0281: CI: fails Test_compiler_completion v9.1.0281
Christian Brabandt [Mon, 8 Apr 2024 20:54:16 +0000 (22:54 +0200)] 
patch 9.1.0281: CI: fails Test_compiler_completion

Problem:  CI: fails Test_compiler_completion
Solution: Add pandoc compiler

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(cuda): Update cuda keywords, remove uncommonly used enumeration constants
jiangyinzuo [Mon, 8 Apr 2024 20:48:43 +0000 (22:48 +0200)] 
runtime(cuda): Update cuda keywords, remove uncommonly used enumeration constants

closes: #14406

Signed-off-by: jiangyinzuo <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0280: several issues with 'smoothscroll' support v9.1.0280
Luuk van Baal [Mon, 8 Apr 2024 20:27:41 +0000 (22:27 +0200)] 
patch 9.1.0280: several issues with 'smoothscroll' support

Problem:  Logic to make sure cursor is in visible part of the screen after
          scrolling the text with 'smoothscroll' is scattered, asymmetric
          and contains bugs.
Solution: Adjust and create helper function for 'smoothscroll' cursor logic.
          (Luuk van Baal)

closes: #14410

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0279: filetype: roc files are not recognized v9.1.0279
nat-418 [Mon, 8 Apr 2024 20:23:22 +0000 (22:23 +0200)] 
patch 9.1.0279: filetype: roc files are not recognized

Problem:  filetype: roc files are not recognized
Solution: Detect '*.roc' files as roc filetype,
          add a basic filetype plugin (nat-418)

closes: #14416

Signed-off-by: nat-418 <93013864+nat-418@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0278: filetype: zathurarc files not recognized v9.1.0278
Wu, Zhenyu [Mon, 8 Apr 2024 20:19:06 +0000 (22:19 +0200)] 
patch 9.1.0278: filetype: zathurarc files not recognized

Problem:  filetype: zathurarc files not recognized
Solution: Detect '.zathurarc' files as zathurarc filetype,
          add zathurarc filetype (Wu, Zhenyu)

closes: #14380

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0277: Cannot highlight the Command-line v9.1.0277
Shougo Matsushita [Mon, 8 Apr 2024 20:11:50 +0000 (22:11 +0200)] 
patch 9.1.0277: Cannot highlight the Command-line

Problem:  Cannot highlight the Command-line
Solution: Add the MsgArea highlighting group
          (Shougo Matsushita)

closes: #14327

Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0276: No pandoc syntax support v9.1.0276
Wu, Zhenyu [Mon, 8 Apr 2024 18:53:19 +0000 (20:53 +0200)] 
patch 9.1.0276: No pandoc syntax support

Problem:  No pandoc syntax support
Solution: Add pandoc syntax and compiler plugins
          (Wu, Zhenyu, Konfekt)

closes: #14389

Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0275: filetype: R history files are not recognized v9.1.0275
Wu, Zhenyu [Mon, 8 Apr 2024 18:26:29 +0000 (20:26 +0200)] 
patch 9.1.0275: filetype: R history files are not recognized

Problem:  filetype: R history files are not recognized
Solution: Detect '.Rhistory' files as r filetype
          (Wu, Zhenyu)

closes: #14440

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0274: MS-Windows: a few compiler warnings v9.1.0274
Mike Williams [Sun, 7 Apr 2024 16:26:22 +0000 (18:26 +0200)] 
patch 9.1.0274: MS-Windows: a few compiler warnings

Problem:  MS-Windows: a few compiler warnings
Solution: Change variable types to resolve compiler warnings
          (Mike Williams)

Windows compiles were reporting a few size_t to signed integer
conversion warnings that can be resolved by changing the variable
declarations to be size_t to start with.

closes: #14429

Signed-off-by: Mike Williams <mrmrdubya@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0273: filetype: keymap files are not recognized v9.1.0273
0xadk [Sun, 7 Apr 2024 16:22:41 +0000 (18:22 +0200)] 
patch 9.1.0273: filetype: keymap files are not recognized

Problem:  filetype: keymap files are not recognized
Solution: Detect '*.keymap' files as Device Tree Files
          (0xadk)

closes: #14434

Signed-off-by: 0xadk <0xadk@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0272: autocmd may change cwd after :tcd and :lcd v9.1.0272
zeertzjq [Sun, 7 Apr 2024 16:16:10 +0000 (18:16 +0200)] 
patch 9.1.0272: autocmd may change cwd after :tcd and :lcd

Problem:  Autocommand may change currect directory after :tcd and :lcd.
Solution: Also clear tp_localdir and w_localdir when using aucmd_win.
          (zeertzjq)

closes: #14435

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(vim): Update syntax generator, autocmd event list parsing
Doug Kearns [Sun, 7 Apr 2024 15:47:15 +0000 (17:47 +0200)] 
runtime(vim): Update syntax generator, autocmd event list parsing

Track changes to the autocommand event list introduced in commit
78d742a (Patch 9.1.0256).

closes: #14430

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(doc): Normalise builtin-function optional parameter formatting
Doug Kearns [Sun, 7 Apr 2024 15:42:17 +0000 (17:42 +0200)] 
runtime(doc): Normalise builtin-function optional parameter formatting

These should generally be formatted as func([{arg}]) and referenced as
{arg} in the description.

closes: #14438

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0271: CI sound test aborts with undefined variable v9.1.0271
Christian Brabandt [Fri, 5 Apr 2024 18:15:48 +0000 (20:15 +0200)] 
patch 9.1.0271: CI sound test aborts with undefined variable

Problem:  CI sound test aborts with undefined variable
Solution: initialize g:result in test_sound.vim

closes: #14424

Signed-off-by:
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoNSIS: Correctly distribute libsodium with the installer (#14422)
Christian Brabandt [Fri, 5 Apr 2024 18:14:46 +0000 (19:14 +0100)] 
NSIS: Correctly distribute libsodium with the installer (#14422)

closes: vim/vim-win32-installer#337

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0270: a few minor issues to fix v9.1.0270
Christian Brabandt [Fri, 5 Apr 2024 18:12:19 +0000 (20:12 +0200)] 
patch 9.1.0270: a few minor issues to fix

The following is a collection of some small fixes:

- Problem:  Vim9: funcref pointer pt leaks, when function is not found
  Solution: Free funcref pointer in case of error (fixes: #14254)

- Problem:  memory leak of crypt state pointer allocation fails
  Solution: free crypt state pointer properly (fixes: #14253)

- Problem:  Vim9: Leaking memory when compiling dict fails
  Solution: Free the memory in case of error (fixes: #14252)

- Problem:  Coverity complains about derefencing obj_members pointer
            (after v9.1.0261)
  Solution: Verify that obj_members ptr is non-null before accessing it

  References: https://scan5.scan.coverity.com/#/project-view/41242/10101?selectedIssue=1596133

closes: #14412

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0269: Test for TextChanged is still flaky with ASAN v9.1.0269
zeertzjq [Fri, 5 Apr 2024 18:07:39 +0000 (20:07 +0200)] 
patch 9.1.0269: Test for TextChanged is still flaky with ASAN

Problem:  Test for TextChanged is still flaky with ASAN.
Solution: Don't index the result of readfile().
          (zeertzjq)

It turns out that with ASAN the file may become empty during a write
even if it's non-empty both before and after the write, in which case
indexing the result of readfile() will error, so use join() instead.

Also don't delete the file halfway the test, just in case it may cause
errors on the next read.

closes: #14421

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0268: Two tests in test_filechanged.vim are slow v9.1.0268
zeertzjq [Fri, 5 Apr 2024 18:05:11 +0000 (20:05 +0200)] 
patch 9.1.0268: Two tests in test_filechanged.vim are slow

Problem:  Two tests in test_filechanged.vim are slow.
Solution: Sleep for shorter if the +nanotime feature is available.
          (zeertzjq)

closes: #14418

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0267: File name entered in GUI dialog is ignored v9.1.0267
zeertzjq [Fri, 5 Apr 2024 18:02:55 +0000 (20:02 +0200)] 
patch 9.1.0267: File name entered in GUI dialog is ignored

Problem:  File name entered in GUI dialog is ignored (after v9.1.0265)
Solution: Only set file name to "Untitled" if GUI dialog didn't set it.
          (zeertzjq)

closes: #14417

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime: fix :compiler leaving behind a g:makeprg variable (#14414)
zeertzjq [Fri, 5 Apr 2024 18:01:16 +0000 (02:01 +0800)] 
runtime: fix :compiler leaving behind a g:makeprg variable (#14414)

Problem:  :compiler may leave behind a g:makeprg variable after #14336.
Solution: Use a script local variable.

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime: Remove more fallback :CompilerSet definitions from compiler plugins (#14413)
Yinzuo Jiang [Fri, 5 Apr 2024 17:59:39 +0000 (01:59 +0800)] 
runtime: Remove more fallback :CompilerSet definitions from compiler plugins (#14413)

Continue with #14399

Signed-off-by: jiangyinzuo <jiangyinzuo@foxmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0266: filetype: earthfile files are not recognized v9.1.0266
Gaëtan Lehmann [Fri, 5 Apr 2024 17:52:38 +0000 (19:52 +0200)] 
patch 9.1.0266: filetype: earthfile files are not recognized

Problem:  filetype: earthfile files are not recognized
Solution: Detect 'Earthfile' as earthfile
          (Gaëtan Lehmann)

closes: #14408

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0265: console dialog cannot save unnamed buffers v9.1.0265
glepnir [Thu, 4 Apr 2024 20:23:29 +0000 (22:23 +0200)] 
patch 9.1.0265: console dialog cannot save unnamed buffers

Problem:  console dialog cannot save unnamed buffers
Solution: set bufname before save (glepnir). Define dialog_con_gui
          to test for GUI+Console dialog support, use it to skip
          the test when the GUI feature has been defined.

Note: The dialog_changed() function will also try to call the
browse_save_fname() function, when FEAT_BROWSE is defined (which is only
defined in a GUI build of Vim). This will eventually lead to a call of
do_browse(), which causes an error message if a GUI is not currently
running (see the TODO: in do_browse()) and will then lead to a failure
in Test_goto_buf_with_onfirm().

Therefore, we must disable the Test_goto_buf_with_onfirm(), when the
dialog_con_gui feature is enabled (which basically means dialog feature
for GUI and Console builds, in contrast to the dialog_con and dialog_gui
feature).

(Previously this wasn't a problem, because the test aborted in the YES
case for the :confirm :b XgotoConf case and did therefore not run into
the browse function call)

closes: #14398

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(doc): Fill in a few details regarding :enums (#14349)
Aliaksei Budavei [Thu, 4 Apr 2024 20:05:33 +0000 (23:05 +0300)] 
runtime(doc): Fill in a few details regarding :enums (#14349)

- Mention the support of eval() for enumeration values.

- Clarify the extent of immutability for enumeration values.

- Specify the requirements for class methods to meet for
  class variable initialisation and their use in nested
  functions and lambda expressions.

- Remove a duplicate sentence that describes how to access
  parent class methods in derivative classes (see another
  "copy" two paragraphs below).

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime: Remove fallback :CompilerSet definition from compiler plugins
Doug Kearns [Thu, 4 Apr 2024 20:00:58 +0000 (22:00 +0200)] 
runtime: Remove fallback :CompilerSet definition from compiler plugins

The :CompilerSet command was added in version Vim 6.4 which was released
twenty years ago.  Other runtime files do not support versions of that
vintage so it is reasonable to remove this fallback command definition
now.

closes: #14399

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0264: libgpm may delete some signal handlers v9.1.0264
Julio B [Thu, 4 Apr 2024 19:55:10 +0000 (21:55 +0200)] 
patch 9.1.0264: libgpm may delete some signal handlers

Problem:  libgpm may delete some signal handlers
Solution: restore these signal handlers after calling gpm
          (Julio B)

When 'mouse' is set, vim is trying to detect mouse support on startup.
Eventually, vim resorts to using libgpm as the final method of
mouse detection. This library may delete some signals handlers that were
initially set up by vim.

This is how:
- mch_setmouse() calls gpm_open()
- Gpm_Open is executed, which returns early on line 210 [1]
- Keep in mind that lines 353-373 [2] are skipped, so
  gpm_saved_suspend_hook and gpm_saved_winch_hook are empty
- Finally, Gpm_Close is called, which will reset [3] SIGWINCH and
  SIGTSTP to an empty sigaction.

[1] https://github.com/telmich/gpm/blob/e82d1a653ca94aa4ed12441424da6ce780b1e530/src/lib/liblow.c#L210
[2] https://github.com/telmich/gpm/blob/e82d1a653ca94aa4ed12441424da6ce780b1e530/src/lib/liblow.c#L353-L373
[3] https://github.com/telmich/gpm/blob/e82d1a653ca94aa4ed12441424da6ce780b1e530/src/lib/liblow.c#L419-L424

fixes: #12154
closes: #14401

Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(java): Improve the matching of contextual keywords
Aliaksei Budavei [Thu, 4 Apr 2024 19:51:18 +0000 (21:51 +0200)] 
runtime(java): Improve the matching of contextual keywords

- Recognise a _record_ contextual keyword.
- Recognise _non-sealed_, _sealed_, and _permits_ contextual
  keywords.
- Admit _$_ to keyword characters.
- Group _abstract_, _final_, _default_, _(non-)sealed_
  (apart from _(non-)sealed_, the incompossibility of these
  modifiers calls for attention).
- Remove another _synchronized_ keyword redefinition.

I have also replaced a function with an expression.  Before
patch 8.1.0515, it should have been declared :function! to
work with repeatable script sourcing; there is less to worry
about with an expression.

References:
https://openjdk.org/jeps/395 (Records)
https://openjdk.org/jeps/409 (Sealed Classes)
https://docs.oracle.com/javase/specs/jls/se21/html/jls-3.html#jls-3.8

closes: #14403

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0263: Vim9: Problem with lambda blocks in enums and classes v9.1.0263
Yegappan Lakshmanan [Thu, 4 Apr 2024 19:42:07 +0000 (21:42 +0200)] 
patch 9.1.0263: Vim9: Problem with lambda blocks in enums and classes

Problem:  Vim9: Problem with lambda blocks in enums and classes
          (Aliaksei Budavei)
Solution: Support evaluating lambda blocks from a string, skip over
          comments (Yegappan Lakshmanan)

fixes: #14350
closes: #14405

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0262: Test for TextChanged is flaky with ASAN v9.1.0262
zeertzjq [Thu, 4 Apr 2024 19:33:36 +0000 (21:33 +0200)] 
patch 9.1.0262: Test for TextChanged is flaky with ASAN

Problem:  Test for TextChanged is flaky with ASAN.
Solution: Wait for the file to be non-empty.
          (zeertzjq)

closes: #14404

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0261: Vim9: protected class and funcrefs accessible outside the class v9.1.0261
Yegappan Lakshmanan [Thu, 4 Apr 2024 17:35:59 +0000 (19:35 +0200)] 
patch 9.1.0261: Vim9: protected class and funcrefs accessible outside the class

Problem:  Vim9: protected class and funcrefs accessible outside the class
          (Aliaksei Budavei)
Solution: Check if class and object funcrefs are protected
          (Yegappan)

closes: #14407

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0260: Problems with "zb" and scrolling to new topline with 'smoothscroll' v9.1.0260
Luuk van Baal [Wed, 3 Apr 2024 20:50:40 +0000 (22:50 +0200)] 
patch 9.1.0260: Problems with "zb" and scrolling to new topline with 'smoothscroll'

Problem: "zb" does not reveal filler lines at the start of a buffer.
          Scrolled cursor position with 'smoothscroll' is unpredictable,
          and may reset skipcol later if it is not visible (after v9.1.258)
Solution: Replace confusing for loop that reaches final control value too
          early with while loop. Set "w_curswant" accordingly so cursor
          will be placed in visible part of topline.
          (Luuk van Baal)

closes: #14394

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(netrw): filetype not detected when editing remote files
Christian Brabandt [Wed, 3 Apr 2024 20:44:27 +0000 (22:44 +0200)] 
runtime(netrw): filetype not detected when editing remote files

fixes: #14400

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(doc): sort filetype.txt in the alphabetical order (#14395)
K.Takata [Wed, 3 Apr 2024 20:42:10 +0000 (05:42 +0900)] 
runtime(doc): sort filetype.txt in the alphabetical order (#14395)

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0259: Normal mode TextChanged isn't tested properly v9.1.0259
zeertzjq [Wed, 3 Apr 2024 20:38:07 +0000 (22:38 +0200)] 
patch 9.1.0259: Normal mode TextChanged isn't tested properly

Problem:  Normal mode TextChanged isn't tested properly.
Solution: Combine Test_Changed_ChangedI() and Test_Changed_ChangedI_2()
          and also run it on Windows. Fix a typo in main.c.
          (zeertzjq)

closes: #14396

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0258: half-page scrolling broke backward compatibility v9.1.0258
Luuk van Baal [Tue, 2 Apr 2024 18:49:45 +0000 (20:49 +0200)] 
patch 9.1.0258: half-page scrolling broke backward compatibility

Problem:  Support for 'smoothscroll' in (half-)page scrolling
          broke backward compatibility and can be made to work better.
          (after v9.1.215)
Solution: Restore the previous cursor and end-of-buffer behavior for
          half-page scrolling and improve 'smoothscroll' support.
          (Luuk van Baal)

fixes: #14338
closes: #14377

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0257: Vim9: :call may not find imported class members v9.1.0257
Yegappan Lakshmanan [Tue, 2 Apr 2024 18:41:04 +0000 (20:41 +0200)] 
patch 9.1.0257: Vim9: :call may not find imported class members

Problem:  Vim9: :call may not find imported class members
          (mityu)
Solution: Set the typval of an imported lval variable correctly
          (Yegappan Lakshmanan)

fixes: #14334
closes: #14386

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0256: Finding autocmd events is inefficient v9.1.0256
John Marriott [Tue, 2 Apr 2024 18:26:01 +0000 (20:26 +0200)] 
patch 9.1.0256: Finding autocmd events is inefficient

Problem:  Finding autocmd events is inefficient
Solution: Use binary search to find events, cache last found events,
          avoid use of strlen(), add SessionWritePost autocmd,
          fix test_codestyle and avoid endless loop
          (John Marriott)

closes: #14287

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0255: Vim9: no indication of script nr in stack trace of classes v9.1.0255
Ernie Rael [Tue, 2 Apr 2024 17:05:39 +0000 (19:05 +0200)] 
patch 9.1.0255: Vim9: no indication of script nr in stack trace of classes

Problem:  Vim9: no indication of script nr in stack trace of classes
Solution: Prefix the class name with the script name in the stack trace.
          (Ernie Rael)

fixes: #14376
closes: #14390

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0254: [security]: Heap buffer overflow when calling complete_add() in ... v9.1.0254
zeertzjq [Tue, 2 Apr 2024 17:01:14 +0000 (19:01 +0200)] 
patch 9.1.0254: [security]: Heap buffer overflow when calling complete_add() in 'cfu'

Problem:  [security]: Heap buffer overflow when calling complete_add()
          in the first call of 'completefunc'
Solution: Call check_cursor() after calling 'completefunc' (zeertzjq)

closes: #14391

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0253: filetype: typespec files are not recognized v9.1.0253
Hilmar Wiegand [Tue, 2 Apr 2024 16:54:54 +0000 (18:54 +0200)] 
patch 9.1.0253: filetype: typespec files are not recognized

Problem:  filetype: typespec files are not recognized
Solution: Detect '*.tsp' files as typespec
          (Hilmar Wiegand)

Specs is at https://typespec.io/

closes: #14392

Signed-off-by: Hilmar Wiegand <me@hwgnd.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(yaml): improve syntax highlighting for YAML
itchyny [Mon, 1 Apr 2024 12:54:36 +0000 (14:54 +0200)] 
runtime(yaml): improve syntax highlighting for YAML

- Recognize block scalar style to avoid unexpected highlighting by `yamlFlowString` (fix #11517)
- Improve performance of `yamlFlowMappingKey` by allowing execution by the NFA engine (fix #10730)
  - It was intentionally disabled before patterns were optimized by `s:SimplifyToAssumeAllPrintable`.
- Fix detection of flow style mapping indicators (fix #8234).
- Enable highlighting of explicit mapping value indicators and node properties in flow style.
- Add syntax highlighting tests

closes: #14354

Signed-off-by: itchyny <itchyny@cybozu.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0252: Vim9: segfault with static in super class v9.1.0252
Yegappan Lakshmanan [Mon, 1 Apr 2024 12:50:41 +0000 (14:50 +0200)] 
patch 9.1.0252: Vim9: segfault with static in super class

Problem:  Vim9: segfault with static in super class
          (Ernie Rael)
Solution: When initializing lhs, use the correct class where a class
          variable is defined (Yegappan Lakshmanan)

fixes: #14352
closes: #14372

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0251: Filetype test fails v9.1.0251
zeertzjq [Mon, 1 Apr 2024 12:46:20 +0000 (14:46 +0200)] 
patch 9.1.0251: Filetype test fails

Problem:  Filetype test fails.
Solution: Move detection by name before detection by extension.
          Improve TextChanged test and remove wrong test and fix
          a typo in a comment (zeertzjq).

closes: #14373

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(sshconfig,sshdconfig): update syntax (#14351)
Eisuke Kawashima [Sun, 31 Mar 2024 20:02:31 +0000 (05:02 +0900)] 
runtime(sshconfig,sshdconfig): update syntax (#14351)

* fix case insensitivity of Host and Hostname keys
* improve regexps
* add keywords

Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0250: filetype: ldscripts cannot be recognized v9.1.0250
Wu, Zhenyu [Sun, 31 Mar 2024 17:57:16 +0000 (19:57 +0200)] 
patch 9.1.0250: filetype: ldscripts cannot be recognized

Problem:  filetype: ldscripts cannot be recognized
Solution: Detect '*/ldscripts/*' as ld
          (Wu, Zhenyu)

closes: #14371

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0249: filetype: rock_manifest and config.ld files are not recognized v9.1.0249
Wu, Zhenyu [Sun, 31 Mar 2024 17:54:12 +0000 (19:54 +0200)] 
patch 9.1.0249: filetype: rock_manifest and config.ld files are not recognized

Problem:  filetype: rock_manifest and config.ld files are not recognized
Solution: Detect 'rock_manifest' and 'config.ld' as lua
          (Wu, Zhenyu)

closes: #14370

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0248: filetype: yarn lock files are not recognized v9.1.0248
Wu, Zhenyu [Sun, 31 Mar 2024 17:51:19 +0000 (19:51 +0200)] 
patch 9.1.0248: filetype: yarn lock files are not recognized

Problem:  filetype: yarn lock files are not recognized
Solution: Detect 'yarn.lock' files as yaml
          (Wu, Zhenyu)

closes: #14369

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0247: filetype: bundle config files are not recognized v9.1.0247
Wu, Zhenyu [Sun, 31 Mar 2024 17:48:35 +0000 (19:48 +0200)] 
patch 9.1.0247: filetype: bundle config files are not recognized

Problem:  filetype: bundle config files are not recognized
Solution: Detect '*/.bundle/config' as yaml
          (Wu, Zhenyu)

closes: #14368

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0246: filetype: fontconfig files are not recognized v9.1.0246
Wu, Zhenyu [Sun, 31 Mar 2024 17:45:11 +0000 (19:45 +0200)] 
patch 9.1.0246: filetype: fontconfig files are not recognized

Problem:  filetype: fontconfig files are not recognized
Solution: detect 'fonts.conf' as xml
          (Wu, Zhenyu)

closes: #14367

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0245: filetype: zsh theme, history and zunit files are not recognized v9.1.0245
Wu, Zhenyu [Sun, 31 Mar 2024 17:42:39 +0000 (19:42 +0200)] 
patch 9.1.0245: filetype: zsh theme, history and zunit files are not recognized

Problem:  filetype: zsh theme, history and zunit files are not
          recognized.
Solution: Detect '.zsh_history', '*.zsh-theme' and '*.zunit' as zsh
          (Wu, Zhenyu)

closes: #14366

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0244: filetype: bash history files are not recognized v9.1.0244
Wu, Zhenyu [Sun, 31 Mar 2024 17:22:51 +0000 (19:22 +0200)] 
patch 9.1.0244: filetype: bash history files are not recognized

Problem:  filetype: bash history files are not recognized
Solution: detect .bash-history and .bash_history files as bash
          (Wu, Zhenyu)

closes: #14365

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0243: filetype: netrw history file is not recognized v9.1.0243
Wu, Zhenyu [Sun, 31 Mar 2024 17:20:14 +0000 (19:20 +0200)] 
patch 9.1.0243: filetype: netrw history file is not recognized

Problem:  filetype: netrw history file is not recognized
Solution: Detect .netrwhist as vim files (Wu, Zhenyu)

closes: #14364

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0242: filetype: octave history files are not recognized v9.1.0242
Wu, Zhenyu [Sun, 31 Mar 2024 17:18:10 +0000 (19:18 +0200)] 
patch 9.1.0242: filetype: octave history files are not recognized

Problem:  filetype: octave history files are not recognized
Solution: Detect octave/history files as octave
          (Wu, Zhenyu)

closes: #14363

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0241: filetype: mysql history files are not recognized v9.1.0241
Wu, Zhenyu [Sun, 31 Mar 2024 17:15:49 +0000 (19:15 +0200)] 
patch 9.1.0241: filetype: mysql history files are not recognized

Problem:  filetype: mysql history files are not recognized
Solution: Detect .mysql_history as mysql
          (Wu, Zhenyu)

closes: #14362

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0240: filetype: some python tools config files are not recognized v9.1.0240
Wu, Zhenyu [Sun, 31 Mar 2024 17:12:36 +0000 (19:12 +0200)] 
patch 9.1.0240: filetype: some python tools config files are not recognized

Problem:  filetype: some python tools config files are not recognized
Solution: Detect config files for setuptools, pudb, coverage as dosini
          (Wu, Zhenyu)

closes: #14361

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>