]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
5 months agoruntime(c): Update syntax and ftplugin files
Doug Kearns [Fri, 17 Jan 2025 13:12:16 +0000 (14:12 +0100)] 
runtime(c): Update syntax and ftplugin files

- highlight more C keywords, including some from C23

Conditionally highlight C23 features:
- #embed, #elifdef and #elifndef preprocessor directives
- predefined macros
- UTF-8 character constants
- binary integer constants, _BitInt literals, and digit separators
- nullptr_t type and associated constant
- decimal real floating-point, bit precise and char types
- typeof operators

Matchit:
- update for new preprocessor directives

fixes: #13667
fixes: #13679
closes: #12984

Co-authored-by: Albin Ahlbäck <albin.ahlback@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1029: the installer can be improved v9.1.1029
RestorerZ [Fri, 17 Jan 2025 13:04:44 +0000 (14:04 +0100)] 
patch 9.1.1029: the installer can be improved

Problem:  the installer can be improved
Solution: update the installer with the correct README and LICENSE
          files, improve the documentation, add a Makefile for the
          installer, update the Makefiles (RestorerZ)

fixes: #16378
closes: #16378

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1028: too many strlen() calls in screen.c v9.1.1028
John Marriott [Fri, 17 Jan 2025 12:54:49 +0000 (13:54 +0100)] 
patch 9.1.1028: too many strlen() calls in screen.c

Problem:  too many strlen() calls in screen.c
Solution: refactor screen.c and remove calls to strlen(),
          verify that leadmultispace != NULL (John Marriott)

closes: #16460

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1027: no sanitize check when running linematch v9.1.1027
Jonathon [Fri, 17 Jan 2025 12:37:35 +0000 (13:37 +0100)] 
patch 9.1.1027: no sanitize check when running linematch

Problem:  no sanitize check when running linematch
Solution: add sanitize check before applying the linematch algorithm,
          similar to diff_find_change() (Jonathon)

closes: #16446

Signed-off-by: Jonathon <jonathonwhite@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1026: filetype: swc configuration files are not recognized v9.1.1026
Marces Engel [Fri, 17 Jan 2025 12:10:15 +0000 (13:10 +0100)] 
patch 9.1.1026: filetype: swc configuration files are not recognized

Problem:  filetype: swc configuration files are not recognized
Solution: detect .swcrc files as json filetype (Marces Engel)

References:
https://swc.rs/docs/configuration/swcrc

closes: #16462

Signed-off-by: Marces Engel <marces@facemurphy.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(netrw): change netrw maintainer
Luca Saccarola [Fri, 17 Jan 2025 12:03:53 +0000 (13:03 +0100)] 
runtime(netrw): change netrw maintainer

Dr. Chip retired some time ago and is no longer maintaining the netrw
plugin. However as a runtime plugin distributed by Vim, it important to
maintain the netrw plugin in the future and fix bugs as they are
reported.

So, split out the netrw plugin as an additional package, however include
some stubs to make sure the plugin is still loaded by default and the
documentation is accessible as well.

closes: #16368

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1025: wrong return type of blob2str() v9.1.1025
Yegappan Lakshmanan [Fri, 17 Jan 2025 10:48:12 +0000 (11:48 +0100)] 
patch 9.1.1025: wrong return type of blob2str()

Problem:  wrong return type of blob2str()
Solution: update return to list of string
          (Yegappan Lakshmanan)

closes: #16461

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1024: blob2str/str2blob() do not support list of strings v9.1.1024
Yegappan Lakshmanan [Thu, 16 Jan 2025 18:16:42 +0000 (19:16 +0100)] 
patch 9.1.1024: blob2str/str2blob() do not support list of strings

Problem:  blob2str/str2blob() do not support list of strings
          (after v9.1.1016)
Solution: Add support for using a list of strings (Yegappan Lakshmanan)

closes: #16459

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(doc): fix typo in usr_02.txt
Christian Brabandt [Thu, 16 Jan 2025 18:12:48 +0000 (19:12 +0100)] 
runtime(doc): fix typo in usr_02.txt

fixes: #16455

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1023: Coverity complains about dereferencing NULL pointer v9.1.1023
Christian Brabandt [Thu, 16 Jan 2025 18:06:57 +0000 (19:06 +0100)] 
patch 9.1.1023: Coverity complains about dereferencing NULL pointer

Problem:  Coverity complains about dereferencing NULL pointer
Solution: Verify curdiff is not null before dereferencing it

closes: #16437

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1022: linematch option value not completed v9.1.1022
Christian Brabandt [Thu, 16 Jan 2025 18:03:40 +0000 (19:03 +0100)] 
patch 9.1.1022: linematch option value not completed

Problem:  linematch option value not completed
          (after v9.1.1009)
Solution: Update diffoption completion values

related: #9661
closes: #16437

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1021: string might be used without a trailing NUL v9.1.1021
John Marriott [Thu, 16 Jan 2025 17:58:20 +0000 (18:58 +0100)] 
patch 9.1.1021: string might be used without a trailing NUL

Problem:  string might be used without a trailing NUL (after v9.1.0997)
Solution: Make sure that the buffer is NUL terminated

closes: #16457

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1020: no way to get current selected item in a async context v9.1.1020
glepnir [Thu, 16 Jan 2025 13:37:44 +0000 (14:37 +0100)] 
patch 9.1.1020: no way to get current selected item in a async context

Problem:  no way to get current selected item in a async context
Solution: add completed flag to show the entries of currently selected
          index item (@glepnir)

