]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
5 months agopatch 9.1.1056: Vim doesn't highlight to be inserted text when completing v9.1.1056
glepnir [Wed, 29 Jan 2025 17:53:51 +0000 (18:53 +0100)] 
patch 9.1.1056: Vim doesn't highlight to be inserted text when completing

Problem:  Vim doesn't highlight to be inserted text when completing
Solution: Add support for the "preinsert" 'completeopt' value
          (glepnir)

Support automatically inserting the currently selected candidate word
that does not belong to the latter part of the leader.

fixes: #3433
closes: #16403

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(netrw): upstream snapshot of v176
Luca Saccarola [Wed, 29 Jan 2025 17:39:30 +0000 (18:39 +0100)] 
runtime(netrw): upstream snapshot of v176

relevant commits:
- deprecate!: netrw#Launch, netrw#Open and gx mappings
- refactor: move some utility functions in a private file
- feat: add function to deprecate features
- refactor!: remove NetrwClean command and function
- refactor: use appropriate directories to store temporary files
- refactor: better way to call vim.ui.open
- refactor(Open): prefer lua wrapper function instead of cmdline
- refactor!: drop vim 7 checks
- refactor: use vim.ui.open when using neovim
- refactor: remove s:CheckIfKde
- refactor: balloon functionality
- refactor!: remove netrw#Access function

closes: #16519

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(dist/vim9): fix regressions in dist#vim9#Open
Luca Saccarola [Wed, 29 Jan 2025 17:33:46 +0000 (18:33 +0100)] 
runtime(dist/vim9): fix regressions in dist#vim9#Open

fixes: #16533
fixes: #16532
closes: #16535

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(hyprlang): fix string recognition
Luca Saccarola [Wed, 29 Jan 2025 09:27:55 +0000 (10:27 +0100)] 
runtime(hyprlang): fix string recognition

fixes: #16064
closes: #16527

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1055: make install fails because of a missing dependency v9.1.1055
Sergei Trofimovich [Tue, 28 Jan 2025 10:37:52 +0000 (11:37 +0100)] 
patch 9.1.1055: make install fails because of a missing dependency

Problem:  make install fails because of a missing dependency
Solution: add explicit dependencies for tutor/{en,it}
          (Sergei Trofimovich)

Without the change `make install -j16` fails
sometimes due to race condition to create a directory.

