]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
3 weeks agoruntime(comment): include a simple comment toggling plugin
Maxim Kim [Fri, 26 Apr 2024 17:53:13 +0000 (19:53 +0200)] 
runtime(comment): include a simple comment toggling plugin

fixes #14626
closes: #14634

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agoruntime(doc): fix typo
Christian Brabandt [Fri, 26 Apr 2024 16:56:21 +0000 (18:56 +0200)] 
runtime(doc): fix typo

Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0374: wrong botline in BufEnter v9.1.0374
Jaehwang Jung [Fri, 26 Apr 2024 16:48:48 +0000 (18:48 +0200)] 
patch 9.1.0374: wrong botline in BufEnter

Problem:  When :edit an existing buffer, line('w$') may return a
          wrong result.
Solution: Reset w_valid in curwin_init() (Jaehwang Jung)

`do_ecmd()` reinitializes the current window (`curwin_init()`) whose
`w_valid` field may have `VALID_BOTLINE` set. Resetting `w_botline`
without marking it as invalid makes subsequent `validate_botline()`
calls a no-op, thus resulting in wrong `line('w$')` value.

closes: #14642

Signed-off-by: Jaehwang Jung <tomtomjhj@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agoCI: ubuntu-toolchain-r/test repository will be removed (#14641)
Philip H [Fri, 26 Apr 2024 16:45:41 +0000 (18:45 +0200)] 
CI: ubuntu-toolchain-r/test repository will be removed (#14641)

* CI: ubuntu-toolchain-r/test repository will be removed

The ubuntu-toolchain-r/test PPA will be removed from Ubuntu images.
The images rollout process will start on May 6 and take 3-4 days.
Mitigation ways

The repository can still be added manually in runtime by calling to following commands:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y

* fixup: add a note what this repo is for

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agoruntime(doc): clarify syntax vs matching mechanism
Christian Brabandt [Fri, 26 Apr 2024 16:42:59 +0000 (18:42 +0200)] 
runtime(doc): clarify syntax vs matching mechanism

fixes: #14643

Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agoruntime(asm): fix undefined variable in indent plugin
Christian Brabandt [Thu, 25 Apr 2024 20:42:05 +0000 (22:42 +0200)] 
runtime(asm): fix undefined variable in indent plugin

It's an indent script, so we need to set the  b:undo_indent variable
instead of the b:undo_ftplugin var.

fixes: #14602

Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0373: ops.c code uses too many strlen() calls v9.1.0373
John Marriott [Thu, 25 Apr 2024 19:39:18 +0000 (21:39 +0200)] 
patch 9.1.0373: ops.c code uses too many strlen() calls

Problem:  ops.c code uses too many strlen() calls
Solution: Refactor code and remove more strlen() calls
          (John Marriott)

closes: #14598

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0372: Calling CLEAR_FIELD() on the same struct twice v9.1.0372
zeertzjq [Thu, 25 Apr 2024 19:34:10 +0000 (21:34 +0200)] 
patch 9.1.0372: Calling CLEAR_FIELD() on the same struct twice

Problem:  Calling CLEAR_FIELD() on the same struct twice.
Solution: Remove the second CLEAR_FIELD().  Move the assignment of
          cookie.sourceing_lnum (zeertzjq).

closes: #14627

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0371: Vim9: compile_def_function() still too long v9.1.0371
Yegappan Lakshmanan [Thu, 25 Apr 2024 19:30:56 +0000 (21:30 +0200)] 
patch 9.1.0371: Vim9: compile_def_function() still too long

Problem:  Vim9: compile_def_function() still too long
Solution: Refactor the code into separate functions
          (Yegappan Lakshmanan)

closes: #14632

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agotranslation(sr): Update Serbian messages (#14633)
Ivan Pešić [Thu, 25 Apr 2024 19:29:58 +0000 (23:29 +0400)] 
translation(sr): Update Serbian messages (#14633)

Signed-off-by: Ivan Pešić <27575106+eevan78@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0370: MS-Windows: patch number is zero in installer v9.1.0370
RestorerZ [Thu, 25 Apr 2024 19:25:19 +0000 (21:25 +0200)] 
patch 9.1.0370: MS-Windows: patch number is zero in installer

Problem:  MS-Windows: patch number is zero in installer
          (jonathan-b-wiebe)
Solution: Set VIM_VERSION_PATCHLEVEL, fix a few typos in the installer
          (RestorerZ)

fixes: #14629
closes: #14635

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agoruntime(doc): clarify the effect of setting the shell to powershell
Christian Brabandt [Thu, 25 Apr 2024 19:21:37 +0000 (21:21 +0200)] 
runtime(doc): clarify the effect of setting the shell to powershell

fixes: #14636

Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agoruntime(java): Improve the recognition of the "style" method declarations
Aliaksei Budavei [Wed, 24 Apr 2024 19:04:25 +0000 (21:04 +0200)] 
runtime(java): Improve the recognition of the "style" method declarations

- Request the new regexp engine (v7.3.970) for [:upper:] and
  [:lower:].

- Recognise declarations of in-line annotated methods.

- Recognise declarations of _strictfp_ methods.

- Establish partial order for method modifiers as shown in
  the MethodModifier production; namely, _public_ and
  friends should be written the leftmost, possibly followed
  by _abstract_ or _default_, or possibly followed by other
  modifiers.

- Stop looking for parameterisable primitive types (void<?>,
  int<Object>, etc., are malformed).

- Stop looking for arrays of _void_.

- Acknowledge the prevailing convention for method names to
  begin with a small letter and for class/interface names to
  begin with a capital letter; and, therefore, desist from
  claiming declarations of enum constants and constructors
  with javaFuncDef.
  Rationale:
    + Constructor is distinct from method:
      * its (overloaded) name is not arbitrary;
      * its return type is implicit;
      * its _throws_ clause depends on indirect vagaries of
        instance (variable) initialisers;
      * its invocation makes other constructors of its type
        hierarchy invoked one by one, concluding with the
        primordial constructor;
      * its explicit invocation, via _this_ or _super_, can
        only appear as the first statement in a constructor
        (not anymore, see JEP 447); else, its _super_ call
        cannot appear in constructors of _record_ or _enum_;
        and neither invocation is allowed for the primordial
        constructor;
      * it is not a member of its class, like initialisers,
        and is never inherited;
      * it is never _abstract_ or _native_.
    + Constructor declarations tend to be few in number and
      merit visual recognition from method declarations.
    + Enum constants define a fixed set of type instances
      and more resemble class variable initialisers.

Note that the code duplicated for @javaFuncParams is written
keeping in mind for g:java_highlight_functions a pending 3rd
variant, which would require none of the :syn-cluster added
groups.

closes: #14620

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0369: Vim9: problem when importing autoloaded scripts v9.1.0369
Ernie Rael [Wed, 24 Apr 2024 18:07:50 +0000 (20:07 +0200)] 
patch 9.1.0369: Vim9: problem when importing autoloaded scripts

Problem:  Vim9: problem when importing autoloaded scripts
Solution: In `:def` handle storing to vim9 autoload export
          (Ernie Rael)

Problem occurs when `import autoload ./.../autoload/...`. The autoload
in the specified path causes the use of an autoload_prefix which combines
with the `import autoload` to create trouble.

In `generate_store_var()` `case dest_script` use ISN_STOREEXPORT,
when needed, instead of ISN_STORES. When executing ISN_STOREEXPORT,
check for autoload_prefix.

fixes: #14606
closes: #14615

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
3 weeks agoCI: remove microsoft-prod.list repository (#14628)
Philip H [Wed, 24 Apr 2024 17:55:11 +0000 (19:55 +0200)] 
CI: remove microsoft-prod.list repository (#14628)

This is added by default, and it is often broken, but we don't need anything from it.

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0368: MS-Windows: Hard to define the Vim Patchlevel with leading zeroes v9.1.0368
RestorerZ [Tue, 23 Apr 2024 18:33:38 +0000 (20:33 +0200)] 
patch 9.1.0368: MS-Windows: Hard to define the Vim Patchlevel with leading zeroes

Problem:  MS-Windows: Hard to define the Vim Patchlevel with leading
          zeroes for the installer
Solution: re-define VIM_VERSION_PATCHLEVEL_STR with leading zeroes,
          interpret Patchlevel as decimal in Make_mvc.mak
          (RestorerZ)

closes: #14471

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0367: compile_def_function is too long v9.1.0367
Yegappan Lakshmanan [Tue, 23 Apr 2024 18:14:46 +0000 (20:14 +0200)] 
patch 9.1.0367: compile_def_function is too long

Problem:  compile_def_function is too long
Solution: Move out the code to compile the body of a function
          (Yegappan Lakshmanan)

closes: #14622

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0366: filetype: ondir files are not recognized v9.1.0366
Jon Parise [Mon, 22 Apr 2024 19:07:41 +0000 (21:07 +0200)] 
patch 9.1.0366: filetype: ondir files are not recognized

Problem:  filetype: ondir files are not recognized
Solution: Detect '.ondirrc' as ondir filetype
          (Jon Parise)

closes: #14604

Signed-off-by: Jon Parise <jon@indelible.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0365: Crash when typing many keys with D- modifier v9.1.0365
zeertzjq [Mon, 22 Apr 2024 19:04:29 +0000 (21:04 +0200)] 
patch 9.1.0365: Crash when typing many keys with D- modifier

Problem:  Crash when typing many keys with D- modifier (after 9.1.0227).
Solution: Don't treat a 0x80 byte inside a special sequence as the start
          of a special sequence (zeertzjq).

closes: #14613

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0364: tests: test_vim9_builtin is a bit slow v9.1.0364
Yegappan Lakshmanan [Mon, 22 Apr 2024 18:58:24 +0000 (20:58 +0200)] 
patch 9.1.0364: tests: test_vim9_builtin is a bit slow

Problem:  tests: test_vim9_builtin is a bit slow
Solution: source tests from a buffer instead of
          writing and sourcing a file (Yegappan Lakshmanan)

closes: #14614

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agoruntime(doc): update documentation
RestorerZ [Mon, 22 Apr 2024 18:55:32 +0000 (20:55 +0200)] 
runtime(doc): update documentation

closes: #14616

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agoCI: change the download URL of "libsodium" (#14618)
Restorer [Mon, 22 Apr 2024 18:48:43 +0000 (18:48 +0000)] 
CI: change the download URL of "libsodium" (#14618)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0363: tests: test_winfixbuf is a bit slow v9.1.0363
Yegappan Lakshmanan [Sun, 21 Apr 2024 17:50:21 +0000 (19:50 +0200)] 
patch 9.1.0363: tests: test_winfixbuf is a bit slow

Problem:  tests: test_winfixbuf is a bit slow
Solution: use defer if possible, reset hidden option, use --not-a-term
          when starting Vim using system() (Yegappan Lakshmanan)

closes: #14611

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agoruntime(astro): Add filetype, syntax and indent plugin
Philip H [Sun, 21 Apr 2024 13:44:10 +0000 (15:44 +0200)] 
runtime(astro): Add filetype, syntax and indent plugin

related: #14558
closes: #14561

ported from: https://github.com/wuelnerdotexe/vim-astro

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0362: expanding rc config files does not work well v9.1.0362
Christian Brabandt [Sun, 21 Apr 2024 12:52:20 +0000 (14:52 +0200)] 
patch 9.1.0362: expanding rc config files does not work well

Problem:  expanding rc config files does not work well
          (Michał Sieroń, after v9.1.0327)
Solution: initialize chartab option, required to expand
          evironment variables

fixes: #14597

Co-authored-by: author
Signed-off-by: author
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0361: Vim9: vim9type.c is too complicated v9.1.0361
Yegappan Lakshmanan [Sun, 21 Apr 2024 12:48:57 +0000 (14:48 +0200)] 
patch 9.1.0361: Vim9: vim9type.c is too complicated

Problem:  Vim9: vim9type.c is too complicated
Solution: Refactor a few functions in vim9type.c
          (Yegappan Lakshmanan)

closes: #14605

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0360: Vim9: does not handle autoloaded variables well v9.1.0360
Ernie Rael [Sun, 21 Apr 2024 12:45:48 +0000 (14:45 +0200)] 
patch 9.1.0360: Vim9: does not handle autoloaded variables well

Problem:  Vim9: does not handle autoloaded variables well
Solution: Better handle script-level exported variable references from
          autoload files (Ernie Rael).

fixes: #14591
closes: #14607

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agoruntime(doc): minor spell fix in starting.txt
Diego Viola [Sun, 21 Apr 2024 12:39:49 +0000 (14:39 +0200)] 
runtime(doc): minor spell fix in starting.txt

closes: #14608

Signed-off-by: Diego Viola <diego.viola@gmail.com>
3 weeks agopatch 9.1.0359: MS-Windows: relative import in a script sourced from a buffer doesn... v9.1.0359
Yegappan Lakshmanan [Sat, 20 Apr 2024 16:31:21 +0000 (18:31 +0200)] 
patch 9.1.0359: MS-Windows: relative import in a script sourced from a buffer doesn't work

Problem:  MS-Windows: Relative import in a script sourced from a buffer
          doesn't work (Ernie Rael)
Solution: Set a filename, so that we are not trying to use
          script-relative filename (Yegappan Lakshmanan)

When a script is sourced from a buffer, the file name is set to ":source
buffer=". In MS-Windows, the ":" is a path separator character (used
after a drive letter). This results in the code trying to use the ":"
prefix to import the script on MS-Windows. To fix this, when importing a
script from a script sourced from a buffer with nofile, don't use
a script relative path name.

fixes #14588
closes: #14603

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0358: wrong drawing in GUI with setcellwidth() v9.1.0358
h-east [Sat, 20 Apr 2024 15:57:19 +0000 (17:57 +0200)] 
patch 9.1.0358: wrong drawing in GUI with setcellwidth()

Problem:  wrong drawing in GUI with setcellwidth()
          (after v9.1.0344)
Solution: move gui.in_use condition (h-east)

closes: #14600

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agoftplugin(cmake): Add include and suffixesadd
Wu, Zhenyu [Sat, 20 Apr 2024 15:53:08 +0000 (17:53 +0200)] 
ftplugin(cmake): Add include and suffixesadd

closes: #14520

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agopatch 9.1.0357: Page scrolling should place cursor at window boundaries v9.1.0357
Luuk van Baal [Sat, 20 Apr 2024 15:38:20 +0000 (17:38 +0200)] 
patch 9.1.0357: Page scrolling should place cursor at window boundaries

Problem:  Page scrolling does not always place the cursor at the top or
          bottom of the window (Mathias Rav)
Solution: Place the cursor at the top or bottom of the window.
          (Luuk van Baal)

fixes: #14585
closes: #14586

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 weeks agoruntime(doc): align command line table
Christian Brabandt [Sat, 20 Apr 2024 15:12:59 +0000 (17:12 +0200)] 
runtime(doc): align command line table

Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agoruntime(doc): minor fixes to starting.txt
Diego Viola [Fri, 19 Apr 2024 13:51:44 +0000 (15:51 +0200)] 
runtime(doc): minor fixes to starting.txt

closes: #14593

Signed-off-by: Diego Viola <diego.viola@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0356: MS-Windows: --remote may change working directory v9.1.0356
Christian Brabandt [Fri, 19 Apr 2024 13:22:33 +0000 (15:22 +0200)] 
patch 9.1.0356: MS-Windows: --remote may change working directory

Problem:  MS-Windows: --remote may change working directory when
          'shellslash' is set
Solution: normalize directory separators on MS-Windows

fixes: #14549
closes: #14587

Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agoruntime(bp): fix comment definition in filetype plugin (#14594)
Bruno BELANYI [Fri, 19 Apr 2024 13:19:31 +0000 (14:19 +0100)] 
runtime(bp): fix comment definition in filetype plugin (#14594)

I somehow messed up the previous patch, I think a copy-paste error when
creating the file.

Blueprint files have C and C++ style comments, not shell-like '#'
comments.

Signed-off-by: Bruno BELANYI <bruno@belanyi.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0355: filetype: flake.lock files are not recognized v9.1.0355
Riley Bruins [Fri, 19 Apr 2024 13:13:38 +0000 (15:13 +0200)] 
patch 9.1.0355: filetype: flake.lock files are not recognized

Problem:  filetype: flake.lock files are not recognized
Solution: Detect 'flake.lock' as json filetype
          (Riley Bruins)

closes: #14589

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0354: runtime(uci): No support for uci file types v9.1.0354
Colin Caine [Thu, 18 Apr 2024 21:53:02 +0000 (23:53 +0200)] 
patch 9.1.0354: runtime(uci): No support for uci file types

Problem:  runtime(uci): No support for uci file types
          (Wu, Zhenyu)
Solution: include basic uci ftplugin and syntax plugins
          (Colin Caine)

closes: #14575

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Colin Caine <complaints@cmcaine.co.uk>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agoruntime(java): Support "g:ftplugin_java_source_path" with archived files
Aliaksei Budavei [Thu, 18 Apr 2024 21:01:52 +0000 (23:01 +0200)] 
runtime(java): Support "g:ftplugin_java_source_path" with archived files

Also, document for "g:ftplugin_java_source_path" its current
modification of the local value of the 'path' option.

closes: #14570

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0353: tests: Test_autoload_import_relative_compiled fails on Windows v9.1.0353
Ernie Rael [Thu, 18 Apr 2024 20:53:33 +0000 (22:53 +0200)] 
patch 9.1.0353: tests: Test_autoload_import_relative_compiled fails on Windows

Problem:  tests: Test_autoload_import_relative_compiled fails on Windows
Solution: Disable on Windows for now, add missing :bw for clean-up (Ernie Rael)

closes: #14579

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0352: Finding cmd modifiers and cmdline-specials is inefficient v9.1.0352
John Marriott [Thu, 18 Apr 2024 20:46:56 +0000 (22:46 +0200)] 
patch 9.1.0352: Finding cmd modifiers and cmdline-specials is inefficient

Problem:  Finding cmd modifiers and cmdline-specials is inefficient
Solution: Use binary search to find ex command modifiers and
          cmdline-special characters and reduce the number of strlen()
          (John Marriott)

closes: #14534

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0351: No test that completing a partial mapping clears 'showcmd' v9.1.0351
zeertzjq [Thu, 18 Apr 2024 20:09:37 +0000 (22:09 +0200)] 
patch 9.1.0351: No test that completing a partial mapping clears 'showcmd'

Problem:  No test that completing a partial mapping clears 'showcmd'.
Solution: Complete partial mappings in Test_showcmd_part_map() instead
          of using :echo.  Adjust some comments (zeertzjq).

closes: #14580

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0350: tests: test_vim9_dissamble may fail v9.1.0350
Julio B [Thu, 18 Apr 2024 20:05:12 +0000 (22:05 +0200)] 
patch 9.1.0350: tests: test_vim9_dissamble may fail

Problem:  tests: test_vim9_dissamble may fail
Solution: Instead of hard-coding the lambda number, accept
          just any number (Julio B)

closes: #14581

Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0349: Vim9: need static type for typealias v9.1.0349
Yegappan Lakshmanan [Thu, 18 Apr 2024 19:33:27 +0000 (21:33 +0200)] 
patch 9.1.0349: Vim9: need static type for typealias

Problem:  Vim9: need static type for typealias
Solution: Refactor the typval2type() function and add a static type for
          typealias (Yegappan Lakshmanan)

closes: #14582

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0348: X11 does not ignore smooth scroll event v9.1.0348
lilydjwg [Thu, 18 Apr 2024 19:22:57 +0000 (21:22 +0200)] 
patch 9.1.0348: X11 does not ignore smooth scroll event

Problem:  X11 does not ignore smooth scroll event
          (laniakea64)
Solution: Correctly ignore unwanted smooth scroll events on X11
          (lilydjwg)

fixes #14578
closes: #14583

Signed-off-by: lilydjwg <lilydjwg@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0347: A few typos in test_xdg when testing gvimrc v9.1.0347
Diego Viola [Thu, 18 Apr 2024 18:54:06 +0000 (20:54 +0200)] 
patch 9.1.0347: A few typos in test_xdg when testing gvimrc

Problem:  A few typos in test_xdg when testing gvimrc
Solution: Fix them (Diego Viola)

closes: #14584

Signed-off-by: Diego Viola <diego.viola@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0346: Patch v9.1.0338 fixed sourcing a script with import v9.1.0346
Ernie Rael [Wed, 17 Apr 2024 20:36:32 +0000 (22:36 +0200)] 
patch 9.1.0346: Patch v9.1.0338 fixed sourcing a script with import

Problem:  Patch v9.1.0338 fixed sourcing a script with import
Solution: Add test `import './file.vim' and verify it works with `:source`
          so it does not regress (Ernie Rael)

closes: #14577

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0345: Problem: gvimrc not sourced from XDG_CONFIG_HOME v9.1.0345
Maxim Kim [Wed, 17 Apr 2024 20:29:06 +0000 (22:29 +0200)] 
patch 9.1.0345: Problem: gvimrc not sourced from XDG_CONFIG_HOME

Problem:  gvimrc not sourced from XDG_CONFIG_HOME (after v9.1.0327)
Solution: Also try to source from ~/.config/vim/gvimrc and
          $XDG_CONFIG_HOME/vim/gvimrc (Maxim Kim)

fixes: #14567
closes: #14568

Signed-off-by: Maxim Kim <habamax@haba-debian.habamax>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0344: Cursor wrong after using setcellwidth() in terminal v9.1.0344
mikoto2000 [Wed, 17 Apr 2024 20:06:54 +0000 (22:06 +0200)] 
patch 9.1.0344: Cursor wrong after using setcellwidth() in terminal

Problem:  Cursor wrong after using setcellwidth() in terminal
          (mikoto2000)
Solution: output additional spaces, so the behaviour matches the GUI
          (mikoto2000)

fixes: #14539
closes: #14540

Signed-off-by: mikoto2000 <mikoto2000@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Fix CUI `setcellwidths` characters draw behavior to same GUI behavior.

4 weeks agopatch 9.1.0343: 'showcmd' wrong for partial mapping with multibyte v9.1.0343
zeertzjq [Wed, 17 Apr 2024 19:28:54 +0000 (21:28 +0200)] 
patch 9.1.0343: 'showcmd' wrong for partial mapping with multibyte

Problem:  'showcmd' is wrong for partial mapping with multibyte char,
          and isn't very readable with modifyOtherKeys.
Solution: Decode multibyte char and merge modifiers into the char.
          (zeertzjq)

This improves the following situations:
- Multibyte chars whose individual bytes are considered unprintable are
  now shown properly in 'showcmd' area.
- Ctrl-W with modifyOtherKeys now shows ^W in 'showcmd' area.

The following situation may still need improvement:
- If the char is a special key or has modifiers that cannot be merged
  into it, internal keycodes are shown in 'showcmd' area like before.
  This applies to keys typed in Normal mode commands as well, and it's
  hard to decide how to make it more readable due to the limited space
  taken by 'showcmd', so I'll leave it for later.

closes: #14572

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0342: tests: test_taglist fails when 'helplang' contains non-english v9.1.0342
Julio B [Tue, 16 Apr 2024 20:55:04 +0000 (22:55 +0200)] 
patch 9.1.0342: tests: test_taglist fails when 'helplang' contains non-english

Problem:  tests: test_taglist fails when 'helplang' contains non-english
Solution: Allow 1 or 2 tagfiles for now (Julio B)

related: #14312
closes: #14566

Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0341: Problem: a few memory leaks are found v9.1.0341
Christian Brabandt [Tue, 16 Apr 2024 20:44:31 +0000 (22:44 +0200)] 
patch 9.1.0341: Problem: a few memory leaks are found

Problem:  a few memory leaks are found
          (LuMingYinDetect )
Solution: properly free the memory

Fixes the following problems:
- Memory leak in f_maplist()
  fixes: #14486

- Memory leak in option.c
  fixes: #14485

- Memory leak in f_resolve()
  fixes: #14484

- Memory leak in f_autocmd_get()
  related: #14474

- Memory leak in dict_extend_func()
  fixes: #14477
  fixes: #14238

closes: #14517

Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0340: Problem: Error with matchaddpos() and empty list v9.1.0340
Christian Brabandt [Tue, 16 Apr 2024 20:23:17 +0000 (22:23 +0200)] 
patch 9.1.0340: Problem: Error with matchaddpos() and empty list

Problem:  Error with matchaddpos() and empty list
          (@rickhow)
Solution: Return early for an empty list

fixes: #14525
closes: #14563

Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0339: tests: xdg test uses screen dumps v9.1.0339
Yegappan Lakshmanan [Tue, 16 Apr 2024 20:18:15 +0000 (22:18 +0200)] 
patch 9.1.0339: tests: xdg test uses screen dumps

Problem:  tests: xdg test uses screen dumps
Solution: Convert screen dump to normal test
          (Yegappan Lakshmanan)

closes: #14564

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0338: Vim9: import through symlinks not correctly handled v9.1.0338
Ernie Rael [Tue, 16 Apr 2024 20:11:56 +0000 (22:11 +0200)] 
patch 9.1.0338: Vim9: import through symlinks not correctly handled

Problem:  Vim9: import through symlinks not correctly handled
Solution: Check for script being a symlink but only once
          (Ernie Rael)

closes: #14565

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0337: Missing entry for XDG vimrc file in :version v9.1.0337
Diego Viola [Tue, 16 Apr 2024 18:58:45 +0000 (20:58 +0200)] 
patch 9.1.0337: Missing entry for XDG vimrc file in :version

Problem:  Missing entry for XDG vimrc file in :version
Solution: Add 4th user vimrc entry to :version output
          (Diego Viola)

related: #14182
closes: #14569

Signed-off-by: Diego Viola <diego.viola@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0336: tests: typo in test_xdg v9.1.0336
Diego Viola [Mon, 15 Apr 2024 18:08:38 +0000 (20:08 +0200)] 
patch 9.1.0336: tests: typo in test_xdg

Problem:  tests: typo in test_xdg
Solution: fix typo (Diego Viola)

closes: #14562

Signed-off-by: Diego Viola <diego.viola@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agoruntime(i3config/swayconfig): update syntax scripts
Josef Litoš [Mon, 15 Apr 2024 17:38:04 +0000 (19:38 +0200)] 
runtime(i3config/swayconfig): update syntax scripts

modifications with the goals of:
- simplifying structure by using group `cluster`s
- improving visual highlighting responsiveness by using `nextgroup`
- improving recursive wm-msg command highlighting
- separating command variants meant for runtime and for config only

closes: #14544

Signed-off-by: Josef Litoš <54900518+JosefLitos@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agoruntime(doc): document pandoc compiler and enable configuring arguments
Konfekt [Mon, 15 Apr 2024 17:33:08 +0000 (19:33 +0200)] 
runtime(doc): document pandoc compiler and enable configuring arguments

closes: #14550

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0335: String interpolation fails for List type v9.1.0335
Yegappan Lakshmanan [Mon, 15 Apr 2024 17:19:52 +0000 (19:19 +0200)] 
patch 9.1.0335: String interpolation fails for List type

Problem:  String interpolation fails for List type
Solution: use implicit string(list) for string interpolation and :put =
          (Yegappan Lakshmanan)

related: #14529
closes: #14556

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 weeks agopatch 9.1.0334: No test for highlight behavior with 'ambiwidth' v9.1.0334
zeertzjq [Mon, 15 Apr 2024 17:14:38 +0000 (19:14 +0200)] 
patch 9.1.0334: No test for highlight behavior with 'ambiwidth'

Problem:  No test for highlight behavior with 'ambiwidth'.
Solution: Add a screendump test for 'ambiwidth' with 'cursorline'.
          (zeertzjq)

closes: #14554

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