closes: #16451

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1019: filetype: fd ignore files are not recognized v9.1.1019
Wu, Zhenyu [Wed, 15 Jan 2025 17:46:37 +0000 (18:46 +0100)] 
patch 9.1.1019: filetype: fd ignore files are not recognized

Problem:  filetype: fd ignore files are not recognized
Solution: detect .fdignore files as gitignore filetype

closes: #16444

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1018: v9.1.0743 causes regression with diff mode v9.1.1018
Yukihiro Nakadaira [Wed, 15 Jan 2025 17:36:43 +0000 (18:36 +0100)] 
patch 9.1.1018: v9.1.0743 causes regression with diff mode

Problem:  v9.1.0743 causes regression with diff mode
Solution: Fix the regression with overlapping regions

closes: #16454

Signed-off-by: Yukihiro Nakadaira <yukihiro.nakadaira@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(doc): fix base64 encode/decode examples
Maxim Kim [Wed, 15 Jan 2025 17:31:05 +0000 (18:31 +0100)] 
runtime(doc): fix base64 encode/decode examples

Use str2blob()/blob2str() functions in examples given.

closes: #16449

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1017: Vim9: Patch 9.1.1013 causes a few problems v9.1.1017
Yegappan Lakshmanan [Wed, 15 Jan 2025 17:25:19 +0000 (18:25 +0100)] 
patch 9.1.1017: Vim9: Patch 9.1.1013 causes a few problems

Problem:  Vim9: Patch 9.1.1013 causes a few problems
Solution: Translate the function name only when it is a string
          (Yegappan Lakshmanan)

fixes: #16453
closes: #16450

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1016: Not possible to convert string2blob and blob2string v9.1.1016
Yegappan Lakshmanan [Tue, 14 Jan 2025 16:29:42 +0000 (17:29 +0100)] 
patch 9.1.1016: Not possible to convert string2blob and blob2string

Problem:  Not possible to convert string2blob and blob2string
Solution: add support for the blob2str() and str2blob() functions

closes: #16373

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1015: Coverity complains about dereferencing NULL value v9.1.1015
Christian Brabandt [Tue, 14 Jan 2025 16:25:02 +0000 (17:25 +0100)] 
patch 9.1.1015: Coverity complains about dereferencing NULL value

Problem:  Coverity complains about dereferencing NULL value
Solution: Check that cms2 is not null

closes: #16438

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1014: Vim9: variable not found in transitive import v9.1.1014
Hirohito Higashi [Tue, 14 Jan 2025 16:21:42 +0000 (17:21 +0100)] 
patch 9.1.1014: Vim9: variable not found in transitive import

Problem:  Vim9: variable not found in transitive import
Solution: Allow nested import (Hirohito Higashi)

fixe: #16379
closes: #16440

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(colors): Update colorschemes, include new unokai colorscheme
Maxim Kim [Tue, 14 Jan 2025 16:15:59 +0000 (17:15 +0100)] 
runtime(colors): Update colorschemes, include new unokai colorscheme

- new unokai colorscheme (similar/inspired by monokai)
- the rest: add explicit PopupSelected link to PmenuSel

closes: #16443

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1013: Vim9: Regression caused by patch v9.1.0646 v9.1.1013
Yegappan Lakshmanan [Tue, 14 Jan 2025 16:13:36 +0000 (17:13 +0100)] 
patch 9.1.1013: Vim9: Regression caused by patch v9.1.0646

Problem:  Vim9: Regression caused by patch v9.1.0646
Solution: Translate the function name before invoking it in call()
          (Yegappan Lakshmanan)

fixes: #16430
closes: #16445

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(lyrics): support milliseconds in syntax script
Denilson Sá Maia [Mon, 13 Jan 2025 07:23:24 +0000 (08:23 +0100)] 
runtime(lyrics): support milliseconds in syntax script

The following tool creates LRC files using three fractional digits after
the seconds (i.e. milliseconds).

References:
https://github.com/magic-akari/lrc-maker
https://lrc-maker.github.io/

closes: #16436

Signed-off-by: Denilson Sá Maia <denilsonsa@gmail.com>
Signed-off-by: ObserverOfTime <chronobserver@disroot.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(vim): Split Vim legacy and Vim9 script indent tests
Doug Kearns [Mon, 13 Jan 2025 06:54:33 +0000 (07:54 +0100)] 
runtime(vim): Split Vim legacy and Vim9 script indent tests

The indent test file is not highlighted correctly as it's currently a
syntactically erroneous mix of legacy and Vim9 script.  This is causing
spurious indent test failures as the indent script relies on syntax ID
tests to determine the context of lines being processed.

Splitting the tests into legacy and Vim9 specific files allows for
correct syntax highlighting and indenting.

closes: #16431

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1012: Vim9: class interface inheritance not correctly working v9.1.1012
Yegappan Lakshmanan [Mon, 13 Jan 2025 06:30:11 +0000 (07:30 +0100)] 
patch 9.1.1012: Vim9: class interface inheritance not correctly working

Problem:  Vim9: class interface inheritance not correctly working
Solution: make the class inherit the interfaces of the super class

fixes: #16395
closes: #16412

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1011: popupmenu internal error with some abbr in completion item v9.1.1011
zeertzjq [Mon, 13 Jan 2025 06:27:43 +0000 (07:27 +0100)] 
patch 9.1.1011: popupmenu internal error with some abbr in completion item

Problem:  Popup menu internal error with some abbr in completion item.
Solution: Don't compute attributes when there is no corresponding text.
          Reduce indent in pum_redraw() while at it (zeertzjq).

fixes: #16427
closes: #16435

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1010: filetype: VisualCode setting file not recognized v9.1.1010
Konfekt [Sun, 12 Jan 2025 19:02:04 +0000 (20:02 +0100)] 
patch 9.1.1010: filetype: VisualCode setting file not recognized