It's best reproducible with `make --shuffle`:

    $ make install --shuffle
    ...
    bash install-sh -c -d /vim-9.1.0990/share/vim/vim91/tutor
    chmod 755 /vim-9.1.0990/share/vim/vim91/tutor
    cp ../runtime/tutor/README* ../runtime/tutor/tutor* /vim-9.1.0990/share/vim/vim91/tutor
    cp ../runtime/tutor/en/* /vim-9.1.0990/share/vim/vim91/tutor/en/
    cp: target '/vim-9.1.0990/share/vim/vim91/tutor/en/': No such file or directory
    make[1]: [Makefile:2487: installtutor] Error 1 (ignored) shuffle=2340321974
    cp ../runtime/tutor/it/* /vim-9.1.0990/share/vim/vim91/tutor/it/
    cp: target '/vim-9.1.0990/share/vim/vim91/tutor/it/': No such file or directory
    make[1]: [Makefile:2488: installtutor] Error 1 (ignored) shuffle=2340321974

The fix adds a dependency on targeted directories used to install tutor.

Before the change it too 2-3 attempts to reproduce the install failure.
After the change `vim` survives 150 install attempts without failures.

closes: #16531

Signed-off-by: Sergei Trofimovich <slyich@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(asm): add byte directives to syntax script
Nir Lichtman [Sun, 26 Jan 2025 15:55:54 +0000 (16:55 +0100)] 
runtime(asm): add byte directives to syntax script

closes: #16523

Signed-off-by: Nir Lichtman <nir@lichtman.org>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1054: Vim doesn't work well with TERM=xterm-direct v9.1.1054
Christian Brabandt [Sun, 26 Jan 2025 09:49:59 +0000 (10:49 +0100)] 
patch 9.1.1054: Vim doesn't work well with TERM=xterm-direct

Problem:  Vim doesn't work well with TERM=xterm-direct
          (Andrea Pappacoda)
Solution: detect if a terminal supports true-colors and
          enable termguicolors

The terminfo database for xterm-direct contains both the (non-standard)
termcap RGB capability and a number of colors == 0x1000000 so it seems
either of those two options can be used to detect a terminal capable of
displaying true colors.

So set the termguicolor option automatically, when either of the two
options is detected. (for some reasons, my debian xterm (v393) does not
respond to XTGETTCAP query attempts, so falling back to the number of
colors seems like a good compromize)

fixes: #16327
closes: #16490

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(filetype): commit 99181205c5f8284a3 breaks V lang detection
Christian Brabandt [Sat, 25 Jan 2025 15:18:51 +0000 (16:18 +0100)] 
runtime(filetype): commit 99181205c5f8284a3 breaks V lang detection

so make the regex more strict and have it check for a parenthesis.

See:
https://github.com/vlang/v/blob/master/examples/submodule/mymodules/submodule/sub_functions.v

related: #16513

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime: decouple Open and Launch commands and gx mapping from netrw
Luca Saccarola [Sat, 25 Jan 2025 15:07:12 +0000 (16:07 +0100)] 
runtime: decouple Open and Launch commands and gx mapping from netrw

closes: #16494
fixes: ##16486

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1053: "nosort" enables fuzzy filtering even if "fuzzy" isn't in 'completeopt' v9.1.1053
zeertzjq [Sat, 25 Jan 2025 14:29:03 +0000 (15:29 +0100)] 
patch 9.1.1053: "nosort" enables fuzzy filtering even if "fuzzy" isn't in 'completeopt'

Problem:  "nosort" enables fuzzy filtering even if "fuzzy" isn't in
          'completeopt' (after v9.1.1049)
Solution: Only enable fuzzy filtering when "fuzzy" is in 'completeopt'.
          (zeertzjq)

closes: #16510

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(just): fix typo in syntax file
Peter Benjamin [Sat, 25 Jan 2025 14:26:09 +0000 (15:26 +0100)] 
runtime(just): fix typo in syntax file

closes: #16515

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(filetype): Improve Verilog detection by checking for modules definition
Christian Brabandt [Sat, 25 Jan 2025 13:54:28 +0000 (14:54 +0100)] 
runtime(filetype): Improve Verilog detection by checking for modules definition

While at it, also increase the maximum number of lines to check to 500.

fixes: #16513

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1052: tests: off-by-one error in CheckCWD in test_debugger.vim v9.1.1052
Yee Cheng Chin [Sat, 25 Jan 2025 14:14:06 +0000 (15:14 +0100)] 
patch 9.1.1052: tests: off-by-one error in CheckCWD in test_debugger.vim

Problem:  tests: off-by-one error in CheckCWD in test_debugger.vim
Solution: Fix off-by-one in CheckCWD leading to local tests failure
          (Yee Cheng Chin)

Vim's test_debugger's Test_debug_backtrace_level test will fail if you
happen to run it in a Vim repository with full path of directory being
exactly 29 characters (e.g. `/Users/bob/developing/src/vim`). The test
does term dump comparison and the printout will overflow if the CWD is
too long. It does have a function to skip to test if it detects that but
it's off by one leading to this one situation where it will fail.

The reason why the logic didn't account for this is that Vim's message
printing will overflow the text if it prints a message at exactly the
width of the terminal. This could be considered a bug / quirk but that
will be another issue.

closes: #16517

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1051: tests: no support for env variables when running Vim in terminal v9.1.1051
Christian Brabandt [Sat, 25 Jan 2025 14:01:42 +0000 (15:01 +0100)] 
patch 9.1.1051: tests: no support for env variables when running Vim in terminal

Problem:  tests: no support for env variables when running Vim in
          terminal
Solution: support the "env" argument in RunVimInTerminal(),
          close swapfiles properly in test_termcodes,
          use CheckFeature in test_termencoding

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1050: too many strlen() calls in os_unix.c v9.1.1050
John Marriott [Thu, 23 Jan 2025 19:05:29 +0000 (20:05 +0100)] 
patch 9.1.1050: too many strlen() calls in os_unix.c

Problem:  too many strlen() calls in os_unix.c
Solution: refactor os_unix.c and remove calls to strlen()
          (John Marriott)

closes: #16496

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1049: insert-completed items are always sorted v9.1.1049
glepnir [Thu, 23 Jan 2025 18:55:14 +0000 (19:55 +0100)] 
patch 9.1.1049: insert-completed items are always sorted

Problem:  insert-completed items are always sorted, although the LSP
          spec[1] standard defines sortText in the returned
          completionitem list. This means that the server has sorted the
          results. When fuzzy is enabled, this will break the server's
          sorting results.
Solution: disable sorting of candidates when "nosort" is set in
          'completeopt'

[1]
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#completionItem

closes: #16501

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1048: crash after scrolling and pasting in silent Ex mode v9.1.1048
zeertzjq [Wed, 22 Jan 2025 21:27:30 +0000 (22:27 +0100)] 
patch 9.1.1048: crash after scrolling and pasting in silent Ex mode

Problem:  Crash after scrolling and pasting in silent Ex mode.
          (fizz-is-on-the-way)
Solution: Don't move cursor to line 0 when scrolling.
          (zeertzjq)

closes: #16506

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1047: Makefiles uses non-portable syntax v9.1.1047
Christian Brabandt [Wed, 22 Jan 2025 21:21:50 +0000 (22:21 +0100)] 
patch 9.1.1047: Makefiles uses non-portable syntax

Problem:  Makefiles uses non-portable syntax
          (simo-zz, after v9.1.1029)
Solution: Revert auto-generation of MAJOR/MINOR variables

fixes: #16502
closes: #16503

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1046: fuzzymatching doesn't prefer matching camelcase v9.1.1046
glepnir [Tue, 21 Jan 2025 21:33:13 +0000 (22:33 +0100)] 
patch 9.1.1046: fuzzymatching doesn't prefer matching camelcase

Problem:  fuzzymatching doesn't prefer matching camelcase
          (Tomasz N)
Solution: Add extra score when case matches (glepnir)

fixes: #16434
closes: #16439

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1045: filetype: N-Tripels and TriG files are not recognized v9.1.1045
Gordian Dziwis [Tue, 21 Jan 2025 21:24:23 +0000 (22:24 +0100)] 
patch 9.1.1045: filetype: N-Tripels and TriG files are not recognized

Problem:  filetype: N-Tripels and TriG files are not recognized
Solution: detect '*.nt' files as ntriples filetype and '*.trig' files
          as trig filetype (Gordian Dziwis)

closes: #16493

Signed-off-by: Gordian Dziwis <gordian@dziw.is>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1044: Vim9: Patch 9.1.1014 causes regressions v9.1.1044
Christian Brabandt [Tue, 21 Jan 2025 21:17:50 +0000 (22:17 +0100)] 
patch 9.1.1044: Vim9: Patch 9.1.1014 causes regressions

Problem:  Vim9: Patch 9.1.1014 causes regressions
Solution: revert it for now

This reverts commit 57f0119358ed7f060d5020309b9043463121435f since this
causes some regressions:
https://github.com/vim/vim/pull/16440#issuecomment-2600235629

So revert "patch 9.1.1014: Vim9: variable not found in transitive
import" for now.

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoUpdate .gitignore for v9.1.1036
ichizok [Tue, 21 Jan 2025 20:48:58 +0000 (21:48 +0100)] 
Update .gitignore for v9.1.1036

Ignore the src/{LICENSE,README.txt} which are created from shadow
directories.

closes: #16499

Signed-off-by: ichizok <gclient.gaap@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agotranslation(sr): Update Serbian messages translation
Ivan Pešić [Tue, 21 Jan 2025 20:42:48 +0000 (21:42 +0100)] 
translation(sr): Update Serbian messages translation

closes: #16500

Signed-off-by: Ivan Pešić <27575106+eevan78@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1043: [security]: segfault in win_line() v9.1.1043
Christian Brabandt [Mon, 20 Jan 2025 21:55:57 +0000 (22:55 +0100)] 
patch 9.1.1043: [security]: segfault in win_line()

Problem:  [security]: segfault in win_line()
          (fizz-is-on-the-way)
Solution: Check that ScreenLines is not NULL

Github Advisory:
https://github.com/vim/vim/security/advisories/GHSA-j3g9-wg22-v955

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(doc): update helptags
Christian Brabandt [Mon, 20 Jan 2025 21:52:54 +0000 (22:52 +0100)] 
runtime(doc): update helptags

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1042: filetype: just files are not recognized v9.1.1042
Peter Benjamin [Mon, 20 Jan 2025 20:56:41 +0000 (21:56 +0100)] 
patch 9.1.1042: filetype: just files are not recognized

Problem:  filetype: just files are not recognized
Solution: adjust filetype detection pattern, detect just shebang line,
          include just ftplugin, indent and syntax plugin
          (Peter Benjamin)

closes: #16466

Signed-off-by: Peter Benjamin <petermbenjamin@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(vim): Update base-syntax, match ternary and falsy operators
Doug Kearns [Mon, 20 Jan 2025 20:53:01 +0000 (21:53 +0100)] 
runtime(vim): Update base-syntax, match ternary and falsy operators

fixes: #14423
fixes: #16227
closes: #16484

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1041: Vim9: out-of-bound access when echoing an enum v9.1.1041
Yegappan Lakshmanan [Mon, 20 Jan 2025 20:38:09 +0000 (21:38 +0100)] 
patch 9.1.1041: Vim9: out-of-bound access when echoing an enum

Problem:  Vim9: out-of-bound access when echoing an enum
Solution: Add NUL to growarray, check that ufunc is non-null
          before accessing it to make Coverity happy
          (Yegappan Lakshmanan)

closes: #16488

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1040: Vim9: imported type cannot be used as func return type v9.1.1040
Yegappan Lakshmanan [Mon, 20 Jan 2025 20:09:13 +0000 (21:09 +0100)] 
patch 9.1.1040: Vim9: imported type cannot be used as func return type

Problem:  Vim9: imported type cannot be used as func return type
          (Dayvid Albuquerque)
Solution: temporarily reset the is_export flag (Yegappan Lakshmanan)

fixes: #16489
closes: #16492

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(kconfig): updated ftplugin and syntax script
Christian Brabandt [Mon, 20 Jan 2025 20:01:41 +0000 (21:01 +0100)] 
runtime(kconfig): updated ftplugin and syntax script

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(doc): rename last t_BG reference to t_RB
Jon Parise [Mon, 20 Jan 2025 19:19:18 +0000 (20:19 +0100)] 
runtime(doc): rename last t_BG reference to t_RB

This was missed in 37c64c78fd87e086b5a945ad7032787c274e2dcb.

closes: #16491

Signed-off-by: Jon Parise <jon@indelible.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1039: Vim9: comments are outdated v9.1.1039
Yegappan Lakshmanan [Sun, 19 Jan 2025 21:20:34 +0000 (22:20 +0100)] 
patch 9.1.1039: Vim9: comments are outdated

Problem:  Vim9: comments are outdated
Solution: Update comments, and include an enum example in the help
          (Yegappan Lakshmanan)

closes: #16485

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1038: tests: test_channel.py fails with IPv6 v9.1.1038
Christian Brabandt [Sun, 19 Jan 2025 13:50:31 +0000 (14:50 +0100)] 
patch 9.1.1038: tests: test_channel.py fails with IPv6

Problem:  tests: test_channel.py fails with IPv6
          (eds-collabora)
Solution: Use 127.0.0.1 instead of localhost

fixes: #16398

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(vim): Update base-syntax, fix is/isnot operator matching
Doug Kearns [Sun, 19 Jan 2025 13:02:06 +0000 (14:02 +0100)] 
runtime(vim): Update base-syntax, fix is/isnot operator matching

- Match is? and isnot? operators.
- Limit other comparison operators to one match modifier rather than
  two.

closes: #16482

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1037: Vim9: confusing error when using abstract method via super v9.1.1037
Ernie Rael [Sun, 19 Jan 2025 09:03:00 +0000 (10:03 +0100)] 
patch 9.1.1037: Vim9: confusing error when using abstract method via super

Problem:  Vim9: confusing error when using abstract method via super
Solution: Display an error when an abstract method is invoked using
          super (Ernie Rael)

fixes: #15514
closes: #16478

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1036: make install fails when using shadowdir v9.1.1036
Christian Brabandt [Sun, 19 Jan 2025 09:00:40 +0000 (10:00 +0100)] 
patch 9.1.1036: make install fails when using shadowdir

Problem:  make install fails when using shadowdir
          (after v9.1.1029)
Solution: also link in README.txt and LICENSE file

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1035: Vim9: memory leak with blob2str() v9.1.1035
Yegappan Lakshmanan [Sun, 19 Jan 2025 08:37:07 +0000 (09:37 +0100)] 
patch 9.1.1035: Vim9: memory leak with blob2str()

Problem:  Vim9: memory leak with blob2str()
Solution: free converted_str (Yegappan Lakshmanan)

closes: #16481

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(tex): add texEmphStyle to texMatchGroup in syntax script
Christian Brabandt [Sat, 18 Jan 2025 17:09:38 +0000 (18:09 +0100)] 
runtime(tex): add texEmphStyle to texMatchGroup in syntax script

fixes: #16228

Co-authored-by: Github User JordL
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoCI: bump windows python to 3.12
Philip H. [Sat, 18 Jan 2025 16:38:12 +0000 (17:38 +0100)] 
CI: bump windows python to 3.12

closes: #16473

Signed-off-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(netrw): upstream snapshot of v175
Luca Saccarola [Sat, 18 Jan 2025 16:36:02 +0000 (17:36 +0100)] 
runtime(netrw): upstream snapshot of v175

Relevant commits:
- release: netrw v175
- fix: prevent netrw to load into the built-in terminal
- fix: restore correctly cpo settings
- fix(docs): mispelled original authors name
- chore: move viml files to new formatting standard

fixes: #16463
closes: #16465

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoCI: add Linux arm64 CI job
rhysd [Sat, 18 Jan 2025 16:32:11 +0000 (17:32 +0100)] 
CI: add Linux arm64 CI job

This patch adds jobs to run tests on arm64 GitHub Actions hosted runner
for tiny and huge features.

closes: #16477

Signed-off-by: rhysd <lin90162@yahoo.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1033: Vim9: compiling abstract method fails without return v9.1.1034
Ernie Rael [Sat, 18 Jan 2025 16:26:39 +0000 (17:26 +0100)] 
patch 9.1.1033: Vim9: compiling abstract method fails without return

Problem:  Vim9: compiling abstract method fails without return
          (Aliaksei Budavei)
Solution: don't require return for an abstract method
          (Ernie Rael)

fixes: #15432
related: ##15441
closes: #16469

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoCI: bump windows libsodium to 1.0.20
Philip H. [Sat, 18 Jan 2025 16:20:13 +0000 (17:20 +0100)] 
CI: bump windows libsodium to 1.0.20

closes: #16475

Signed-off-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(c): add new constexpr keyword to syntax file (C23)
Doug Kearns [Sat, 18 Jan 2025 09:52:27 +0000 (10:52 +0100)] 
runtime(c): add new constexpr keyword to syntax file (C23)

closes: #16471

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1033: tests: shaderslang was removed from test_filetype erroneously v9.1.1033
Christian Brabandt [Sat, 18 Jan 2025 09:49:08 +0000 (10:49 +0100)] 
patch 9.1.1033: tests: shaderslang was removed from test_filetype erroneously

Problem:  tests: shaderslang was removed from test_filetype erroneously
          (Christian Clason, after v9.1.1030)
Solution: restore the test

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1032: link error when FEAT_SPELL not defined v9.1.1032
Yegappan Lakshmanan [Sat, 18 Jan 2025 09:35:57 +0000 (10:35 +0100)] 
patch 9.1.1032: link error when FEAT_SPELL not defined

Problem:  link error when FEAT_SPELL not defined
          (after v9.1.1016, John Marriott)
Solution: adjust ifdefs (Yegappan Lakshmanan)

closes: #16468

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1031: Coverity complains about insecure data handling v9.1.1031
Yegappan Lakshmanan [Sat, 18 Jan 2025 09:24:25 +0000 (10:24 +0100)] 
patch 9.1.1031: Coverity complains about insecure data handling

Problem:  Coverity complains about insecure data handling
          (v9.1.1024)
Solution: use int consistently to access the blob index
          (Yegappan Lakshmanan)

related: #16468

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(sh): update syntax script
Eisuke Kawashima [Sat, 18 Jan 2025 09:11:28 +0000 (10:11 +0100)] 
runtime(sh): update syntax script

- remove duplicated keywords
- add bash coproc and COPROC_PID keywords

Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(c): Add missing syntax test files
Doug Kearns [Sat, 18 Jan 2025 09:06:59 +0000 (10:06 +0100)] 
runtime(c): Add missing syntax test files

These were missing from commit c2a967a.

closes: #16470

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1030: filetype: setting bash filetype is backwards incompatible v9.1.1030
Christian Brabandt [Sat, 18 Jan 2025 09:03:46 +0000 (10:03 +0100)] 
patch 9.1.1030: filetype: setting bash filetype is backwards incompatible

Problem:  filetype: setting bash filetype is backwards incompatible
Solution: revert patch v9.1.0965, detect bash scripts again as sh
          filetype

This reverts commit b9b762c21f2b61e0e7d8fee43d4d3dc8ecffd721.

related: #16309

Signed-off-by: Christian Brabandt <cb@256bit.org>
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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>