]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
20 months agopatch 9.1.0333: tests: test_xdg fails on the appimage repo v9.1.0333
Christian Brabandt [Mon, 15 Apr 2024 17:11:15 +0000 (19:11 +0200)] 
patch 9.1.0333: tests: test_xdg fails on the appimage repo

Problem:  tests: test_xdg fails on the appimage repo
Solution: compare only the last 30 right characters of $MYVIMRC

Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0332: tests: some assert_equal() calls have wrong order of args v9.1.0332
zeertzjq [Mon, 15 Apr 2024 17:01:04 +0000 (19:01 +0200)] 
patch 9.1.0332: tests: some assert_equal() calls have wrong order of args

Problem:  tests: some assert_equal() calls have wrong order of args
Solution: Correct the order (zeertzjq).

closes: #14555

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0331: make install does not install all files v9.1.0331
Matt Hammerly [Mon, 15 Apr 2024 16:54:38 +0000 (18:54 +0200)] 
patch 9.1.0331: make install does not install all files

Problem:  make install does not install all files (Nick Jensen)
Solution: Adjust the Makefile rule to install and uninstall cargo and
          rust directories (Matt Hammerly)

fixes: #14551
closes: #14552
closes: #14557

Signed-off-by: Matt Hammerly <hammerly.matt@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agoruntime(doc): fix typos in starting.txt
Diego Viola [Mon, 15 Apr 2024 16:51:29 +0000 (18:51 +0200)] 
runtime(doc): fix typos in starting.txt

closes: #14559

Signed-off-by: Diego Viola <diego.viola@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0330: v9.1.0327 contains an unrelated change v9.1.0330
Christian Brabandt [Sun, 14 Apr 2024 21:45:02 +0000 (23:45 +0200)] 
patch 9.1.0330: v9.1.0327 contains an unrelated change

Problem:  v9.1.0327 contains an unrelated change
Solution: Revert back $USR_VIMRC_FILE to $HOME instead of ~

Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0329: String interpolation fails for Dict type v9.1.0329
Yegappan Lakshmanan [Sun, 14 Apr 2024 21:21:02 +0000 (23:21 +0200)] 
patch 9.1.0329: String interpolation fails for Dict type

Problem:  String interpolation fails for Dict type
Solution: Support Dict data type properly, also support :put =Dict
          (without having to convert it to string() first)
          (Yegappan Lakshmanan)

fixes: #14529
closes: #14541

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0328: CI fails with t_?? test v9.1.0328
Christian Brabandt [Sun, 14 Apr 2024 21:14:50 +0000 (23:14 +0200)] 
patch 9.1.0328: CI fails with t_?? test

Problem:  CI fails with t_?? test
Solution: use assert_match instead of assert_equal
          and test only until t_xo, depending on system
          there may be several more termcap codes coming

Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0327: No support for using $XDG_CONFIG_HOME v9.1.0327
Luca Saccarola [Sun, 14 Apr 2024 20:53:22 +0000 (22:53 +0200)] 
patch 9.1.0327: No support for using $XDG_CONFIG_HOME

Problem:  No support for using $XDG_CONFIG_HOME
Solution: optionally source $XDG_CONFIG_HOME/vim/vimrc
          (Luca Saccarola)

fixes: #2034
closes: #14182

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0326: filetype: some requirements files are not recognized v9.1.0326
Wu, Zhenyu [Sun, 14 Apr 2024 18:38:24 +0000 (20:38 +0200)] 
patch 9.1.0326: filetype: some requirements files are not recognized

Problem:  filetype: some requirements files are not recognized
Solution: Detect '*-requirements.txt', 'constraints.txt',
          'requirements.in', 'requirements/*.txt' and 'requires/*.txt'
          as requirements filetype, include pip compiler, include
          requirements filetype and syntax plugin
          (Wu, Zhenyu, @raimon49)

closes: #14379