Problem:  filetype: VisualCode setting file not recognized
Solution: detect json files in VSCode config directory as jsonc filetype
          (Konfekt)

closes: #16400

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1009: diff feature can be improved v9.1.1009
Jonathon [Sun, 12 Jan 2025 08:58:00 +0000 (09:58 +0100)] 
patch 9.1.1009: diff feature can be improved

Problem:  diff feature can be improved
Solution: include the linematch diff alignment algorithm
          (Jonathon)

closes: #9661

Signed-off-by: Jonathon <jonathonwhite@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1008: tests: test for patch 9.1.1006 doesn't fail without the patch v9.1.1008
zeertzjq [Sun, 12 Jan 2025 08:32:27 +0000 (09:32 +0100)] 
patch 9.1.1008: tests: test for patch 9.1.1006 doesn't fail without the patch

Problem:  tests: test for patch 9.1.1006 doesn't fail without the patch
          (after v9.1.1006)
Solution: Add ctermbg=NONE to the highlight groups (zeertzjq).

closes: #16425

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1007: filetype: various ignore are not recognized v9.1.1007
Wu, Zhenyu [Sun, 12 Jan 2025 08:27:01 +0000 (09:27 +0100)] 
patch 9.1.1007: filetype: various ignore are not recognized

Problem:  filetype: various ignore are not recognized
Solution: detect rg/docker/npm/vvsce ignore files as 'gitgnore' filetype
          (Wu, Zhenyu)

Not only prettier, but many programs also support ignore files (like rg,
docker, npm, vscode). So use the gitignore filetype for them due to same syntax

closes: #16428

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agotests: Load screendump files with "git vimdumps"
Aliaksei Budavei [Sat, 11 Jan 2025 16:10:06 +0000 (17:10 +0100)] 
tests: Load screendump files with "git vimdumps"

Also, fold the difference part and the bottom part for the
identical screendump files.

closes: #16380

Co-authored-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1006: PmenuMatch completion highlight can be combined v9.1.1006
glepnir [Sat, 11 Jan 2025 15:47:34 +0000 (16:47 +0100)] 
patch 9.1.1006: PmenuMatch completion highlight can be combined

Problem:  PmenuMatch completion highlight can be combined
Solution: Combine highlight groups PmenuMatch with Pmenu and
          PmenuMatchSel with PmenuSel (glepnir)

fixes: #15563
closes: #16408

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1005: completion text is highlighted even with no pattern found v9.1.1005
glepnir [Sat, 11 Jan 2025 15:42:50 +0000 (16:42 +0100)] 
patch 9.1.1005: completion text is highlighted even with no pattern found

Problem:  completion text is highlighted even with no pattern found
Solution: use ins_compl_leader_len() instead of checking
          compl_leader.length (glepnir)

closes: #16422

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1004: tests: a few termdebug tests are flaky v9.1.1004
Christian Brabandt [Sat, 11 Jan 2025 14:43:12 +0000 (15:43 +0100)] 
patch 9.1.1004: tests: a few termdebug tests are flaky

Problem:  tests: a few termdebug tests are flaky; test_termdebug_basic()
          and test_termdebug_config_types() may fail if there is too
          much load
Solution: Set g:test_is_flaky

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1003: [security]: heap-buffer-overflow with visual mode v9.1.1003
Christian Brabandt [Sat, 11 Jan 2025 14:25:00 +0000 (15:25 +0100)] 
patch 9.1.1003: [security]: heap-buffer-overflow with visual mode

Problem:  [security]: heap-buffer-overflow with visual mode when
          using :all, causing Vim trying to access beyond end-of-line
          (gandalf)
Solution: Reset visual mode on :all, validate position in gchar_pos()
          and charwise_block_prep()

This fixes CVE-2025-22134

Github Advisory:
https://github.com/vim/vim/security/advisories/GHSA-5rgf-26wj-48v8

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): add package-<name> helptags for included packages
Christian Brabandt [Sat, 11 Jan 2025 09:14:24 +0000 (10:14 +0100)] 
runtime(doc): add package-<name> helptags for included packages

Improve how to find the justify package

closes: #16420

Co-authored-by: Peter Benjamin <petermbenjamin@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1002: Vim9: unknown func error with interface declaring func var v9.1.1002
Yegappan Lakshmanan [Sat, 11 Jan 2025 08:39:01 +0000 (09:39 +0100)] 
patch 9.1.1002: Vim9: unknown func error with interface declaring func var

Problem:  Vim9: unknown function error with interface declaring a
          function variable (lifepillar)
Solution: Use correct instruction for getting interface member variables
          (Yegappan Lakshmanan)

fixes: #16345
closes: #16421

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(filetype): don't detect string interpolation as angular
Christian Brabandt [Sat, 11 Jan 2025 08:19:12 +0000 (09:19 +0100)] 
runtime(filetype): don't detect string interpolation as angular

fixes: #16375

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1001: ComplMatchIns highlight hard to read on light background v9.1.1001
glepnir [Fri, 10 Jan 2025 19:08:20 +0000 (20:08 +0100)] 
patch 9.1.1001: ComplMatchIns highlight hard to read on light background

Problem:  ComplMatchIns highlight hard to read on light background
          (after v9.1.0996)
Solution: define the highlighting group cleared, it should be configured in
          colorschemes separately (glepnir)

closes: #16414

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(vim): Update base-syntax, highlight literal string quote escape
Doug Kearns [Fri, 10 Jan 2025 19:02:17 +0000 (20:02 +0100)] 
runtime(vim): Update base-syntax, highlight literal string quote escape

