]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
18 months agoruntime(fortran): update fortran syntax (#13870)
Ajit-Thakkar [Mon, 15 Jan 2024 21:42:03 +0000 (17:42 -0400)] 
runtime(fortran): update fortran syntax (#13870)

Support most remaining features of Fortran 2018/2023
Small improvements to folding etc,
Code cleanup: use \? instead of mix of \= and \?

Signed-off-by: Ajit-Thakkar <142174202+Ajit-Thakkar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoCI: regenerate helptags, fix ci help tags job failing
Christian Brabandt [Mon, 15 Jan 2024 21:38:48 +0000 (22:38 +0100)] 
CI: regenerate helptags, fix ci help tags job failing

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0030: Cannot use terminal alternate font v9.1.0030
PMunch [Wed, 15 Nov 2023 14:35:49 +0000 (15:35 +0100)] 
patch 9.1.0030: Cannot use terminal alternate font

Problem:  Cannot use terminal alternate fonts (PMunch)
Solution: Support terminal alternate fonts using
          CSI SGR 10-20 and t_CF code (PMunch)

Add support for alternate font highlighting

This adds support for alternate font highlighting using CSI SGR 10-20.
Few terminals currently support this, but with added tool support this
should improve over time. The change here is more or less taken from how
colors are configured and applied, but there might be some parts I
missed while implementing it. Changing fonts is done through the new
`:hi ctermfont` attribute which takes a number, 0 is the normal font, and
the numbers 1-9 select an "alternative" font. Which fonts are in use is
up to the terminal.

fixes: #13513
closes: #13537

Signed-off-by: PMunch <peterme@peterme.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): Replace non-breaking space with normal space (#13868)
Yegappan Lakshmanan [Mon, 15 Jan 2024 19:08:25 +0000 (11:08 -0800)] 
runtime(doc): Replace non-breaking space with normal space (#13868)

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Doug Kearns [Sun, 14 Jan 2024 19:59:02 +0000 (20:59 +0100)] 
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"

Problem:  The "*.*" browsefilter pattern only matches all files on
  Windows (Daryl Lee)
Solution: Use "*" to filter on all platforms but keep "*.*" as the label
  text on Windows. (Fixes #12685, Doug Kearns)

The *.* browsefilter pattern used to match "All Files" on Windows is a
legacy of the DOS 8.3 filename wildcard matching algorithm.  For reasons
of backward compatibility this still works on Windows to match all
files, even those without an extension.

However, this pattern only matches filenames containing a dot on other
platforms.  This often makes files without an extension difficult to
access from the file dialog, e.g., "Makefile"

On Windows it is still standard practice to use "*.*" for the filter
label so ftplugins should use "All Files (*.*)" on Windows and "All
Files (*)" on other platforms.  This matches Vim's default browsefilter
values.

This commit also normalises the browsefilter conditional test to check
for the Win32 and GTK GUI features and an unset b:browsefilter.

closes: #12759

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0029: Cannot act on various terminal response codes v9.1.0029
Danek Duvall [Sun, 14 Jan 2024 19:19:59 +0000 (20:19 +0100)] 
patch 9.1.0029: Cannot act on various terminal response codes

Problem:  Cannot act on various terminal response codes
Solution: Add the TerminalResponseAll autocommand
          (Danek Duvall)

closes: #13829

Signed-off-by: Danek Duvall <duvall@comfychair.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0028: win32: Ctrl-D cannot be used to close a pipe v9.1.0028
GuyBrush [Sun, 14 Jan 2024 19:08:40 +0000 (20:08 +0100)] 
patch 9.1.0028: win32: Ctrl-D cannot be used to close a pipe

Problem:  win32: Ctrl-D cannot be used to close a pipe
Solution: Properly detect Ctrl-D when reading from a pipe
          (GuyBrush)

Enabling Ctrl-D for gvim pipeline input
and apply defensive programming on account of PR #12752
so that once PR 12752 is merged, CTRL-D will keep on working

closes: #13849

Signed-off-by: GuyBrush <miguel.barro@live.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoCI: Check help tags for errors (duplicates, missing, etc) (#13865)
Christian Brabandt [Sun, 14 Jan 2024 18:24:05 +0000 (18:24 +0000)] 
CI: Check help tags for errors (duplicates, missing, etc) (#13865)

- Run the doc make html awk script, which also checks, that all
  referenced help tags exists.
- Run the doc maketags awk script, which checks for duplicates
- in case of any error in the previous two steps, exit the CI with
  an error and show the errors.log file, that is generated by the
  previous 2 steps

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(help): delete duplicate help tag E741 (#13861)
errael [Sun, 14 Jan 2024 18:11:07 +0000 (10:11 -0800)] 
runtime(help): delete duplicate help tag E741 (#13861)

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0027: Vim is missing a foreach() func v9.1.0027
Ernie Rael [Sat, 13 Jan 2024 10:47:33 +0000 (11:47 +0100)] 
patch 9.1.0027: Vim is missing a foreach() func

Problem:  Vim is missing a foreach() func
Solution: Implement foreach({expr1}, {expr2}) function,
          which applies {expr2} for each item in {expr1}
          without changing it (Ernie Rael)

closes: #12166

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0026: win32: Windows default font lacking v9.1.0026
Ken Takata [Fri, 12 Jan 2024 17:09:43 +0000 (18:09 +0100)] 
patch 9.1.0026: win32: Windows default font lacking

Problem:  win32: Windows default font lacking (@clach04)
Solution: Improve default font (Ken Takata)

win32: Improve default font

Currently, Fixedsys is the default font on Windows.
It is not suitable for recent High DPI environments.

* Change the default font to Consolas.
* Allow to change the default font by the translation message. E.g.:
  ```
  msgid "DefaultFontNameForWindows"
  msgstr "Courier New"
  ```

fixes: #12919
closes: #13266

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0025: A few typos in tests and justify.vim v9.1.0025
dundargoc [Fri, 12 Jan 2024 17:02:10 +0000 (18:02 +0100)] 
patch 9.1.0025: A few typos in tests and justify.vim

Problem:  A few typos in tests and justify.vim
Solution: fix them

closes: #13848

Signed-off-by: dundargoc <gocdundar@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0024: z/OS (MVS) support can be improved v9.1.0024
Igor Todorovski [Fri, 12 Jan 2024 16:59:18 +0000 (17:59 +0100)] 
patch 9.1.0024: z/OS (MVS) support can be improved

Problem:  z/OS (MVS) support can be improved
Solution: set UTF-8 as the default encoding for z/OS

closes: #13821

Signed-off-by: Igor Todorovski <itodorov@ca.ibm.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0023: xxd: few problems with EBCDIC for z/OS (MVS) v9.1.0023
Igor Todorovski [Tue, 9 Jan 2024 21:05:48 +0000 (21:05 +0000)] 
patch 9.1.0023: xxd: few problems with EBCDIC for z/OS (MVS)

Problem:  xxd: few problems with EBCDIC for z/OS (MVS)
Solution: Fix xxd build and support ASCII and UTF-8 on z/OS (MVS)
          natively, add MVS guard checks with __CHARSET_LIB,
          support $LIBS in the Makefile
          (Igor Todorovski)

related: #13821

Signed-off-by: Igor Todorovski <itodorov@ca.ibm.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0022: Coverity complains about improper use of negative value v9.1.0022
Christian Brabandt [Fri, 12 Jan 2024 16:48:08 +0000 (17:48 +0100)] 
patch 9.1.0022: Coverity complains about improper use of negative value

Problem:  Coverity complains about improper use of negative value
Solution: Add a condition to validate that keytyped is larger or equal
          to 0

Apparently patch 9.1.0006 made it more explicit for Coverity, that the
TOLOWER_LOC() macros do not handle negative values properly. However,
that condition has always been there even before that, so add a
condition to verify that keytyped is indeed at least 0

closes: #13824

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0021: i_CTRL-R- doesn't work for multibyte chars in Replace mode v9.1.0021
zeertzjq [Fri, 12 Jan 2024 16:43:05 +0000 (17:43 +0100)] 
patch 9.1.0021: i_CTRL-R- doesn't work for multibyte chars in Replace mode

Problem:  i_CTRL-R- doesn't work for multibyte chars in Replace mode,
          Coverity complains missing return value for u_save_cursor()
Solution: Use mb_charlen() and del_chars() instead, handle failure mode
          for u_save_cursor() correctly (@zeertzjq)

closes: #13846

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0020: Vim9: cannot compile all methods in a class v9.1.0020
Yegappan Lakshmanan [Fri, 12 Jan 2024 16:36:40 +0000 (17:36 +0100)] 
patch 9.1.0020: Vim9: cannot compile all methods in a class

Problem:  Vim9: cannot compile all methods in a class
Solution: Support compiling all the methods in a class using :defcompile
          (Yegappan Lakshmanan)

closes: #13844

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0019: cmdline may disappear when changing 'cmdheight' v9.1.0019
Christian Brabandt [Fri, 12 Jan 2024 16:34:40 +0000 (17:34 +0100)] 
patch 9.1.0019: cmdline may disappear when changing 'cmdheight'

Problem:  cmdline may disappear when changing 'cmdheight'
          (after Patch 9.0.0190, @markonm)
Solution: always re-calculate the old_p_ch value, not only
          when cmdline_row was higher than expected

fixes: #13822
closes: #13826

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0018: use of #if instead of #ifdef v9.1.0018
Ken Takata [Fri, 12 Jan 2024 16:31:07 +0000 (17:31 +0100)] 
patch 9.1.0018: use of #if instead of #ifdef

Problem:  use of #if instead of #ifdef
Solution: use correct form of #ifdef

`#if FEAT_GUI_HAIKU` was used mistakenly. Use the correct form
`#ifdef FEAT_GUI_HAIKU` instead.

closes: #13843

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(netrw): Decode multibyte percent-encoding filename correctly (#13842)
K.Takata [Fri, 12 Jan 2024 16:30:01 +0000 (01:30 +0900)] 
runtime(netrw): Decode multibyte percent-encoding filename correctly (#13842)

Use `printf("%c")` instead of `nr2char()` to handle '%xx' as a byte.

Close #13787

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0017: [security]: use-after-free in eval1_emsg() v9.1.0017
Yegappan Lakshmanan [Fri, 12 Jan 2024 16:21:55 +0000 (17:21 +0100)] 
patch 9.1.0017: [security]: use-after-free in eval1_emsg()

Problem:  use-after-free in eval1_emsg() when an empty
          line follows a lambda (by @yu3s)
Solution: only set evalarg->eval_using_cmdline = FALSE when
          the *arg pointer is not null

fixes: #13833
closes: #13841

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(netrw): Sync with netrw 174b (#13836)
K.Takata [Tue, 9 Jan 2024 18:21:05 +0000 (03:21 +0900)] 
runtime(netrw): Sync with netrw 174b (#13836)

* Import netrw v174b
* Revert unwanted changes
* Fix indent
* Revert some changes
* Update tags
* Break long line

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(colorschemes): Add initial support for Added/Removed/Changed highlight groups...
Maxim Kim [Mon, 8 Jan 2024 19:14:04 +0000 (06:14 +1100)] 
runtime(colorschemes): Add initial support for Added/Removed/Changed highlight groups (#13830)

For some of the colorschemes where diffAdded and diffRemoved were explicitly set up.

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(tar): fix a few problems with the tar plugin
Christian Brabandt [Mon, 8 Jan 2024 19:02:14 +0000 (20:02 +0100)] 
runtime(tar): fix a few problems with the tar plugin

From: #138331:
  - Updating .tar.zst files was broken. Fixes #12639.
  - Extracting files from .tar.zst / .tzs files was also broken and
    works now.
From: #12637:
  - Fixes variable assignment and typo
From: #8109:
  - Rename .tzs to the more standard .tzst

fixes: #12639
fixes: #8105
closes: #8109
closes: #12637
closes: #13831

Co-authored-by: Martin Rys <martin@rys.pw>
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Co-authored-by: Carlo Teubner <carlo@cteubner.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(vim): accept dot in completionList for Vim9 syntax (#13832)
Maxim Kim [Mon, 8 Jan 2024 18:42:02 +0000 (05:42 +1100)] 
runtime(vim): accept dot in completionList for Vim9 syntax (#13832)

if you have autoloaded command complete function in vim9script, it shouldn't be highlighted as Error:

```
import autoload "share.vim"
command! -range=% -nargs=? -complete=custom,share.Complete Share share.Paste(<q-args>, <line1>, <line2>)
```

`share.Complete` is a valid complete function.

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0016: default diff highlighting is too noisy v9.1.0016
Romain Lafourcade [Sun, 7 Jan 2024 14:08:31 +0000 (15:08 +0100)] 
patch 9.1.0016: default diff highlighting is too noisy

Problem:  default diff highlighting is too noisy
Solution: Link diff highlighting groups to new
          Added/Removed/Changed, revert previous change
          (Romain Lafourcade)

Remove diff* links added in #13776 and doc added in commit b1392be

The links added in #13776 are way too noisy for the contexts in which
the `diff` syntax is applied (git commits, patches, etc.).

This commit:

- removes those links
- adds new default highlighting groups Added, Changed and
  Removed
- links the diff highlighting groups to those new defaults
- removes the doc changes
- adjusts the syntax_completion test for those newly added group
  names

Note: Changes to the default color schemes will be handled separately,
by adding links to those newly created Added/Removed/Changed
highlighting groups.

related: #13776
closes #13825

Signed-off-by: Romain Lafourcade <romain.lafourcade@razorfish.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): Improve the documentation for Vim9 classes (#13828)
Aliaksei Budavei [Sun, 7 Jan 2024 14:52:10 +0000 (17:52 +0300)] 
runtime(doc): Improve the documentation for Vim9 classes (#13828)

* Emend textual typos
* Emend syntactic errors in examples
* Acknowledge no support for abstract static methods
* Acknowledge the non-ubiquity of instance qualification

"This" was never allowed in method declarations, e.g.:
    class A
        def this.M()
        enddef
    endclass

and, since patch 9.0.2167, "this" can no longer be used in field
declarations, e.g.:
    class B
        var this.f: string
    endclass

* Recognise abstract child classes
* Reword an ambiguous turn of phrase

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0015: i_CTRL-R- no longer works in replace mode v9.1.0015
Christian Brabandt [Fri, 5 Jan 2024 17:19:52 +0000 (18:19 +0100)] 
patch 9.1.0015: i_CTRL-R- no longer works in replace mode

Problem:  i_CTRL-R- no longer works in replace mode
Solution: delete characters in replace mode before putting, add a test,
          add a bit warning into the documentation, that i_CTRL-R-P/O
          is not supported in Replace mode for now

fixes: #13792
closes: #13816

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0014: incorrect use of W_WINROW in edit.c v9.1.0014
zeertzjq [Fri, 5 Jan 2024 17:11:43 +0000 (18:11 +0100)] 
patch 9.1.0014: incorrect use of W_WINROW in edit.c

Problem:  incorrect use of W_WINROW in edit.c
Solution: compare against curwin->w_height instead

Remove incorrect use of W_WINROW

In structs.h it is mentioned that w_wrow is relative to w_winrow, so
using W_WINROW doesn't make sense when comparing with window height.

This change won't lead to any observable behavior change:

The condition intends to check if there are 'scrolloff' lines between
the current cursor when the bottom of the window. When W_WINROW(curwin)
is added to curwin->w_height - 1 - get_scrolloff_value(), the condition
is instead satisfied when the cursor is on some screen line below that
position. However,
- If 'scrolloff' is smaller than half the window height, this condition
  can only be satisfied when W_WINROW(curwin) == 0. And if it is not
  satisfied, update_topline() does the actual scrolling.
- If 'scrolloff' is larger than half the window height, update_topline()
  will put the cursor at the center of the window soon afterwards
  anyway, because set_topline() now unsets VALID_TOPLINE flag starting
  from https://github.com/vim/vim-history/commit/7db7bb45b0f919ff0615d463ebd4fde881c69d1f.

To put it in another way, https://github.com/vim/vim-history/commit/7db7bb45b0f919ff0615d463ebd4fde881c69d1f
makes the update_topline() just below correct the mistakes made in this
block, so this incorrect use of W_WINROW() no longer affects observable
behavior.

closes: #12331

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0013: Modula2 filetype support lacking v9.1.0013
Doug Kearns [Fri, 5 Jan 2024 16:59:04 +0000 (17:59 +0100)] 
patch 9.1.0013: Modula2 filetype support lacking

Problem:  Modula2 filetype support lacking
Solution: Improve the Modula-2 runtime support, add additional modula2
          dialects, add compiler plugin, update syntax highlighting,
          include syntax tests, update Makefiles (Doug Kearns)

closes: #6796
closes: #8115

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Benjamin Kowarsch <trijezdci@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0012: regression with empty inner blocks introduced v9.1.0012
Maxim Kim [Fri, 5 Jan 2024 16:52:49 +0000 (17:52 +0100)] 
patch 9.1.0012: regression with empty inner blocks introduced

Problem:  regression with empty inner blocks introduced
          (after v9.1.0007)
Solution: Set correct cursor position, Check for visual mode
          being active (Maxim Kim)

relates: #13514
closes: #13819

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): Fix typos in version9.txt (#13817)
K.Takata [Fri, 5 Jan 2024 16:47:01 +0000 (01:47 +0900)] 
runtime(doc): Fix typos in version9.txt (#13817)

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): Fix typos in reltime() help. (#13818)
Lifepillar [Fri, 5 Jan 2024 16:44:57 +0000 (17:44 +0100)] 
runtime(doc): Fix typos in reltime() help. (#13818)

Signed-off-by: Lifepillar <lifepillar@lifepillar.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(vim): Update syntax file (#13671)
dkearns [Thu, 4 Jan 2024 21:58:48 +0000 (08:58 +1100)] 
runtime(vim): Update syntax file (#13671)

Support multiline :syntax commands.

Match :syn-cchar option in :syn-{keyword,region}.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0011: regexp cannot match combining chars in collection v9.1.0011
Christian Brabandt [Thu, 4 Jan 2024 21:54:08 +0000 (22:54 +0100)] 
patch 9.1.0011: regexp cannot match combining chars in collection

Problem:  regexp cannot match combining chars in collection
Solution: Check for combining characters in regex collections for the
          NFA and BT Regex Engine

Also, while at it, make debug mode work again.

fixes #10286
closes: #12871

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0010: Keymap completion is not available v9.1.0010
Doug Kearns [Thu, 4 Jan 2024 21:37:44 +0000 (22:37 +0100)] 
patch 9.1.0010: Keymap completion is not available

Problem:  Keymap completion is not available
Solution: Add keymap completion (Doug Kearns)

Add keymap completion to the 'keymap' option, user commands and builtin
completion functions.

closes: #13692

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0009: Cannot easily get the list of matches v9.1.0009
Yegappan Lakshmanan [Thu, 4 Jan 2024 21:28:46 +0000 (22:28 +0100)] 
patch 9.1.0009: Cannot easily get the list of matches

Problem:  Cannot easily get the list of matches
Solution: Add the matchstrlist() and matchbufline() Vim script
          functions (Yegappan Lakshmanan)

closes: #13766

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0008: NSIS installer includes syntax testdir v9.1.0008
Christian Brabandt [Thu, 4 Jan 2024 21:14:28 +0000 (22:14 +0100)] 
patch 9.1.0008: NSIS installer includes syntax testdir

Problem:  NSIS installer includes syntax test dumps
          (Yegappan Lakshmanan)
Solution: Exclude syntax/testdir when creating the NSIS installer

fixes: vim/vim-win32-installer#328
closes: #13814

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0007: can select empty inner text blocks v9.1.0007
Christian Brabandt [Thu, 4 Jan 2024 20:43:36 +0000 (21:43 +0100)] 
patch 9.1.0007: can select empty inner text blocks

Problem:  can select empty inner text blocks
          (laurentalacoque)
Solution: make selecting empty inner text blocks an error

textobjects: Make selecting inner empty blocks an error

fixes: #13514
closes: #13523

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0006: is*() and to*() function may be unsafe v9.1.0006
Keith Thompson [Thu, 4 Jan 2024 20:19:04 +0000 (21:19 +0100)] 
patch 9.1.0006: is*() and to*() function may be unsafe

Problem:  is*() and to*() function may be unsafe
Solution: Add SAFE_* macros and start using those instead
          (Keith Thompson)

Use SAFE_() macros for is*() and to*() functions

The standard is*() and to*() functions declared in <ctype.h> have
undefined behavior for negative arguments other than EOF.  If plain char
is signed, passing an unchecked value from argv for from user input
to one of these functions has undefined behavior.

Solution: Add SAFE_*() macros that cast the argument to unsigned char.

Most implementations behave sanely for negative arguments, and most
character values in practice are non-negative, but it's still best
to avoid undefined behavior.

The change from #13347 has been omitted, as this has already been
separately fixed in commit ac709e2fc0db6d31abb7da96f743c40956b60c3a
(v9.0.2054)

fixes: #13332
closes: #13347

Signed-off-by: Keith Thompson <Keith.S.Thompson@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0005: OpenVMS does not support python3 and xterm_save v9.1.0005
Zoltan Arpadffy [Thu, 4 Jan 2024 20:01:13 +0000 (21:01 +0100)] 
patch 9.1.0005: OpenVMS does not support python3 and xterm_save

Problem:  OpenVMS build does not support python3 and xterm_save
Solution: Enable python3 + xterm_save feature, fix style issues
          (Zoltan Arpadffy)

closes: #13812

Signed-off-by: Zoltan Arpadffy <zoltan.arpadffy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(fortran): syntax and documentation updates (#13811)
Ajit-Thakkar [Wed, 3 Jan 2024 18:58:21 +0000 (14:58 -0400)] 
runtime(fortran): syntax and documentation updates (#13811)

closes: #13802

Signed-off-by: Ajit-Thakkar <142174202+Ajit-Thakkar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0004: reloading colorscheme when not changing 'background' v9.1.0004
Gregory Anders [Wed, 3 Jan 2024 18:48:51 +0000 (19:48 +0100)] 
patch 9.1.0004: reloading colorscheme when not changing 'background'

Problem:  reloading colorscheme when not changing 'background'
Solution: Check, if the background option value actually changed,
          if not, return early.

Only reload colorscheme when bg is changed

Currently the highlight groups are re-initialized and the colorscheme
(if any) is reloaded anytime 'background' is set, even if it is not
changed. This is unnecessary, because if the value was not changed then
there is no need to change highlight groups or do anything with the
colorscheme. Instead, only reload the colorscheme if the value of
'background' was actually changed.

closes: #13700

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0003: Cannot build against Ruby 33 dynamically v9.1.0003
Isao Sato [Wed, 3 Jan 2024 18:31:05 +0000 (19:31 +0100)] 
patch 9.1.0003: Cannot build against Ruby 33 dynamically

Problem:  Cannot build against Ruby 33 dynamically
Solution: Ruby 33 removed transient heap, so do not use
          rb_ary_transient anymore, NoMethodError format changed,
          so update test for expected error message
          (Isao Sato)

- ruby-3.3 removed transient heap for ruby/dyn

when +ruby/dyn with ruby-3.3 do command :ruby, E448 occur.
ruby-3.3 has no transient heap anymore, so disable rb_ary_transient etc.

$ LC_ALL=C VIMRUNTIME=runtime ./src/vim -u NONE -c 'ruby puts RUBY_VERSION'
"=> Error detected while processing command line:
"=> E448: Could not load library function rb_ary_detransient
"=> E266: Sorry, this command is disabled, the Ruby library could not be
    loaded.

- ruby-3.3 changed NoMethodError format:

$ rvm 3.2.2, 3.3.0-rc1 do ruby -e 'begin; nil.name; rescue => e; puts "%s : %s"%[RUBY_VERSION, e.message]; end '
=> 3.2.2 : undefined method `name' for nil:NilClass
=> 3.3.0 : undefined method `name' for nil

so loose pattern in Test_ruby_Vim_buffer_get()

closes: #13741

Signed-off-by: Isao Sato <svardew@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0002: a closing fold expr, may start a new fold v9.1.0002
Shota Nozaki [Wed, 3 Jan 2024 18:18:43 +0000 (19:18 +0100)] 
patch 9.1.0002: a closing fold expr, may start a new fold

Problem:  a closing fold expression may unexpectedly start a new fold
          when it should end a fold
          (reported by Shota Nozaki)
Solution: if a fold hasn't started yet, do not immediately
          start a new fold with level 1
          (Shota Nozaki)

fixes: #12768
closes: #13748

Signed-off-by: Shota Nozaki <emonkak@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0001: when closing window, wincmd p may fail v9.1.0001
Sean Dewar [Wed, 3 Jan 2024 17:52:52 +0000 (18:52 +0100)] 
patch 9.1.0001: when closing window, wincmd p may fail

Avoid `prevwin == curwin` when closing `curwin`

Problem:  When closing the current window (or when moving it to a tabpage), the
          previous window may refer to the new current window
          (`winnr() == winnr('#')`) if that window is selected as the
          new current window.

Solution: Set `prevwin = NULL` when switching away from an invalid `curwin` and
          the target window was the `prevwin`.
          (Sean Dewar)

related: #4537
closes: #13762

Signed-off-by: Sean Dewar <seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(vim): add jumpoptions to syntax file (#13808)
Hugo van de Vliert [Wed, 3 Jan 2024 17:03:29 +0000 (18:03 +0100)] 
runtime(vim): add jumpoptions to syntax file (#13808)

* Add jumpoptions and jop to vim syntax file
* Clean up some whitespace

Signed-off-by: Hugo van de Vliert <hugo.vandevliert@floryn.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): document that the diff filetype uses Diff hl groups
Christian Brabandt [Wed, 3 Jan 2024 16:59:38 +0000 (17:59 +0100)] 
runtime(doc): document that the diff filetype uses Diff hl groups

related: #13776

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(vim): Add support for <ScriptCmd> syntax (#10686)
dezza [Wed, 3 Jan 2024 15:20:22 +0000 (16:20 +0100)] 
runtime(vim): Add support for <ScriptCmd> syntax (#10686)

Adding `<ScriptCmd>` to list of angle-bracket notation syntax, just like `<Cmd>`

`<Cmd>` is already highlighted.
```vim
nnoremap <leader>o <Cmd>Oldfiles()<CR>
```

`<ScriptCmd>` is not.

Signed-off-by: dezza <402927+dezza@users.noreply.github.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(vim): Add support for `syntax foldlevel` command (#6182)
Brad King [Wed, 3 Jan 2024 15:17:24 +0000 (10:17 -0500)] 
runtime(vim): Add support for `syntax foldlevel` command (#6182)

Signed-off-by: Brad King <brad.king@kitware.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.1.0000: Vim 9.1 release v9.1.0 v9.1.0000
Christian Brabandt [Tue, 2 Jan 2024 15:51:11 +0000 (16:51 +0100)] 
patch 9.1.0000: Vim 9.1 release

Problem:  Need a new release
Solution: Release Vim 9.1

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): add missing help tags
Christian Brabandt [Mon, 1 Jan 2024 19:50:51 +0000 (20:50 +0100)] 
runtime(doc): add missing help tags

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(menu): regenerate synmenu
Christian Brabandt [Mon, 1 Jan 2024 19:27:46 +0000 (20:27 +0100)] 
runtime(menu): regenerate synmenu

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.0.2190: proto files need update v9.0.2190
Christian Brabandt [Mon, 1 Jan 2024 19:18:36 +0000 (20:18 +0100)] 
patch 9.0.2190: proto files need update

Problem:  proto files need update
Solution: re-generate them

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(dist/ft): improve filetype detection for *.v (V/Verilog/Coq)
Christian Brabandt [Mon, 1 Jan 2024 18:19:20 +0000 (19:19 +0100)] 
runtime(dist/ft): improve filetype detection for *.v (V/Verilog/Coq)

Patch provided by Dan Alt

closes: #13793

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(sh): Update sh syntax and add local keyword for bash (#13806)
Lucien Grondin [Mon, 1 Jan 2024 18:00:41 +0000 (19:00 +0100)] 
runtime(sh): Update sh syntax and add local keyword for bash (#13806)

add `local` in shStatement

Signed-off-by: Lucien Grondin <grondilu@yahoo.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(ruby): Update ftplugin and omni-complete (#13805)
dkearns [Mon, 1 Jan 2024 17:58:57 +0000 (04:58 +1100)] 
runtime(ruby): Update ftplugin and omni-complete (#13805)

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): Update Version9.txt for release 9.1 (#13804)
Christian Brabandt [Mon, 1 Jan 2024 17:56:52 +0000 (18:56 +0100)] 
runtime(doc): Update Version9.txt for release 9.1 (#13804)

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): Add help tags to items in version9.txt (#13801)
Yegappan Lakshmanan [Sat, 30 Dec 2023 09:40:25 +0000 (01:40 -0800)] 
runtime(doc): Add help tags to items in version9.txt (#13801)

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agotranslation(de): Updated German translation (#13796)
Christian Brabandt [Fri, 29 Dec 2023 15:34:04 +0000 (16:34 +0100)] 
translation(de): Updated German translation (#13796)

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agotranslation(tr): Improve Turkish documentation (#13800)
Emir SARI [Fri, 29 Dec 2023 15:30:40 +0000 (15:30 +0000)] 
translation(tr): Improve Turkish documentation (#13800)

Signed-off-by: Emir SARI <emir_sari@icloud.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(fortran): update syntax and documentation (#13784)
Ajit-Thakkar [Fri, 29 Dec 2023 15:29:43 +0000 (11:29 -0400)] 
runtime(fortran): update syntax and documentation (#13784)

* Update Fortran section of indent.txt
* Small addition to fortran syntax

Signed-off-by: Ajit-Thakkar <142174202+Ajit-Thakkar@users.noreply.github.com>
Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
* Update Fortran section of syntax.txt

* Runtime (Fortran)

Fix regression

* Combine two expressions

19 months agopatch 9.0.2189: Wrong display with 'briopt=sbr' and 'nobreakindent' v9.0.2189
zeertzjq [Thu, 28 Dec 2023 22:19:52 +0000 (23:19 +0100)] 
patch 9.0.2189: Wrong display with 'briopt=sbr' and 'nobreakindent'

Problem:  Wrong display when 'breakindentopt' contains "sbr" and
          'showbreak' and 'nobreakindent' are set.
Solution: Always reset wlv->need_showbreak regardless of the values of
          'breakindent' and 'showbreak', as they aren't checked when
          setting wlv->need_showbreak (zeertzjq)

closes: #13785

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(cucumber): Updates to indent and syntax
Tim Pope [Thu, 28 Dec 2023 18:03:39 +0000 (13:03 -0500)] 
runtime(cucumber): Updates to indent and syntax

19 months agoruntime(markdown): Fix folding of code blocks
Tim Pope [Thu, 28 Dec 2023 17:50:18 +0000 (12:50 -0500)] 
runtime(markdown): Fix folding of code blocks

19 months agoruntime(sass): Provide sass_recommended_style option
Tim Pope [Thu, 28 Dec 2023 17:49:07 +0000 (12:49 -0500)] 
runtime(sass): Provide sass_recommended_style option

19 months agoruntime(gitcommit): Updates to ftplugin and syntax
Tim Pope [Thu, 28 Dec 2023 17:48:27 +0000 (12:48 -0500)] 
runtime(gitcommit): Updates to ftplugin and syntax

19 months agoruntime(git): Make diffs foldable
Tim Pope [Thu, 28 Dec 2023 17:47:31 +0000 (12:47 -0500)] 
runtime(git): Make diffs foldable

19 months agoruntime(git): Add small ftplugin
Tim Pope [Thu, 28 Dec 2023 17:46:39 +0000 (12:46 -0500)] 
runtime(git): Add small ftplugin

19 months agotranslation(hu): add Hungarian translation (#13782)
Zoltan Arpadffy [Thu, 28 Dec 2023 22:15:19 +0000 (23:15 +0100)] 
translation(hu): add Hungarian translation (#13782)

* add Hungarian translation
* Add hu.po to the Make_all file

Signed-off-by: Zoltan Arpadffy <zoltan.arpadffy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agotranslation(ru): Updated Russian translation (#13788)
Restorer [Thu, 28 Dec 2023 22:13:10 +0000 (01:13 +0300)] 
translation(ru): Updated Russian translation (#13788)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(Filelist): remove coveralls, move runtime/lang/Make_mvc.mak (#13790)
Restorer [Thu, 28 Dec 2023 22:11:48 +0000 (01:11 +0300)] 
runtime(Filelist): remove coveralls, move runtime/lang/Make_mvc.mak (#13790)

- File coveralls.yml removed from $(SRC_ALL),  in patch 9.0.1752 (#12851)
- runtime/lang/Make_mvc.mak moved from $(LANG_DOS) to $(RT_DOS)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): correct the :public example (#13795)
Aliaksei Budavei [Thu, 28 Dec 2023 22:08:24 +0000 (01:08 +0300)] 
runtime(doc): correct the :public example (#13795)

The current example is no longer supported (E1331), as of
patch 9.0.2167.

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agotranslation(ru): adjust tutor/README.ru.utf-8.txt (#13789)
Restorer [Thu, 28 Dec 2023 22:06:38 +0000 (01:06 +0300)] 
translation(ru): adjust tutor/README.ru.utf-8.txt (#13789)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agotranslation(it): Update Italian translations
Antonio Giovanni Colombo [Wed, 27 Dec 2023 18:45:02 +0000 (19:45 +0100)] 
translation(it): Update Italian translations

Signed-off-by: Antonio Giovanni Colombo <azc100@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(elixir): missing undo_ftplugin for indentkeys
Christian Brabandt [Wed, 27 Dec 2023 18:30:41 +0000 (19:30 +0100)] 
runtime(elixir): missing undo_ftplugin for indentkeys

fixup after #13771

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.0.2188: cursor wrong after { in single line buffer v9.0.2188
Gary Johnson [Wed, 27 Dec 2023 18:12:43 +0000 (19:12 +0100)] 
patch 9.0.2188: cursor wrong after { in single line buffer

Problem:  cursor wrong after { in single line buffer
          (Edwin Chan)
Solution: do not place the cursor at the end for a single
          line buffer when moving backwards
          (Gary Johnson)

closes: #13780
closes: #13783

Signed-off-by: Gary Johnson <garyjohn@spocom.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.0.2187: Visual not drawn with 'breakindent' when line doesn't fit v9.0.2187
zeertzjq [Wed, 27 Dec 2023 18:08:53 +0000 (19:08 +0100)] 
patch 9.0.2187: Visual not drawn with 'breakindent' when line doesn't fit

Problem:  Visual selection isn't drawn with 'breakindent' when the line
          doesn't fit in the window (Jaehwang Jung)
Solution: Adjust wlv->fromcol also for 'breakindent' (zeertzjq)

closes: #13767
closes: #13768

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): add help tag multiple-constructors. (#13772)
errael [Wed, 27 Dec 2023 18:07:09 +0000 (10:07 -0800)] 
runtime(doc): add help tag multiple-constructors. (#13772)

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(elixir): fix indentation (#13771)
George Guimarães [Wed, 27 Dec 2023 18:06:05 +0000 (15:06 -0300)] 
runtime(elixir): fix indentation (#13771)

Signed-off-by: George Guimarães <george.guimaraes@gmail.com>
Signed-off-by: Mitchell Hanberg <mitch@mitchellhanberg.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(mermaid): Syntax fix (#13774)
KSR-Yasuda [Wed, 27 Dec 2023 18:02:35 +0000 (03:02 +0900)] 
runtime(mermaid): Syntax fix (#13774)

* runtime(mermaid): Fix arrow syntax
* runtime(mermaid): Disable syntax for identifier to avoid false match
* runtime(mermaid): Add some C++ type syntax highlight
* runtime(mermaid): Update last change time in header

Signed-off-by: yasuda <yasuda@kyoto-sr.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.0.2186: LTCG compile error ARM64 for write_chars v9.0.2186
Saleem Abdulrasool [Wed, 27 Dec 2023 17:57:12 +0000 (18:57 +0100)] 
patch 9.0.2186: LTCG compile error ARM64 for write_chars

Problem:  LTCG compile error on Win/ARM64 for `write_chars()`
Solution: Explicitly initialise the storage to use data rather than BSS
          (Saleem Abdulrasool)

win32: add a workaround for a LTCG issue on Windows ARM64

It appears that the implicit initialisation which would push `g_coords`
into BSS causes an aliasing issue with LTCG on ARM64.  By explicitly
initialising the value, we use usual data storage but prevent the
aliasing.  This allows the console version of VIM to run on Windows
ARM64 again.

fixes:  #13453
closes: #13775

Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): clarify behaviour of ]m and ]M motions
Christian Brabandt [Wed, 27 Dec 2023 17:53:35 +0000 (18:53 +0100)] 
runtime(doc): clarify behaviour of ]m and ]M motions

In particular remove the sentence, that a missing '{'
(for ]m) or '}' (for ]M) after the cursor is an error, since
currently this is not treated as an error.

fixes: #13777

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(diff): Update default links (#13776)
Evgeni Chasnovski [Wed, 27 Dec 2023 17:51:43 +0000 (19:51 +0200)] 
runtime(diff): Update default links (#13776)

Problem: Current default links for `diffAdded`, `diffChanged`, and
              `diffRemoved` do not address the diff nature of the filetype.
Solution: Use `DiffAdd`, `DiffChange`, and `DiffDelete`.

closes: #13759

Signed-off-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(context): update ConTeXt keywords and other minor fixes (#13778)
Lifepillar [Wed, 27 Dec 2023 17:49:50 +0000 (18:49 +0100)] 
runtime(context): update ConTeXt keywords and other minor fixes (#13778)

Update to the ConTeXt runtime files. Changes:

1. shared syntax files updated with `mtxrun --script interface --vim`
   using the latest ConTeXt LMTX.

2. fixed reference to `make` tag in the help file.

3. added `keepend` to mitigate issues with embedded Lua syntax (see
   below).

4. the latest revision date of each ConTeXt runtime file has been
   updated to the date of this commit.

The issue about embedded Lua was reported by a user:

>Take the following valid ConTeXt file:

>   \starttext
>   \ctxlua{context("Text generated from Lua.")}
>   \ctxlua{context("Another text generated from Lua.")}
>   \stoptext

>On my Vim installation (including when I start Vim with `--clean`), the
>closing bracket and curly braces on line 2 are highlighted red and the
>syntax highlighting after that is off.

>I was trying to dig a little bit into what was going on, using the
>`synID()` and `synIDattr()` functions. It appears that the closing
>bracket on line 2 is matched as a `luaParentError` instead of the end
>of the `luaParen` region. Therefore, the `luaParen` region continues
>all the way to the end of the file. The closing curly brace on line
>2 is matched as a `luaError`, the 2nd `\ctxlua` on line 3 as
>`luaParen`, etc.

>This issue doesn't occur in a plain Lua file, where the closing bracket
>is correctly matched as the end of the `luaParen` region. So it seems
>that something goes wrong when the Lua syntax file is included in the
>ConTeXt one.

By adding `keepend`, the right parenthesis for some reason is still
highlighted as a `luaParenError`, but at least the right curly brace
should correctly end the Lua block.

From what I've seen, I think it is very difficult to embed Lua syntax
properly without help from the Lua syntax file (that is, without
patching it). It has global rules such as:

   syn match  luaParenError ")"
   syn match  luaError "}"

which make it difficult, if not impossible, to contain Lua syntax
without `keepend` (and its limitations).

Signed-off-by: Lifepillar <lifepillar@lifepillar.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): Add variable categories and null related documentation(#13750)
errael [Mon, 25 Dec 2023 09:31:23 +0000 (01:31 -0800)] 
runtime(doc): Add variable categories and null related documentation(#13750)

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(r): Update R runtime files and docs (#13757)
Jakson Alves de Aquino [Mon, 25 Dec 2023 09:22:27 +0000 (09:22 +0000)] 
runtime(r): Update R runtime files and docs (#13757)

* Update R runtime files
- Fix indentation issue with ggplot().
- Setlocal autoindent in indent/r.vim.
- New syntax option: rmd_include_latex.
- Clear syn iskeyword to recognize _ as keyword.
- Document some options.
- remove the test has("patch-7.4.1142")
- Update changed date of doc files

Signed-off-by: Jakson Alves de Aquino <jalvesaq@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org
19 months agotranslation(ua): Update Ukrainian translation (#13760)
Anatolii Sakhnik [Mon, 25 Dec 2023 09:19:25 +0000 (11:19 +0200)] 
translation(ua): Update Ukrainian translation (#13760)

Signed-off-by: Anatolii Sakhnik <sakhnik@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.0.2185: Coverity complains about not checking return value v9.0.2185
Christian Brabandt [Sun, 24 Dec 2023 10:14:37 +0000 (11:14 +0100)] 
patch 9.0.2185: Coverity complains about not checking return value

Problem:  Coverity complains about not checking return value
          in compare_isn_not_values (after 9.0.2184)
Solution: cast return value to "(void)" to make intention clear

closes: #13751

Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): Clarify that new() is not static
Ernie Rael [Sun, 24 Dec 2023 10:03:31 +0000 (11:03 +0100)] 
runtime(doc): Clarify that new() is not static

closes: #13756

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): list of new/changed features in version9.txt
Yegappan Lakshmanan [Sun, 24 Dec 2023 10:01:23 +0000 (11:01 +0100)] 
runtime(doc): list of new/changed features in version9.txt

closes: #13753

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoRuntime(fortran): updates to indent, syntax and ftplugin (#13752)
Ajit-Thakkar [Sat, 23 Dec 2023 10:31:38 +0000 (06:31 -0400)] 
Runtime(fortran): updates to indent, syntax and ftplugin (#13752)

* runtime update fortran.vim

Add folding for newer features of Fortran

* Runtime Update fortran.vim

Add indent support for newer features of Fortran

* Runtime Update fortran.vim

Add newer features of Fortran to matchit patterns

Signed-off-by: Ajit-Thakkar <142174202+Ajit-Thakkar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(debcontrol): Add loong64 arch (#13754)
James McCoy [Sat, 23 Dec 2023 10:23:39 +0000 (05:23 -0500)] 
runtime(debcontrol): Add loong64 arch (#13754)

Co-authored-by: zhangjialing@loongson.cn <zhangjialing@loongson.cn>
Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): add some error codes to `:help vim9class` (#13747)
errael [Thu, 21 Dec 2023 16:34:15 +0000 (08:34 -0800)] 
runtime(doc): add some error codes to `:help vim9class` (#13747)

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.0.2184: Vim9: inconsistent :type/:class messages v9.0.2184
Ernie Rael [Thu, 21 Dec 2023 16:18:54 +0000 (17:18 +0100)] 
patch 9.0.2184: Vim9: inconsistent :type/:class messages

Problem:  Vim9: inconsistent :type/:class messages
Solution: Update the Messages (Ernie Rael)

closes: #13706

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(erlang): add support for matchit plugin (#13713)
Csaba Hoch [Thu, 21 Dec 2023 16:16:28 +0000 (17:16 +0100)] 
runtime(erlang): add support for matchit plugin (#13713)

This commit updates the Erlang runtime files to be in sync with the
`vim-erlang-runtime` repository. In particular, it adds the following
commit (with some cleanup and simplification afterwards):
https://github.com/vim-erlang/vim-erlang-runtime/commit/6ea8b85bc9c93b94c68ec53489a74f5687d898b0

Signed-off-by: Csaba Hoch <csaba.hoch@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(masm): add variants of opcodes (#13734)
Wu Yongwei [Thu, 21 Dec 2023 16:12:34 +0000 (00:12 +0800)] 
runtime(masm): add variants of opcodes (#13734)

that can actually be generated by compilers

Signed-off-by: Wu Yongwei <wuyongwei@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agoruntime(doc): Include Vim9 class features in version9.txt
Yegappan Lakshmanan [Thu, 21 Dec 2023 16:09:15 +0000 (17:09 +0100)] 
runtime(doc): Include Vim9 class features in version9.txt

closes: #13735

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agopatch 9.0.2183: Maximum callback depth is not configurable v9.0.2183
zeertzjq [Thu, 21 Dec 2023 15:59:26 +0000 (16:59 +0100)] 
patch 9.0.2183: Maximum callback depth is not configurable

Problem:  Maximum callback depth is not configurable.
Solution: Revert patch 9.0.2103.  Set 'maxfuncdepth' in test.
          (zeertzjq)

fixes: #13732
closes: #13736

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
19 months agotranslation(sr): Update Serbian messages translation (#13737)
Ivan Pešić [Thu, 21 Dec 2023 15:58:33 +0000 (19:58 +0400)] 
translation(sr): Update Serbian messages translation (#13737)

Updated with newly added E1411

Signed-off-by: Ivan Pešić <27575106+eevan78@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>