Co-authored-by: raimon <raimon49@hotmail.com>
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0325: filetype: CMakeCache.txt files not recognized v9.1.0325
Wu, Zhenyu [Sun, 14 Apr 2024 18:34:22 +0000 (20:34 +0200)] 
patch 9.1.0325: filetype: CMakeCache.txt files not recognized

Problem:  filetype: CMakeCache.txt files not recognized
Solution: Detect 'CMakeCache.txt' files as cmakecache filetype,
          include basic syntax script for cmakecache
          (Wu, Zhenyu, @bfrg)

closes: #14384

Co-authored-by: bfrg <bfrg@users.noreply.github.com>
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agoruntime(vim): Update base-syntax, fix nested function folding (#14397)
dkearns [Sun, 14 Apr 2024 18:32:56 +0000 (04:32 +1000)] 
runtime(vim): Update base-syntax, fix nested function folding (#14397)

Only match function folding start and end patterns at the start of a
line, excluding heredocs and :append/:change/:insert commands.

Fixes #14393

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
20 months agopatch 9.1.0324: filetype: some json files are not recognized v9.1.0324
Wu, Zhenyu [Sun, 14 Apr 2024 18:29:43 +0000 (20:29 +0200)] 
patch 9.1.0324: filetype: some json files are not recognized

Problem:  filetype: some json files are not recognized
Solution: Detect '.jscsrc' and '.vsconfig' as jsonc filetype
          (Wu, Zhenyu)

See:
- https://github.com/microsoft/PowerToys/blob/main/.vsconfig
- https://jscs-dev.github.io/

closes: #14452

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agocompiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files ...
wzy [Sun, 14 Apr 2024 18:28:29 +0000 (02:28 +0800)] 
compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0323: filetype: cabal config files may not be recognized v9.1.0323
Wu, Zhenyu [Sun, 14 Apr 2024 18:22:19 +0000 (20:22 +0200)] 
patch 9.1.0323: filetype: cabal config files may not be recognized

Problem:  filetype: cabal config files may not be recognized
Solution: Change filetype pattern to '*/{,.}cabal/config'
          (Wu Zhenyu)

closes: #14498

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agoruntime(vim): don't set compiler, update a comment for vimdoc compiler (#14532)
Shane-XB-Qian [Sun, 14 Apr 2024 18:20:01 +0000 (02:20 +0800)] 
runtime(vim): don't set compiler, update a comment for vimdoc compiler (#14532)

Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0322: filetype: some mail tools not recognized v9.1.0322
shane.xb.qian [Sun, 14 Apr 2024 18:14:33 +0000 (20:14 +0200)] 
patch 9.1.0322: filetype: some mail tools not recognized

Problem:  filetype: some mail tools not recognized
Solution: Detect '.mbsncrc' as conf, '.msmtprc' as msmtp
          and '.notmuch-config' as ini filetype
          (Shane-XB-Qian)

closes: #14533

Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0321: Garbled output on serial terminals with XON/XOFF flow control v9.1.0321
Anton Sharonov [Sun, 14 Apr 2024 18:02:24 +0000 (20:02 +0200)] 
patch 9.1.0321: Garbled output on serial terminals with XON/XOFF flow control

Problem:  When used terminal with XON/XOFF flow control, vim tries to
          still make CTRL-S mapping available, which results in severe
          screen corruption, especially on large redraws, and even
          spurious inputs (John Tsiombikas)
Solution: Disallow CTRL-S mapping if such terminal is recognized.
          Don't remove IXON from the bitmask inversion.
          (Anton Sharonov)

*** When started like this:

    TERM=vt420 vim

:set termcap

    shows "t_xon=y"

map <C-S> :echo "abc"<CR>

    does nothing (after <C-S> output freezes and subsequent <C-Q>
    unfreezes it)

*** When started like this:

    TERM=xterm vim

:set termcap

    shows "t_xon="

map <C-S> :echo "abc"<CR>

    works (after <C-S> one see "abc" string echo-ed)

fixes: #12674
closes: #14542

Signed-off-by: Anton Sharonov <anton.sharonov@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agoruntime(java): Recognise non-ASCII identifiers (#14543)
Aliaksei Budavei [Sun, 14 Apr 2024 16:57:00 +0000 (19:57 +0300)] 
runtime(java): Recognise non-ASCII identifiers (#14543)

* runtime(java): Recognise non-ASCII identifiers

Also:

- Remove the already commented out and less general in its
  definition javaFuncDef alternative.

- Stop recognising some bespoke {p,trace} debugging API.

Non-ASCII identifiers have been supported from the outset
of the Java language.

> An _identifier_ is an unlimited-length sequence of _Java
> letters_ and _Java digits_, the first of which must be a
> Java letter.  An identifier cannot have the same spelling
> (Unicode character sequence) as a keyword . . . Boolean
> literal . . . or the null literal . . .
> . . . . . . . .
> Letters and digits may be drawn from the entire Unicode
> character set . . .
> . . . . . . . .
> A Java letter is a character for which the method
> Character.isJavaLetter . . . returns true.  A Java
> letter-or-digit is a character for which the method
> Character.isJavaLetterOrDigit . . . returns true.
> . . . . . . . .
> The Java letters include . . . for historical reasons, the
> ASCII underscore (_) . . . and dollar sign ($) . . .

(Separate syntax tests will be written when particular parts
now touched will have been further improved.)

Reference:
https://javaalmanac.io/jdk/1.0/langspec.pdf [§3.8]

* Take on the maintenance of Java filetype and syntax files

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0320: Wrong cursor position after using setcellwidths() v9.1.0320
zeertzjq [Sun, 14 Apr 2024 16:52:49 +0000 (18:52 +0200)] 
patch 9.1.0320: Wrong cursor position after using setcellwidths()

Problem:  Wrong cursor position after using setcellwidths().
Solution: Invalidate cursor position in addition to redrawing.
          (zeertzjq)

closes: #14545

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0319: Using heredoc in string not tested with :execute v9.1.0319
zeertzjq [Sun, 14 Apr 2024 16:49:56 +0000 (18:49 +0200)] 
patch 9.1.0319: Using heredoc in string not tested with :execute

Problem:  Using heredoc in string not tested with :execute.
Solution: Test with both :execute and execute() (zeertzjq).

closes: #14546

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agoCI: use explicit version tags for macos runners (#14548)
Philip H [Sun, 14 Apr 2024 16:48:34 +0000 (18:48 +0200)] 
CI: use explicit version tags for macos runners (#14548)

as we do on others like ubuntu

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0318: filetype: translate shell config files are not recognized v9.1.0318
Wu, Zhenyu [Sat, 13 Apr 2024 16:28:28 +0000 (18:28 +0200)] 
patch 9.1.0318: filetype: translate shell config files are not recognized

Problem:  filetype: translate shell config files are not recognized
Solution: Detect 'init.trans', 'translate-shell' and '.trans' files as
          clojure (Wu, Zhenyu)

See: https://github.com/soimort/translate-shell/wiki/Configuration

closes: #14499

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0317: filetype: matplotlibrc files are not recognized v9.1.0317
Wu, Zhenyu [Sat, 13 Apr 2024 16:25:38 +0000 (18:25 +0200)] 
patch 9.1.0317: filetype: matplotlibrc files are not recognized

Problem:  filetype: matplotlibrc files are not recognized
Solution: Detect 'matplotlibrc' file as yaml filetype
          (Wu, Zhenyu)

See: https://matplotlib.org/stable/users/explain/customizing.html#the-matplotlibrc-file

closes: #14501

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agoruntime(vim): Update base-syntax, add legacy header folding
Doug Kearns [Sat, 13 Apr 2024 16:24:01 +0000 (18:24 +0200)] 
runtime(vim): Update base-syntax, add legacy header folding

Allow for syntax-based folding of Vim9 script legacy header regions.

This is enabled with the "H" flag of the g:vimsyn_folding config variable.

closes: #14530

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
20 months agopatch 9.1.0316: filetype: some sh and confini files not recognized v9.1.0316
Wu, Zhenyu [Sat, 13 Apr 2024 16:19:20 +0000 (18:19 +0200)] 
patch 9.1.0316: filetype: some sh and confini files not recognized

Problem:  filetype: some sh and confini files not recognized
Solution: Detect neofetch, '.xprofile', XDG-User-Dirs files,
          paru and makepkg config files
          (Wu, Zhenyu)

See:
- https://github.com/dylanaraps/neofetch/wiki/Customizing-Info#config-file-location
- https://www.freedesktop.org/wiki/Software/xdg-user-dirs/

closes: #14505

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0315: filetype: a few more dosini files are not recognized v9.1.0315
Wu, Zhenyu [Sat, 13 Apr 2024 16:13:42 +0000 (18:13 +0200)] 
patch 9.1.0315: filetype: a few more dosini files are not recognized

Problem:  filetype: a few more dosini files are not recognized
Solution: Detect wakatime, reply config files, flatpak, nfs config files
          and a few more python tools as dosini (or toml)
          (Wu, Zhenyu)

Refer:
- https://packaging.python.org/en/latest/specifications/pypirc/
- https://jorisroovers.com/gitlint/latest/configuration/
- https://pylint.pycqa.org/en/latest/user_guide/usage/run.html#command-line-options
- https://docs.bpython-interpreter.org/en/latest/configuration.html
- https://mypy.readthedocs.io/en/stable/config_file.html#the-mypy-configuration-file
- https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file
- https://github.com/wakatime/wakatime-cli?tab=readme-ov-file#usage
- https://metacpan.org/dist/Reply/view/bin/reply#-cfg-~/.replyrc

close: #14512

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agoruntime(i3config): Line continuation is not detected for 'set' command (#14531)
julio-b [Sat, 13 Apr 2024 16:10:10 +0000 (16:10 +0000)] 
runtime(i3config): Line continuation is not detected for 'set' command (#14531)

Problem:  Valid i3config syntax is highlighted as error.
Solution: Skip over line-breaks correctly.

Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Josef Litoš <54900518+JosefLitos@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0314: Vim9: Can define a class in a function v9.1.0314
Yegappan Lakshmanan [Sat, 13 Apr 2024 15:58:09 +0000 (17:58 +0200)] 
patch 9.1.0314: Vim9: Can define a class in a function

Problem:  Vim9: Can define a class in a function
          (Doug Kearns)
Solution: Give an error for a class defined in a function,
          slightly reword some public error messages
          (Yegappan Lakshmanan)

fixes: #13184
fixes: #13326
closes: #14537

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agoruntime(go): fix highlighting import string followed by some comment (#14538)
Linda_pp [Sat, 13 Apr 2024 15:56:17 +0000 (00:56 +0900)] 
runtime(go): fix highlighting import string followed by some comment (#14538)

Signed-off-by: rhysd <lin90162@yahoo.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0313: Crash when using heredoc with comment in command block v9.1.0313
zeertzjq [Sat, 13 Apr 2024 15:52:26 +0000 (17:52 +0200)] 
patch 9.1.0313: Crash when using heredoc with comment in command block

Problem:  Crash when using heredoc with comment in command block.
Solution: Handle a newline more like the end of the line, fix coverity
          warning (zeertzjq).

closes: #14535

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0312: heredocs are not supported for :commands v9.1.0312
Yegappan Lakshmanan [Fri, 12 Apr 2024 16:48:35 +0000 (18:48 +0200)] 
patch 9.1.0312: heredocs are not supported for :commands

Problem:  heredocs are not supported for :commands
          (@balki)
Solution: Add heredoc support
          (Yegappan Lakshmanan)

fixes: #14491
closes: #14528

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0311: filetype: Some config files are not recognized v9.1.0311
Wu, Zhenyu [Fri, 12 Apr 2024 16:46:05 +0000 (18:46 +0200)] 
patch 9.1.0311: filetype: Some config files are not recognized

Problem:  Some config files are not recognized
Solution: Add some patterns for chktex, ripgreprc and ctags config
          files.

See: https://www.nongnu.org/chktex/
See: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#configuration-file
See: https://docs.ctags.io/en/latest/option-file.html#order-of-loading-option-files

closes: #14506

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agopatch 9.1.0310: Filler lines not checked properly in get_scroll_overlap() v9.1.0310
zeertzjq [Fri, 12 Apr 2024 16:38:38 +0000 (18:38 +0200)] 
patch 9.1.0310: Filler lines not checked properly in get_scroll_overlap()

Problem:  Filler lines not checked properly in get_scroll_overlap().
Solution: Add missing parentheses (zeertzjq).

The missing parentheses causes the second argument to diff_check_fill()
to always be 0 as it is the result of a comparison between a positive
integer and -1 (the value of BACKWARD), in which case diff_check_fill()
always returns 0 instead of the number of filler lines above a line.

It's very hard to add a test for this, because this mistake at most
leads to 2 screen lines of difference in scrolling behavior, and in
cases where it may indeed lead to a difference in behavior, neither
behavior achieves complete symmetry between CTRL-F and CTRL-B.

closes: #14527

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agoruntime(dts): include ftplugin support (#14522)
wzy [Fri, 12 Apr 2024 16:36:57 +0000 (00:36 +0800)] 
runtime(dts): include ftplugin support (#14522)

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
20 months agoruntime(kconfig): add include to ftplugin (#14524)
Christian Brabandt [Fri, 12 Apr 2024 16:33:48 +0000 (17:33 +0100)] 
runtime(kconfig): add include to ftplugin (#14524)

related: #14521

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

related: #14464

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

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

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

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

fixes: #14482
closes: #14489

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

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

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

related: #14490

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

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

fixes: #14515

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

closes: #14459

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

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

related: #14464

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

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

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

closes: #14507

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

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

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

closes: #14511

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

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

closes: #14513

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

closes: #14461

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

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

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

closes: #14458

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

closes: #14383

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

closes: #14462

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

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

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

closes: #14463

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

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

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

closes: #14488

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

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

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

Fixes #13047, #11307 and #9587.

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

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

closes: #14472

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

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

closes: #14470

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

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

fixes: #14445
closes: #14473

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

closes: #14479

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

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

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

closes: #14483

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

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

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

closes: #14480

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

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

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

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

fixes: #14487

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

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

related: #14214
closes: #14465

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

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

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

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

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

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

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

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

fixes: #14294
closes: #14433

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

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

closes: #14448

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

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

closes: #14449

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

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

closes: #14450

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

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

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

closes: #14451

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

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

closes: #14453

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

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

closes: #14454

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

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

closes: #14456

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

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

closes: #14457

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

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

fixes: #14444
closes: #14446

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

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

fixes: #14443
closes: #14447

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

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

closes: #14455

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

as kindly pointed out by @Freed-Wu

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

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

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

closes: #14468

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

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

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

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

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

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

closes: #14426

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

Problem:  CI: fails Test_compiler_completion
Solution: Add pandoc compiler

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

closes: #14406

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

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

closes: #14410

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

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

closes: #14416

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

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

closes: #14380

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

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

closes: #14327

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

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

closes: #14389

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

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

closes: #14440

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

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

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

closes: #14429

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

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

closes: #14434

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

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

closes: #14435

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

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

closes: #14430

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

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

closes: #14438

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

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

closes: #14424

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

closes: vim/vim-win32-installer#337

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

The following is a collection of some small fixes:

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

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

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

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

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

closes: #14412

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

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

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

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

closes: #14421

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

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

closes: #14418

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

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

closes: #14417

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

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

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

Continue with #14399

Signed-off-by: jiangyinzuo <jiangyinzuo@foxmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>