Match the '' escape sequence in literal strings.  These were previously
ending the current string and starting another concatenated literal
string.

closes: #16415

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
6 months agoruntime(editorconfig): set omnifunc to syntaxcomplete func
Yochem van Rosmalen [Fri, 10 Jan 2025 18:54:13 +0000 (19:54 +0100)] 
runtime(editorconfig): set omnifunc to syntaxcomplete func

closes: #16419

Signed-off-by: Yochem van Rosmalen <git@yochem.nl>
Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1000: tests: ruby tests fail with Ruby 3.4 v9.1.1000
Yee Cheng Chin [Thu, 9 Jan 2025 21:23:29 +0000 (22:23 +0100)] 
patch 9.1.1000: tests: ruby tests fail with Ruby 3.4

Problem:  tests: ruby tests fail with Ruby 3.4
Solution: adjust expected output for Ruby 3.4
          (Yee Cheng Chin)

Vim's Ruby tests relied on explicit matching of output texts which are
fragile in design. Ruby 3.4 has changed the output slightly (using
'name' instead of `name', and also using more spaces in dictionary
printouts). Modify the Vim tests to be less fragile to such changes.

closes: #16411

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0999: Vim9: leaking finished exception v9.1.0999
Yee Cheng Chin [Thu, 9 Jan 2025 21:14:34 +0000 (22:14 +0100)] 
patch 9.1.0999: Vim9: leaking finished exception

Problem:  leaking finished exception
          (after v9.1.0984)
Solution: use finish_exception to clean up caught exceptions
          (Yee Cheng Chin)

In Vimscript, v:exception/throwpoint/stacktrace are supposed to reflect
the currently caught exception, and be popped after the exception is
finished (via endtry, finally, or a thrown exception inside catch).
Vim9script does not handle this properly, and leaks them instead. This
is clearly visible when launching GVim with menu enabled.  A caught
exception inside the s:BMShow() in menu.vim would show up when querying
`v:stacktrace` even though the exception was already caught and handled.

To fix this, just use the same functionality as Vimscript by calling
`finish_exception` to properly restore the states. Note that this
assumes `current_exception` is always the same as `caught_stack` which
believe should be the case.

Added tests for this. Also fix up test_stacktrace to properly test the
stack restore behavior where we have nested exceptions in catch blocks
and to also test the vim9script functionality properly.

- Also, remove its dependency on explicitly checking a line number in
  runtest.vim which is a very fragile way to write tests as any minor
  change in runtest.vim (shared among all tests) would require changing
  test_stacktrace.vim. We don't actually need such granularity in the
  test.

closes: #16413

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(tiasm): use correct syntax name tiasm in syntax script
Wu, Zhenyu [Thu, 9 Jan 2025 21:09:16 +0000 (22:09 +0100)] 
runtime(tiasm):  use correct syntax name tiasm in syntax script

closes: #16416

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0998: filetype: TI assembly files are not recognized v9.1.0998
Wu, Zhenyu [Wed, 8 Jan 2025 19:20:06 +0000 (20:20 +0100)] 
patch 9.1.0998: filetype: TI assembly files are not recognized

Problem:  filetype: TI assembly files are not recognized
Solution: inspect '*.sa' and assembly files and detect TI assembly
          files, include filetype plugin and syntax script for TI
          assembly files (Wu, Zhenyu)

closes: #15827

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0997: too many strlen() calls in drawscreen.c v9.1.0997
John Marriott [Wed, 8 Jan 2025 19:10:59 +0000 (20:10 +0100)] 
patch 9.1.0997: too many strlen() calls in drawscreen.c

Problem:  too many strlen() calls in drawscreen.c
Solution: refactor drawscreen.c and remove calls to strlen(),
          make get_keymap_str() (in screen.c) return string length
          instead of TRUE/FALSE (John Marriott).

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(xf86conf): add section name OutputClass to syntax script
Jan-Arvid Harrach [Wed, 8 Jan 2025 19:02:04 +0000 (20:02 +0100)] 
runtime(xf86conf): add section name OutputClass to syntax script

References:
https://man.archlinux.org/man/xorg.conf.5#DESCRIPTION

closes: #16397

Signed-off-by: Jan-Arvid Harrach <jharrach@tutanota.com>
6 months agopatch 9.1.0996: ComplMatchIns may highlight wrong text v9.1.0996
glepnir [Wed, 8 Jan 2025 17:30:45 +0000 (18:30 +0100)] 
patch 9.1.0996: ComplMatchIns may highlight wrong text

Problem:  ComplMatchIns may highlight wrong text
Solution: don't highlight in case of fuzzy match,
          skip-highlight when not inserting anything
          (glepnir)

closes: #16404

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(vim): Update base-syntax, improve ex-bang matching
Doug Kearns [Wed, 8 Jan 2025 17:20:47 +0000 (18:20 +0100)] 
runtime(vim): Update base-syntax, improve ex-bang matching

Always match ex-bang explicitly rather than incidentally as the ! operator.

fixes: #16221
closes: #16410

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): clarify buffer deletion on popup_close()
Christian Brabandt [Wed, 8 Jan 2025 13:09:02 +0000 (14:09 +0100)] 
runtime(doc): clarify buffer deletion on popup_close()

Reported-by: Lifepillar <lifepillar@lifepillar.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoCI: drop setup of snd-dummy module
Philip H. [Tue, 7 Jan 2025 19:43:29 +0000 (20:43 +0100)] 
CI: drop setup of snd-dummy module

Apparently even when loading the snd-dummy kernel module, the
CI tests for the sounds feature in test_sound.vim are already skipped.

So let's just remove all of this (even so we may loose a bit of coverage
information here).

closes: #16391

Signed-off-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0995: filetype: shaderslang files are not detected v9.1.0995
mtvare6 [Tue, 7 Jan 2025 19:31:27 +0000 (20:31 +0100)] 
patch 9.1.0995: filetype: shaderslang files are not detected

Problem:  filetype: shaderslang files are not detected
Solution: detect '*.slang' files as shaderslang filetype,
          include a filetype and syntax script (mtvare6)

Reference:
https://shader-slang.com/

closes: #16387

Signed-off-by: mtvare6 <mtvare6@proton.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0994: Vim9: not able to use comment after opening curly brace v9.1.0994
Yegappan Lakshmanan [Tue, 7 Jan 2025 19:22:32 +0000 (20:22 +0100)] 
patch 9.1.0994: Vim9: not able to use comment after opening curly brace

Problem:  Vim9: not able to use comment after opening curly brace
          (lifepillar)
Solution: allow to use comments after curly braces of an inner-block,
          modify the logic to search for comment in a line, update Vim9
          tests to use specific class type instead of any
          (Yegappan Lakshmanan)

fixes: #16363
closes: #16405

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0993: New 'cmdheight' behavior may be surprising v9.1.0993
Luuk van Baal [Mon, 6 Jan 2025 17:58:21 +0000 (18:58 +0100)] 
patch 9.1.0993: New 'cmdheight' behavior may be surprising

Problem:  Although patch 9.1.0990 fixed a real problem/inconsistency,
          it also introduced new behavior that may break BWC and/or be
          unexpected. Before 9.1.0990, window commands could make the
          topframe smaller (without changing 'cmdheight'; quirk that is
          now fixed), but did not allow extending the topframe beyond
          the 'cmdheight' set by the user. After 9.1.0990, the user can
          reduce the 'cmdheight' below the value they set explicitly,
          through window commands, which may lead to confusion.
          (aftere v9.1.0990)
Solution: Store the value explicitly set by the user and clamp the
          'cmdheight' when resizing the topframe. This also applies to
          dragging laststatus, which in contrast to window commands
          _did_ allow reducing the 'cmdheight' to values below the one
          set by the user. So with this patch there is still new
          behavior, but I think in a way that is less surprising.
          While at it, also fix a Coverity warning, introduced in
          v9.1.0990 (Luuk van Baal)

closes: #16385

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(sh): fix typo in Last Change header
Christian Brabandt [Mon, 6 Jan 2025 17:50:15 +0000 (18:50 +0100)] 
runtime(sh): fix typo in Last Change header

related: #16394

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0992: Vim9: double-free after v9.1.0988 v9.1.0992
Yegappan Lakshmanan [Mon, 6 Jan 2025 17:34:49 +0000 (18:34 +0100)] 
patch 9.1.0992: Vim9: double-free after v9.1.0988

Problem:  Vim9: double-free after v9.1.0988
          (h-east)
Solution: clear typval pointer, before setting the type
          (Yegappan Lakshmanan)

Otherwise the contents are still referring to some other value.

fixes: #16386
closes: #16388

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0991: v:stacktrace has wrong type in Vim9 script v9.1.0991
zeertzjq [Mon, 6 Jan 2025 17:32:13 +0000 (18:32 +0100)] 
patch 9.1.0991: v:stacktrace has wrong type in Vim9 script

Problem:  v:stacktrace has wrong type in Vim9 script.
Solution: Change the type to t_list_dict_any.  Fix grammar in docs.
          (zeertzjq)

closes: #16390

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(sh): add PS0 to bashSpecialVariables in syntax script
Jon Parise [Mon, 6 Jan 2025 17:27:38 +0000 (18:27 +0100)] 
runtime(sh): add PS0 to bashSpecialVariables in syntax script

PS0 is also a special prompt variable. (It is expanded and displayed
after it reads a command but before executing it.)

References:
https://www.gnu.org/software/bash/manual/html_node/Interactive-Shell-Behavior.html

closes: #16394

Signed-off-by: Jon Parise <jon@indelible.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(vim): Remove trailing comma from match_words
Doug Kearns [Mon, 6 Jan 2025 17:12:11 +0000 (18:12 +0100)] 
runtime(vim): Remove trailing comma from match_words

fixes: #16377 (`filetype plugin indent on` breaks matchit).
closes: #16389

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(zsh): sync syntax script with upstream repo
Christian Brabandt [Sun, 5 Jan 2025 15:36:10 +0000 (16:36 +0100)] 
runtime(zsh): sync syntax script with upstream repo

fixes: #16371

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): Capitalise the mnemonic "Zero" for the 'z' flag of search()
Doug Kearns [Sun, 5 Jan 2025 14:56:57 +0000 (15:56 +0100)] 
runtime(doc): Capitalise the mnemonic "Zero" for the 'z' flag of search()

closes: #16384

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0990: Inconsistent behavior when changing cmdheight v9.1.0990
Luuk van Baal [Sat, 4 Jan 2025 16:18:08 +0000 (17:18 +0100)] 
patch 9.1.0990: Inconsistent behavior when changing cmdheight

Problem:  Inconsistent behavior when changing cmdheight by resizing the
          topframe through wincmds and dragging laststatus. Changing
  cmdheight by resizing the topframe does not trigger OptionSet.
Solution: Consolidate logic for changing the cmdheight, set the option
  value to handle side-effects (Luuk van Baal)

closes: #16359

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0989: Vim9: Whitespace after the final enum value causes a syntax error v9.1.0989
Doug Kearns [Sat, 4 Jan 2025 16:12:24 +0000 (17:12 +0100)] 
patch 9.1.0989: Vim9: Whitespace after the final enum value causes a syntax error

Problem:  Vim9: Whitespace after the final enum value causes a syntax
          error
Solution: Fix parsing to allow whitespace after the final enum value.
          (Doug Kearns)

closes: #16383

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(java): Quietly opt out for unsupported markdown.vim versions
Aliaksei Budavei [Fri, 3 Jan 2025 16:38:14 +0000 (17:38 +0100)] 
runtime(java): Quietly opt out for unsupported markdown.vim versions

fixes #16349
closes: #16369

Signed-off-by: Aliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(vim): fix failing vim syntax test
h-east [Fri, 3 Jan 2025 16:32:54 +0000 (17:32 +0100)] 
runtime(vim): fix failing vim syntax test

after v9.1.0985

related: #16356

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0988: Vim9: no error when using uninitialized var in new() v9.1.0988
Yegappan Lakshmanan [Fri, 3 Jan 2025 09:50:08 +0000 (10:50 +0100)] 
patch 9.1.0988: Vim9: no error when using uninitialized var in new()

Problem:  Vim9: no error when using uninitialized var in new()
          (lifepillar, Aliaksei Budavei)
Solution: Give an error if an uninitialized object variable is referenced
          in new() (Yegappan Lakshmanan)

fixes: #14411
fixes: #16344
closes: #16374

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): update index.txt
h-east [Fri, 3 Jan 2025 09:45:15 +0000 (10:45 +0100)] 
runtime(doc): update index.txt

related: #16357
closes: #16372

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0987: filetype: cake files are not recognized v9.1.0987
Zoe Roux [Fri, 3 Jan 2025 09:40:31 +0000 (10:40 +0100)] 
patch 9.1.0987: filetype: cake files are not recognized

Problem:  filetype: cake files are not recognized
Solution: detect '*.cake' files as cs filetype
          (Zoe Roux)

References:
https://cakebuild.net/

closes: #16367

Signed-off-by: Zoe Roux <zoe.roux@zoriya.dev>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0986: filetype: 'jj' filetype is a bit imprecise v9.1.0986
Gregory Anders [Fri, 3 Jan 2025 09:35:35 +0000 (10:35 +0100)] 
patch 9.1.0986: filetype: 'jj' filetype is a bit imprecise

Problem:  filetype: 'jj' filetype is a bit imprecise
Solution: rename 'jj' filetype to 'jjdescription'
          (Gregory Anders)

closes: #16364

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(jj): Support diffs in jj syntax
Gregory Anders [Fri, 3 Jan 2025 09:34:24 +0000 (10:34 +0100)] 
runtime(jj): Support diffs in jj syntax

related: #16364

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(vim): Update matchit pattern, no Vim9 short names
Doug Kearns [Fri, 3 Jan 2025 09:28:09 +0000 (10:28 +0100)] 
runtime(vim): Update matchit pattern, no Vim9 short names

Abbreviated :enum and :interface commands are no longer supported.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0985: Vim9: some ex commands can be shortened v9.1.0985
h-east [Fri, 3 Jan 2025 09:19:45 +0000 (10:19 +0100)] 
patch 9.1.0985: Vim9: some ex commands can be shortened

Problem:  Vim9: some ex commands can be shortened
Solution: disallow shortening of :abstract, :interface and :type
          (h-east)

closes: #16356

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0984: exception handling can be improved v9.1.0984
ichizok [Thu, 2 Jan 2025 17:06:00 +0000 (18:06 +0100)] 
patch 9.1.0984: exception handling can be improved

Problem:  exception handling can be improved
Solution: add v:stacktrace and getstacktrace()

closes: #16360

Co-authored-by: Naruhiko Nishino <naru123456789@gmail.com>
Signed-off-by: ichizok <gclient.gaap@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): update doc for :horizontal
h-east [Thu, 2 Jan 2025 16:34:55 +0000 (17:34 +0100)] 
runtime(doc): update doc for :horizontal

Revert the documentation for :horizontal from commit
0c3e57b403e0e3a1fefc because :horizontal cannot be shortened to :ho

closes: #16362

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): update index.txt, windows.txt and version9.txt
h-east [Thu, 2 Jan 2025 10:00:49 +0000 (11:00 +0100)] 
runtime(doc): update index.txt, windows.txt and version9.txt

closes: #16357

Co-authored-by: Aliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com>
Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): Tweak documentation about base64 function
h-east [Thu, 2 Jan 2025 09:40:29 +0000 (10:40 +0100)] 
runtime(doc): Tweak documentation about base64 function

closes: #16353

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(chordpro): update syntax script
nibo [Tue, 31 Dec 2024 10:24:46 +0000 (11:24 +0100)] 
runtime(chordpro): update syntax script

References:
https://chordpro.org/beta/directives-define/#defining-chords-for-keyboard-instruments

Signed-off-by: nibo <nibo@relim.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0983: not able to get the displayed items in complete_info() v9.1.0983
glepnir [Tue, 31 Dec 2024 09:55:22 +0000 (10:55 +0100)] 
patch 9.1.0983: not able to get the displayed items in complete_info()

Problem:  not able to get the displayed items in complete_info()
          (Evgeni Chasnovski)
Solution: return the visible items via the "matches" key for
          complete_info() (glepnir)

fixes: #10007
closes: #16307

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): use standard SGR format at :h xterm-true-color
Andrea Pappacoda [Tue, 31 Dec 2024 09:46:22 +0000 (10:46 +0100)] 
runtime(doc): use standard SGR format at :h xterm-true-color

By default, Vim uses the non-standard, but widely supported, legacy
xterm/Konsole format for setting "direct colors" with set setaf and
setbf escape codes, which use semicolons as separators.

The documentation for xterm-true-color mentions that, as an alternative,
users can set alternative sequences that use colons instead of
semicolons. This format, though, isn't standard and it is unclear how
widely supported it is; it was added by xterm patch 282 due to a
misinterpretation of the ISO 8613-6 (ITU T.416) standard, and was later
changed to the format suggested by this patch, which is the one
specified in the standard.

Today, looking at ncurses' [terminfo], it seems that all terminal
emulators use either the standard format (named "xterm+direct" in the
terminfo source) or the legacy format (named "xterm+indirect" in the
terminfo source).

Hence, I believe it makes sense to align the docs with reality.

If you're interested in the story of this escape sequence, I'd recommend
reading
<https://invisible-island.net/ncurses/ncurses.faq.html#xterm_16MegaColors>.

[terminfo]: https://invisible-island.net/ncurses/terminfo.ti.html

closes: #16350

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Andrea Pappacoda <andrea@pappacoda.it>
6 months agopatch 9.1.0982: TI linker files are not recognized v9.1.0982
Wu, Zhenyu [Tue, 31 Dec 2024 09:25:44 +0000 (10:25 +0100)] 
patch 9.1.0982: TI linker files are not recognized

Problem:  TI linker files are not recognized
Solution: inspect '*.cmd' files and detect TI linker files
          as 'lnk' filetype, include a lnk ftplugin and syntax
          script (Wu, Zhenyu)

closes: #16320

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(vim): update vim generator syntax script
h-east [Mon, 30 Dec 2024 14:40:24 +0000 (15:40 +0100)] 
runtime(vim): update vim generator syntax script

* include the base64* functions
* allow to shorten finally

closes: #16346

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0981: tests: typo in test_filetype.vim v9.1.0981
Wu, Zhenyu [Mon, 30 Dec 2024 14:36:37 +0000 (15:36 +0100)] 
patch 9.1.0981: tests: typo in test_filetype.vim

Problem:  tests: typo in test_filetype.vim
Solution: fix comment, update lnkmap syntax file and add
          DESCT keyword
          (Wu, Zhenyu)

closes: #16348

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0980: no support for base64 en-/decoding functions in Vim Script v9.1.0980
Yegappan Lakshmanan [Mon, 30 Dec 2024 09:29:44 +0000 (10:29 +0100)] 
patch 9.1.0980: no support for base64 en-/decoding functions in Vim Script

Problem:  no support for base64 en-/decoding functions in Vim Script
          (networkhermit)
Solution: Add the base64_encode() and base64_decode() functions
          (Yegappan Lakshmanan)

fixes: #16291
closes: #16330

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agosyntax(sh): Improve the recognition of bracket expressions
Aliaksei Budavei [Mon, 30 Dec 2024 09:23:50 +0000 (10:23 +0100)] 
syntax(sh): Improve the recognition of bracket expressions

- Define a general non-"contained" "shBracketExpr" group,
  and replace with it the "contained" bracket variant of
  "shOperator", adjusting the patterns for the competing
  conditional commands "[" and "[[".
- Accommodate some unbalanced brackets (e.g. "[!][!]").
- Make the leading "!" (or "^") stand out in NON-matching
  bracket expressions.
- Support literal newlines in parametric patterns (along
  with pathname globbings and "case" patterns).
- Also match bracket expressions in:
  * parametric patterns (e.g. "${1#[ab]_}");
  * pathname globbings (e.g. "[ab]*.txt");
  * arguments for the "[[", "echo", and "print" commands.
- Recognise collating symbols (e.g. "[.a.]") and equivalence
  classes (e.g. "[=a=]").
- Recognise end patterns for a pattern substitution form of
  parameter expansion and match bracket expressions in such
  patterns (e.g. "${1/%[.!]/;}").

fixes #15799
closes: #15941

References:
https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap09.html#tag_09_03_05
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_14
https://git.savannah.gnu.org/gitweb/?p=bash.git;a=blob_plain;f=doc/bash.html;hb=37b7e91d64ad10b1a1815d12128c9475636df670
http://www.mirbsd.org/htman/i386/man1/mksh.htm

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): mention how NUL bytes are handled
Christian Brabandt [Mon, 30 Dec 2024 09:20:17 +0000 (10:20 +0100)] 
runtime(doc): mention how NUL bytes are handled

fixes: #16326

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0979: VMS: type warning with $XDG_VIMRC_FILE v9.1.0979
Christian Brabandt [Mon, 30 Dec 2024 09:10:01 +0000 (10:10 +0100)] 
patch 9.1.0979: VMS: type warning with $XDG_VIMRC_FILE

Problem:  VMS: type warning with $XDG_VIMRC_FILE
          (Zoltan Arpadffy)
Solution: add explicit (char_u *) type cast to mch_getenv() call

fixes: #16335

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0978: GUI tests sometimes fail when setting 'scroll' options v9.1.0978
Christian Brabandt [Mon, 30 Dec 2024 09:05:49 +0000 (10:05 +0100)] 
patch 9.1.0978: GUI tests sometimes fail when setting 'scroll' options

Problem:  GUI tests sometimes fail when setting 'scroll' options
Solution: decrease the 'scroll' and 'scrolljump' option value from 20 to
          15, in case the Gui window is not large enough to handle 20.

tests: decrease the scroll and scrolljump values

the gui tests sometimes fail with:

```
From test_options_all.vim:
Found errors in Test_opt_set_scroll():
Caught exception in Test_opt_set_scroll(): Vim(set):E49: Invalid scroll size: scroll=20 @ command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[617]..function RunTheTest[57]..Test_opt_set_scroll, line 7
Found errors in Test_opt_set_scrolljump():
Caught exception in Test_opt_set_scrolljump(): Vim(set):E49: Invalid scroll size: scrolljump=20 @ command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[617]..function RunTheTest[57]..Test_opt_set_scrolljump, line 9
```

closes: #16337

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0977: filetype: msbuild filetypes are not recognized v9.1.0977
GustavEikaas [Mon, 30 Dec 2024 09:01:36 +0000 (10:01 +0100)] 
patch 9.1.0977: filetype: msbuild filetypes are not recognized

Problem:  filetype: msbuild filetypes are not recognized
Solution: detect msbuild files as xml filetype
          (Gustav Eikaas)

closes: #16339

Signed-off-by: GustavEikaas <gustav.eikaas@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0976: Vim9: missing return statement with throw v9.1.0976
Yegappan Lakshmanan [Mon, 30 Dec 2024 08:56:34 +0000 (09:56 +0100)] 
patch 9.1.0976: Vim9: missing return statement with throw

Problem:  Vim9: missing return statement with throw
          (atitcreate)
Solution: Treat a throw statement at the end of an if-else block as a
          return statement (Yegappan Lakshmanan)

fixes: #16312
closes: #16338

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0975: Vim9: interpolated string expr not working in object methods v9.1.0975
Yegappan Lakshmanan [Mon, 30 Dec 2024 08:52:16 +0000 (09:52 +0100)] 
patch 9.1.0975: Vim9: interpolated string expr not working in object methods

Problem:  Vim9: interpolated string expr not working in object methods
          (Igbanam Ogbuluijah)
Solution: Check the evalarg argument (Yegappan Lakshmanan)

fixes: #16317
closes: #16342

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0974: typo in change of commit v9.1.0873 v9.1.0974
John Marriott [Mon, 30 Dec 2024 08:48:06 +0000 (09:48 +0100)] 
patch 9.1.0974: typo in change of commit v9.1.0873

Problem:  typo in change of commit v9.1.0873
          (Christ van Willegen)
Solution: Add back the square brackets
          (John Marriott)

closes: #16340

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0973: too many strlen() calls in fileio.c v9.1.0973
John Marriott [Sun, 29 Dec 2024 15:14:19 +0000 (16:14 +0100)] 
patch 9.1.0973: too many strlen() calls in fileio.c

Problem:  too many strlen() calls in fileio.c
Solution: refactor fileio.c and remove calls to STRLEN(),
          check for out-of-memory condition in buf_check_timestamp()
          (John Marriott)

closes: #16306

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(sh): set shellcheck as the compiler for supported shells
Luca Saccarola [Sun, 29 Dec 2024 14:36:42 +0000 (15:36 +0100)] 
runtime(sh): set shellcheck as the compiler for supported shells

closes: #16311

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): Fix enum example syntax
Doug Kearns [Sun, 29 Dec 2024 14:33:12 +0000 (15:33 +0100)] 
runtime(doc): Fix enum example syntax

An ex-colon is not allowed before endenum.  As no other examples in the
file use an ex-colon remove them both.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0972: filetype: TI linker map files are not recognized v9.1.0972
Wu, Zhenyu [Sun, 29 Dec 2024 14:28:46 +0000 (15:28 +0100)] 
patch 9.1.0972: filetype: TI linker map files are not recognized

Problem:  filetype: TI linker map files are not recognized
Solution: detect TI linker map files as lnkmap filetype
          (Wu, Zhenyu)

References:
https://downloads.ti.com/docs/esd/SPRUI03A/Content/SPRUI03A_HTML/linker_description.html

closes: #16324

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(vim): Improve syntax script generator for Vim Script
h-east [Sun, 29 Dec 2024 14:14:37 +0000 (15:14 +0100)] 
runtime(vim): Improve syntax script generator for Vim Script

closes: #16331

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0971: filetype: SLNX files are not recognized v9.1.0971
GustavEikaas [Sun, 29 Dec 2024 14:08:49 +0000 (15:08 +0100)] 
patch 9.1.0971: filetype: SLNX files are not recognized

Problem:  filetype: SLNX files are not recognized
Solution: detect '*.slnx' files as xml filetype
          (Gustav Eikaas)

References:
https://blog.ndepend.com/slnx-the-new-net-solution-xml-file-format/
https://blog.jetbrains.com/dotnet/2024/10/04/support-for-slnx-solution-files/

closes: #16334

Signed-off-by: GustavEikaas <gustav.eikaas@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.0970: VMS: build errors on VMS architecture v9.1.0970
Zoltan Arpadffy [Sun, 29 Dec 2024 08:50:20 +0000 (09:50 +0100)] 
patch 9.1.0970: VMS: build errors on VMS architecture

Problem:  VMS: build errors on VMS architecture
Solution: define cellsize struct, use C89 to initialize lval_root_S
          struct (Zoltan Arpadffy)

* define struct cellsize for VMS
* ensures the code adheres to the C89 standard

closes: #16328

Signed-off-by: Zoltan Arpadffy <zoltan.arpadffy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): Fix documentation typos
h-east [Sun, 29 Dec 2024 08:46:03 +0000 (09:46 +0100)] 
runtime(doc): Fix documentation typos

closes: #16333

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): update for new keyprotocol option value (after v9.1.0969)
Christian Brabandt [Sat, 28 Dec 2024 16:15:05 +0000 (17:15 +0100)] 
runtime(doc): update for new keyprotocol option value (after v9.1.0969)

Signed-off-by: Christian Brabandt <cb@256bit.org>