]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
17 months agoruntime(termdebug): quote filename arguments using double quotes
Ubaldo Tiberi [Wed, 17 Jul 2024 18:12:29 +0000 (20:12 +0200)] 
runtime(termdebug): quote filename arguments using double quotes

closes: #15270

Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@google.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(sdc): update syntax to SDC-standard 2.1
daniel-s-w [Wed, 17 Jul 2024 18:10:04 +0000 (20:10 +0200)] 
runtime(sdc): update syntax to SDC-standard 2.1

Looking into the current standard for Synopsis Design Constraints (SDC)
from their [Technology Access
Program](https://www.synopsys.com/community/interoperability-programs/tap-in.html),
one can see that the current state of the sdc-syntax file is very
outdated as well as short in coverage of keywords.

This commit pursues to add all the missing keywords from the current
standard (Rev. 2.1).

closes: #15281

Signed-off-by: daniel-s-w <59746710+daniel-s-w@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): minor updates.
Shane Harper [Wed, 17 Jul 2024 17:40:40 +0000 (19:40 +0200)] 
runtime(doc): minor updates.

closes: #15280

Signed-off-by: Shane Harper <shane@shaneharper.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(vim): Cleanup :match and :loadkeymap syntax test files
Doug Kearns [Wed, 17 Jul 2024 17:35:02 +0000 (19:35 +0200)] 
runtime(vim): Cleanup :match and :loadkeymap syntax test files

Remove extraneous trailing whitespace from legacy script :loadkeymap
test file.

Remove :match *_99.dump test file.  These are no longer generated.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(vim): Update base-syntax, match types in Vim9 variable declarations
Doug Kearns [Wed, 17 Jul 2024 17:34:14 +0000 (19:34 +0200)] 
runtime(vim): Update base-syntax, match types in Vim9 variable declarations

Match types in Vim9 variable declarations.

Match Vim9 boolean and null literals. These are not matched in all
contexts yet.

related: #15277

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0595: make errors out with the po Makefile v9.1.0595
RestorerZ [Wed, 17 Jul 2024 17:28:25 +0000 (19:28 +0200)] 
patch 9.1.0595: make errors out with the po Makefile

Problem:  make errors out with the po Makefile
          (yanivshlom, after v9.1.0558)
Solution: Set variables differently (RestorerZ)

fixes: #15275
closes: #15282

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0594: Unnecessary redraw when setting 'winfixbuf' v9.1.0594
zeertzjq [Wed, 17 Jul 2024 17:25:38 +0000 (19:25 +0200)] 
patch 9.1.0594: Unnecessary redraw when setting 'winfixbuf'

Problem:  Unnecessary redraw when setting 'winfixbuf'.
Solution: Remove P_RWIN flag. (zeertzjq)

closes: #15283

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): using wrong highlight for UTF-8
Christian Brabandt [Wed, 17 Jul 2024 06:25:45 +0000 (08:25 +0200)] 
runtime(doc): using wrong highlight for UTF-8

This happens, because UTF-8 was on a single line and as such triggered
the helpHeading syntax group. So slightly re-worded the line, so
that it does no longer match the header syntax rule.

fixes: #15278

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(tsv): include simple syntax plugin
Christian Brabandt [Tue, 16 Jul 2024 19:51:32 +0000 (21:51 +0200)] 
runtime(tsv): include simple syntax plugin

fixes: #15271

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0593: filetype: Asymptote files are not recognized v9.1.0593
AvidSeeker [Tue, 16 Jul 2024 19:39:07 +0000 (21:39 +0200)] 
patch 9.1.0593: filetype: Asymptote files are not recognized

Problem:  filetype: Asymptote files are not recognized
Solution: detect '*.asy' files as asy filetype, include
          ftplugin and syntax plugin (AvidSeeker).

Reference: https://asymptote.sourceforge.io/

closes: #15252

Signed-off-by: AvidSeeker <avidseeker7@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(gomod): add recommended indent options to ftplugin
markmacode [Tue, 16 Jul 2024 19:27:58 +0000 (21:27 +0200)] 
runtime(gomod): add recommended indent options to ftplugin

closes: #15264

Signed-off-by: markmacode <code@mamo.aleeas.com>
Signed-off-by: yu-yk <yukkuen.yu@linktivity.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(go): add recommended indent options to ftplugin
markmacode [Tue, 16 Jul 2024 19:20:34 +0000 (21:20 +0200)] 
runtime(go): add recommended indent options to ftplugin

related: #15264

Signed-off-by: markmacode <code@mamo.aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(gdscript): add recommended indent options to ftplugin
markmacode [Tue, 16 Jul 2024 19:18:06 +0000 (21:18 +0200)] 
runtime(gdscript): add recommended indent options to ftplugin

related: #15264

Signed-off-by: markmacode <code@mamo.aleeas.com>
Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0592: runtime: filetype: Mediawiki files are not recognized v9.1.0592
AvidSeeker [Tue, 16 Jul 2024 19:10:50 +0000 (21:10 +0200)] 
patch 9.1.0592: runtime: filetype: Mediawiki files are not recognized

Problem:  filetype: Mediawiki files are not recognized
Solution: detect "*.mw" and "*.wiki" as mediawiki filetype,
          include basic syntax and filetype plugins.
          (AvidSeeker)

closes: #15266

Signed-off-by: AvidSeeker <avidseeker7@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0591: filetype: *.wl files are not recognized v9.1.0591
Jonas Dujava [Tue, 16 Jul 2024 18:37:41 +0000 (20:37 +0200)] 
patch 9.1.0591: filetype: *.wl files are not recognized

Problem:  filetype: *.wl files are not recognized
Solution: Detect '*.wl' files as Mathematica package files
          (Jonas Dujava)

closes: #15269

Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0590: Vim9: crash when accessing getregionpos() return value v9.1.0590
zeertzjq [Tue, 16 Jul 2024 18:34:16 +0000 (20:34 +0200)] 
patch 9.1.0590: Vim9: crash when accessing getregionpos() return value

Problem:  Vim9: crash when accessing getregionpos() return value.
Solution: Correct the return type (zeertzjq).

fixes: #15272
closes: #15273

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): 'cpoptions': Include "z" in the documented default
Illia Bobyr [Tue, 16 Jul 2024 18:10:16 +0000 (20:10 +0200)] 
runtime(doc): 'cpoptions': Include "z" in the documented default

A fixup for commit 22105fd1fe0dcfe993b5c04 (tag: v9.1.0589)

While at it, document the correct Vi defaults and $VIM_POSIX (even more
compatible) flags.

closes: #15274

Signed-off-by: Illia Bobyr <illia.bobyr@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0589: vi: d{motion} and cw work differently than expected v9.1.0589
Christian Brabandt [Mon, 15 Jul 2024 18:51:11 +0000 (20:51 +0200)] 
patch 9.1.0589: vi: d{motion} and cw work differently than expected

Problem:  vi: d{motion} and cw command work differently than expected
Solution: add new cpo-z flag to make the behaviour configurable

There are two special vi compatible behaviours (or should I say bugs?):

1): cw behaves differently than dw. That is, because cw is special cased
    by Vim and is effectively aliased to ce.
    POSIX behaviour is documented here:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/vi.html#tag_20_152_13_81

2): d{motion} may make the whole delete operation linewise, if the start
    and end of the motion are on different lines and there are only
    blanks before the start and after the end of the motion.
    Did not find a related POSIX link that requires this behaviour.

Both behaviours can be considered inconsistent, but we cannot easily
change it, because it would be a backward incompatible change and also
incompatible to how classic vi behaved.

So let's add the new cpo flag "z", which when not included fixes both
behaviours and make them more consistent to what users would expect.

This has been requested several times:
https://groups.google.com/d/msg/vim_use/aaBqT6ECkA4/ALf4odKzEDgJ
https://groups.google.com/d/msg/vim_dev/Dpn3xtUF16I/T6JcOPKN6usJ
http://www.reddit.com/r/vim/comments/26nut8/why_does_cw_work_like_ce/
https://groups.google.com/d/msg/vim_use/vunNWLFWfQg/MmJh_ZGaAgAJ
https://github.com/vim/vim/issues/4390

So in summary, if you want to have the w motion work more consistent,
remove the 'z' from the cpo settings.

related: #4390
closes: #15263

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(colors): update included colorschemes
Maxim Kim [Mon, 15 Jul 2024 18:42:31 +0000 (20:42 +0200)] 
runtime(colors): update included colorschemes

- Add PmenuMatch and PmenuMatchSel to all colorschemes
- Add contrast to habamax Type, String, Constant and PreProc
- Change habamax PmenuSel to neutral gray to make PmenuMatchSel more visible
- Change habamax Tabline and VertSplit
- Make Conceal less visible for zellner, torte, shine, ron, peachpuff,
  pablo, morning, koehler, evening, delek, blue, darkblue, lunaperche,
  retrobox
- Add Added/Changed/Removed highlights
- Fix retrobox Terminal background
- Other minor fixes and improvements

closes: #15267

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): grammar fixes in options.txt
Dominique Pellé [Mon, 15 Jul 2024 18:29:59 +0000 (20:29 +0200)] 
runtime(doc): grammar fixes in options.txt

closes: #15265

Signed-off-by: Dominique Pellé <dominique.pelle@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0588: The maze program no longer compiles on newer clang v9.1.0588
Mohamed Akram [Mon, 15 Jul 2024 18:23:36 +0000 (20:23 +0200)] 
patch 9.1.0588: The maze program no longer compiles on newer clang

Problem:  The maze program no longer compiles on newer clang
Solution: Use ANSI C function definition for main()
          (Mohamed Akram)

Implicit int is an error in newer versions of clang.

closes: #15247

Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(typst): Add typst runtime files
Gregory Anders [Mon, 15 Jul 2024 18:00:48 +0000 (20:00 +0200)] 
runtime(typst): Add typst runtime files

closes: #15234

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0587: tests: Test_gui_lowlevel_keyevent is still flaky v9.1.0587
Ken Takata [Mon, 15 Jul 2024 17:52:25 +0000 (19:52 +0200)] 
patch 9.1.0587: tests: Test_gui_lowlevel_keyevent is still flaky

Problem:  tests: Test_gui_lowlevel_keyevent is still flaky
          (after v9.1.0571)
Solution: skip generating key event for Ctrl-C,
          remove the test_is_flaky variable again (Ken Takata)

v9.1.0571 was not enough.
Ctrl-C interruption may occur before the preceding events are processed.
Exclude Ctrl-C to avoid the flakiness.

closes: #15224

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0586: ocaml runtime files are outdated v9.1.0586
Yinzuo Jiang [Sun, 14 Jul 2024 15:02:33 +0000 (17:02 +0200)] 
patch 9.1.0586: ocaml runtime files are outdated

Problem:  ocaml runtime files are outdated
Solution: sync those files with the upstream repo,
          detect a few more ocaml files
          (Yinzuo Jiang)

closes: #15260

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(termdebug): fix a few issues
Ubaldo Tiberi [Sun, 14 Jul 2024 14:58:32 +0000 (16:58 +0200)] 
runtime(termdebug): fix a few issues

Fix a few minor issues:
1. filename with whitespaces issue should be fixed now, fixes: #12357
2. ":Termdebug args" should work now, fixes: #15254

closes: #15261

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@google.com>
17 months agopatch 9.1.0585: tests: test_cpoptions leaves swapfiles around v9.1.0585
Christian Brabandt [Sun, 14 Jul 2024 14:03:41 +0000 (16:03 +0200)] 
patch 9.1.0585: tests: test_cpoptions leaves swapfiles around

Problem:  tests: test_cpoptions leaves swapfiles around
Solution: Use :bw! instead of :close!

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0584: Warning about redeclaring f_id() non-static v9.1.0584
John Marriott [Sun, 14 Jul 2024 09:12:51 +0000 (11:12 +0200)] 
patch 9.1.0584: Warning about redeclaring f_id() non-static

Problem:  Warning about redeclaring f_id() non-static
Solution: Declare f_id() static (John Marriott)

closes: #15257

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): Add hint how to load termdebug from vimrc
Christian Brabandt [Sun, 14 Jul 2024 08:41:08 +0000 (10:41 +0200)] 
runtime(doc): Add hint how to load termdebug from vimrc

fixes: #15256

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): document global insert behavior
Mohamed Akram [Sun, 14 Jul 2024 08:34:25 +0000 (10:34 +0200)] 
runtime(doc): document global insert behavior

This is a partial revert of 8f3f58f since this issue was fixed in #15120.

related: #15120

Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0583: filetype: *.pdf_tex files are not recognized v9.1.0583
Jonas Dujava [Sun, 14 Jul 2024 08:26:19 +0000 (10:26 +0200)] 
patch 9.1.0583: filetype: *.pdf_tex files are not recognized

Problem:  filetype: *.pdf_tex files are not recognized
Solution: Detect '*.pdf_tex' files as tex filetype
          (Jonas Dujava)

Those files are generated by inkscape, when exporting, see e.g.
https://inkscape.org/doc/inkscape-man.html

closes: #15250

Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0582: Printed line doesn't overwrite colon when pressing Enter in Ex mode v9.1.0582
zeertzjq [Sun, 14 Jul 2024 08:22:54 +0000 (10:22 +0200)] 
patch 9.1.0582: Printed line doesn't overwrite colon when pressing Enter in Ex mode

Problem:  Printed line no longer overwrites colon when pressing Enter in
          Ex mode (after 9.1.0573).
Solution: Restore the behavior of pressing Enter in Ex mode.
          (zeertzjq)

closes: #15258

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0581: Various lines are indented inconsistently v9.1.0581
zeertzjq [Sun, 14 Jul 2024 08:20:20 +0000 (10:20 +0200)] 
patch 9.1.0581: Various lines are indented inconsistently

Problem:  style: Various lines are indented inconsistently
Solution: Retab these lines and correct some comments.
          (zeertzjq)

closes: #15259

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0580: :lmap mapping for keypad key not applied when typed in Select mode v9.1.0580
zeertzjq [Sat, 13 Jul 2024 17:06:44 +0000 (19:06 +0200)] 
patch 9.1.0580: :lmap mapping for keypad key not applied when typed in Select mode

Problem:  An :lmap mapping for a printable keypad key is not applied
          when typing it in Select mode.
Solution: Change keypad key to ASCII after setting vgetc_char.
          (zeertzjq)

closes: #15245

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0579: Ex command is still executed after giving E1247 v9.1.0579
zeertzjq [Sat, 13 Jul 2024 17:04:10 +0000 (19:04 +0200)] 
patch 9.1.0579: Ex command is still executed after giving E1247

Problem:  Ex command is still executed after giving E1247.
Solution: Indicate the error properly and set cmd to NULL.
          (zeertzjq)

closes: #15241

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0578: no tests for :Tohtml v9.1.0578
Yinzuo Jiang [Sat, 13 Jul 2024 17:02:10 +0000 (19:02 +0200)] 
patch 9.1.0578: no tests for :Tohtml

Problem:  no tests for :Tohtml
Solution: Add two basic tests (Yinzuo Jiang)

closes: #15240

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0577: Unnecessary checks for v:sizeoflong in test_put.vim v9.1.0577
zeertzjq [Sat, 13 Jul 2024 16:59:47 +0000 (18:59 +0200)] 
patch 9.1.0577: Unnecessary checks for v:sizeoflong in test_put.vim

Problem:  Unnecessary checks for v:sizeoflong in test_put.vim.  They are
          no longer necessary as patch 8.2.3661 has changed the count to
          be within 32-bit integer limit.
Solution: Remove the checks (zeertzjq).

closes: #15239

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0576: tests: still an issue with test_gettext_make v9.1.0576
Ken Takata [Sat, 13 Jul 2024 16:56:25 +0000 (18:56 +0200)] 
patch 9.1.0576: tests: still an issue with test_gettext_make

Problem:  tests: still an issue with test_gettext_make
          (after v9.1.0570)
Solution: Compare the getenv() output against v:null to verify
          that $GETTEXT_PATH was set or not (Ken Takata)

closes: #15236

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0575: Wrong comments in alt_tabpage() v9.1.0575
zeertzjq [Sat, 13 Jul 2024 16:53:54 +0000 (18:53 +0200)] 
patch 9.1.0575: Wrong comments in alt_tabpage()

Problem:  Wrong comments in alt_tabpage()
          (after v9.1.0572)
Solution: Correct the comments (zeertzjq).

closes: #15235

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0574: ex: wrong handling of commands after bar v9.1.0574
Mohamed Akram [Sat, 13 Jul 2024 16:49:55 +0000 (18:49 +0200)] 
patch 9.1.0574: ex: wrong handling of commands after bar

Problem:  ex: wrong handling of commands after bar
Solution: for :append, :insert and :change use the text after the bar
          as input for those commands. This is what POSIX requests.
          (Mohamed Akram)

See the POSIX Spec:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex.html#tag_20_40_13_03
Section 12.c

closes: #15229

Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): add a note for netrw bug reports
Christian Brabandt [Sat, 13 Jul 2024 16:19:03 +0000 (18:19 +0200)] 
runtime(doc): add a note for netrw bug reports

fixes: #15242

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0573: ex: no implicit print for single addresses v9.1.0573
Mohamed Akram [Fri, 12 Jul 2024 18:17:55 +0000 (20:17 +0200)] 
patch 9.1.0573: ex: no implicit print for single addresses

Problem:  ex: no implicit print for single addresses
Solution: explicitly print even during single addresses,
          as requested by POSIX (Mohamed Akram)

See the POSIX behaviour here:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex.html#tag_20_40_13_03
Section 6b

closes: #15230

Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(vim): make &indentexpr available from the outside
Christian Brabandt [Fri, 12 Jul 2024 18:02:31 +0000 (20:02 +0200)] 
runtime(vim): make &indentexpr available from the outside

closes: #14936

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0572: cannot specify tab page closing behaviour v9.1.0572
LemonBoy [Fri, 12 Jul 2024 17:30:58 +0000 (19:30 +0200)] 
patch 9.1.0572: cannot specify tab page closing behaviour

Problem:  cannot specify tab page closing behaviour
          (Gianluca Pacchiella)
Solution: Add the 'tabclose' option (LemonBoy).

fixes: #5967
closes: #15204

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): remove obsolete Ex insert behavior
Mohamed Akram [Fri, 12 Jul 2024 16:53:07 +0000 (18:53 +0200)] 
runtime(doc): remove obsolete Ex insert behavior

related: #15120
closes: #15228

Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0571: tests: Test_gui_lowlevel_keyevent is flaky v9.1.0571
Ken Takata [Fri, 12 Jul 2024 05:48:32 +0000 (07:48 +0200)] 
patch 9.1.0571: tests: Test_gui_lowlevel_keyevent is flaky

Problem:  tests: Test_gui_lowlevel_keyevent is flaky
Solution: mark as flaky (Ken Takata)

Test_gui_lowlevel_keyevent is failing on vim-win32-installer recently.
Mark it as flaky for now.

closes: #15223

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(logindefs): update syntax with new keywords
Eisuke Kawashima [Fri, 12 Jul 2024 05:46:43 +0000 (07:46 +0200)] 
runtime(logindefs): update syntax with new keywords

* add keywords
* enforce octal format for permissions

closes: #15222

Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0570: tests: test_gettext_make can be improved v9.1.0570
Ken Takata [Fri, 12 Jul 2024 05:35:36 +0000 (07:35 +0200)] 
patch 9.1.0570: tests: test_gettext_make can be improved

Problem:  tests: test_gettext_make can be improved
          (after v9.1.0559)
Solution: Improve the test
          (Ken Takata)

* Remove unnecessary comment.
* Check the gettext feature.
* Check whether %GETTEXT_PATH% is set.
* Check the return code of the make command.
* Use heredoc.

closes: #15221

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(filetype): Fix Prolog file detection regex
igna_martinoli [Fri, 12 Jul 2024 05:32:21 +0000 (07:32 +0200)] 
runtime(filetype): Fix Prolog file detection regex

Problem: filetype: .pro file detection for Prolog is broken
Solution: fixed the regex to only match on the tested
          cases (igna_martinoli)

fixes: #10835
closes: #15206

Signed-off-by: igna_martinoli <ignamartinoli@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0569: fnamemodify() treats ".." and "../" differently v9.1.0569
zeertzjq [Fri, 12 Jul 2024 05:29:14 +0000 (07:29 +0200)] 
patch 9.1.0569: fnamemodify() treats ".." and "../" differently

Problem:  fnamemodify() treats ".." and "../" differently.
Solution: Expand ".." properly like how "/.." is treated in 8.2.3388.
          (zeertzjq)

closes: #15218

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(mojo): include mojo ftplugin and indent script
Riley Bruins [Thu, 11 Jul 2024 20:50:36 +0000 (22:50 +0200)] 
runtime(mojo): include mojo ftplugin and indent script

Taken from excerpts of the Python ftplugin and adapted,
indent script simply sources the python indent script.

closes: #15171

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0568: Cannot expand paths from 'cdpath' setting v9.1.0568
LemonBoy [Thu, 11 Jul 2024 20:35:53 +0000 (22:35 +0200)] 
patch 9.1.0568: Cannot expand paths from 'cdpath' setting

Problem:  Cannot expand paths from 'cdpath' setting
          (Daniel Hahler)
Solution: Implement 'cdpath' completion, add the new 'dir_in_path'
          completion type (LemonBoy)

fixes #374
closes: #15205

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0567: Cannot use relative paths as findfile() stop directories v9.1.0567
zeertzjq [Thu, 11 Jul 2024 20:24:15 +0000 (22:24 +0200)] 
patch 9.1.0567: Cannot use relative paths as findfile() stop directories

Problem:  Cannot use relative paths as findfile() stop directories.
Solution: Change a relative path to an absolute path.
          (zeertzjq)

related: #15200
closes: #15202

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0566: Stop dir in findfile() doesn't work properly w/o trailing slash v9.1.0566
zeertzjq [Thu, 11 Jul 2024 20:22:26 +0000 (22:22 +0200)] 
patch 9.1.0566: Stop dir in findfile() doesn't work properly w/o trailing slash

Problem:  Stop directory in findfile() doesn't work properly without a
          trailing slash.
Solution: Always use fnamencmp(), not fnamecmp().

related: #15200
related: #15202

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0565: Stop directory doesn't work properly in 'tags' v9.1.0565
zeertzjq [Thu, 11 Jul 2024 20:19:46 +0000 (22:19 +0200)] 
patch 9.1.0565: Stop directory doesn't work properly in 'tags'

Problem:  Stop directory doesn't work properly in 'tags'.
          (Jesse Pavel)
Solution: Also move the stop directory forward by one byte.
          (zeertzjq)

This doesn't support relative stop directories yet, as they are not
supported in other places like findfile() either.

fixes: #15200
related: #15202

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0564: id() can be faster v9.1.0564
Ernie Rael [Thu, 11 Jul 2024 20:10:45 +0000 (22:10 +0200)] 
patch 9.1.0564: id() can be faster

Problem:  id() can be made faster
Solution: don't use printf(), use clever shift of pointer
          (Ernie Rael)

closes: #15207

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0563: Cannot process any Key event v9.1.0563
Shougo Matsushita [Thu, 11 Jul 2024 20:05:12 +0000 (22:05 +0200)] 
patch 9.1.0563: Cannot process any Key event

Problem:  Cannot process any Key event
Solution: Add the KeyInputPre autocmd
          (Shougo Matsushita)

closes: #15182

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0562: tests: inconsistency in test_findfile.vim v9.1.0562
zeertzjq [Thu, 11 Jul 2024 19:48:09 +0000 (21:48 +0200)] 
patch 9.1.0562: tests: inconsistency in test_findfile.vim

Problem:  tests: inconsistency in test_findfile.vim, it saves and
          restores 'shellslash', but doesn't actually set it
Solution: Set shellslash explicitly (zeertzjq)

closes: #15217

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(fstab): Add missing keywords to fstab syntax
Christian Brabandt [Thu, 11 Jul 2024 19:45:41 +0000 (21:45 +0200)] 
runtime(fstab): Add missing keywords to fstab syntax

Added overlay, tracefs and fixed the "none" keyword in the fstab syntax definition.

closes: #15217

Signed-off-by: Radu Dineiu <radu.dineiu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0561: netbeans: variable used un-initialized (Coverity) v9.1.0561
Christian Brabandt [Thu, 11 Jul 2024 19:41:23 +0000 (21:41 +0200)] 
patch 9.1.0561: netbeans: variable used un-initialized (Coverity)

Problem:  netbeans: variable used un-initialized (Coverity)
          (after v9.1.0557)
Solution: properly initialize exarg_T struct for use with netbeans

The actual exarg.cmdidx doesn't really matter, but let's use something,
that is not affected by the recent changes (going through the buffer
list) and use CMD_USER.

closes: #15211

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0560: bindtextdomain() does not indicate an error v9.1.0560
Christ van Willegen [Thu, 11 Jul 2024 19:36:21 +0000 (21:36 +0200)] 
patch 9.1.0560: bindtextdomain() does not indicate an error

Problem:  bindtextdomain() does not indicate an error
          (after v9.1.509)
Solution: return false on failure (OOM).
          (Chris van Willegen)

closes: #15116

Signed-off-by: Christ van Willegen <cvwillegen@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0559: translation of vim scripts can be improved v9.1.0559
RestorerZ [Thu, 11 Jul 2024 19:14:15 +0000 (21:14 +0200)] 
patch 9.1.0559: translation of vim scripts can be improved

Problem:  translation of vim scripts can be improved
          (after v9.1.0509)
Solution: improve documentation, add tests, include missing
          libraries for the Windows CI
          (RestorerZ)

closes: #15100

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0558: filetype: prolog detection can be improved v9.1.0558
igna_martinoli [Wed, 10 Jul 2024 19:25:04 +0000 (21:25 +0200)] 
patch 9.1.0558: filetype: prolog detection can be improved

Problem:  filetype: prolog detection can be improved
Solution: Improved the Prolog file detection regex and added tests for
          all cases. (igna_martinoli)

fixes: #10835
closes: #15206

Signed-off-by: igna_martinoli <ignamartinoli@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0557: moving in the buffer list doesn't work as documented v9.1.0557
LemonBoy [Wed, 10 Jul 2024 18:20:48 +0000 (20:20 +0200)] 
patch 9.1.0557: moving in the buffer list doesn't work as documented

Problem:  moving in the buffer list doesn't work as documented
          (SenileFelineS)
Solution: Skip non-help buffers, when run from normal buffers, else
          only move from help buffers to the next help buffer (LemonBoy)

As explained in the help section for :bnext and :bprev the commands
should jump from help buffers to help buffers (and from regular ones to
regular ones).

fixes: #4478
closes: #15198

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): fix inconsistencies in :h file-searching
zeertzjq [Wed, 10 Jul 2024 18:06:52 +0000 (20:06 +0200)] 
runtime(doc): fix inconsistencies in :h file-searching

closes: #15201

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0556: :bwipe doesn't remove file from jumplist of other tabpages v9.1.0556
zeertzjq [Wed, 10 Jul 2024 17:36:36 +0000 (19:36 +0200)] 
patch 9.1.0556: :bwipe doesn't remove file from jumplist of other tabpages

Problem:  :bwipe doesn't remove file from jumplist and tagstack of other
          tabpages. Time complexity of mark_forget_file() is O(n^2) when
          removing all entries (after v9.1.0554)
Solution: Use FOR_ALL_TAB_WINDOWS().  Start the loops over the arrays
          from the end instead of the start (zeertzjq)

closes: #15199

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(htmlangular): correct comment
Christian Brabandt [Wed, 10 Jul 2024 17:33:33 +0000 (19:33 +0200)] 
runtime(htmlangular): correct comment

related: #15190

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0555: filetype: angular ft detection is still problematic v9.1.0555
Christian Brabandt [Wed, 10 Jul 2024 17:23:39 +0000 (19:23 +0200)] 
patch 9.1.0555: filetype: angular ft detection is still problematic

Problem:  filetype: angular ft detection is still problematic
          (after 9.1.0551)
Solution: detect htmlangular filetype only by inspecting the content,
          do not try to determine it from a generic name like
          '*.component.html'

For the reasons mentioned here:

https://github.com/vim/vim/pull/13594#issuecomment-1834465890

related: #15190
related: #13594
related: #13604

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0554: :bw leaves jumplist and tagstack data around v9.1.0554
LemonBoy [Tue, 9 Jul 2024 18:03:24 +0000 (20:03 +0200)] 
patch 9.1.0554: :bw leaves jumplist and tagstack data around

Problem:  :bw leaves jumplist and tagstack data around
          (Paul "Joey" Clark)
Solution: Wipe jumplist and tagstack references to the wiped buffer
          (LemonBoy)

As documented the :bwipeout command brutally deletes all the references
to the buffer, so let's make it delete all the entries in the jump list
and tag stack referring to the wiped-out buffer.

fixes: #8201
closes: #15185

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0553: filetype: *.mcmeta files are not recognized v9.1.0553
Tomodachi94 [Tue, 9 Jul 2024 17:55:16 +0000 (19:55 +0200)] 
patch 9.1.0553: filetype: *.mcmeta files are not recognized

Problem:  filetype: *.mcmeta files are not recognized
Solution: Detect '*.mcmeta' files as json filetype
          (Tomodachi94)

"pack.mcmeta" was added to the JSON tests because that is the most common
filename with that extension.

There are currently 34,000 instances of this file extension on GitHub:
https://github.com/search?q=path%3A*.mcmeta&type=code&p=2

.zip files with this extension have downloads in the millions on sites
like CurseForge:
https://www.curseforge.com/minecraft/search?page=1&pageSize=20&sortBy=relevancy&class=texture-packs

Further reading about the file extension:
https://minecraft.wiki/w/Tutorials/Creating_a_resource_pack#Creating_a_.MCMETA_file

closes: #15189

Signed-off-by: Tomodachi94 <tomodachi94@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0552: No test for antlr4 filetype v9.1.0552
Christian Brabandt [Tue, 9 Jul 2024 17:52:20 +0000 (19:52 +0200)] 
patch 9.1.0552: No test for antlr4 filetype

Problem:  No test for antlr4 filetype
          (after 9.1.0550)
Solution: Add a simple filename test

related: #15191

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0551: filetype: htmlangular files are not properly detected v9.1.0551
Dennis van den Berg [Tue, 9 Jul 2024 17:25:33 +0000 (19:25 +0200)] 
patch 9.1.0551: filetype: htmlangular files are not properly detected

Problem:  filetype: htmlangular files are not properly detected
Solution: Use the new htmlangular filetype for angular files, because
          since angular v17, those are no longer valid HTML files.
          (Dennis van den Berg)

Since Angular 17, the new Control Flow Syntax is not valid HTML. This PR
adds a new filetype detection for the HTML templates of Angular.

It first checks the filename. The Angular convention is to use
*.component.html for the template. However, this is not mandatory.

If the filename does not match, it will check the contents of the file
if it contains:

  - One of the Control-Flow blocks: @if, @for, @switch, @defer
  - A structural directive: *ngIf, *ngFor, *ngSwitch, *ngTemplateOutlet
  - Builtin Angular elements: ng-template or ng-content
  - String interpolation: {{ something }}

This enables the Angular LSP to attach only to htmlangular filetypes, as
well as language parsers, such as tree-sitter.

closes: #15190

Signed-off-by: Dennis van den Berg <dennis.vandenberg@nedap.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0550: filetype: antlr4 files are not recognized v9.1.0550
Yinzuo Jiang [Tue, 9 Jul 2024 17:11:18 +0000 (19:11 +0200)] 
patch 9.1.0550: filetype: antlr4 files are not recognized

Problem:  filetype: antlr4 files are not recognized
Solution: Detect '*.g4' as antlr4 filetype, include a simple antlr4
          syntax and filetype plugin (Yinzuo Jiang)

closes: #15191

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0549: fuzzycollect regex based completion not working as expected v9.1.0549
glepnir [Tue, 9 Jul 2024 16:51:29 +0000 (18:51 +0200)] 
patch 9.1.0549: fuzzycollect regex based completion not working as expected

Problem:  fuzzycollect regex based completion not working as expected
Solution: Revert Patch v9.1.0503 (glepnir)

closes: #15192

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): autocmd_add() accepts a list not a dict
Boyang Du [Tue, 9 Jul 2024 16:46:12 +0000 (18:46 +0200)] 
runtime(doc): autocmd_add() accepts a list not a dict

closes: #15180

Signed-off-by: Boyang Du <boyang@synopsys.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0548: it's not possible to get a unique id for some vars v9.1.0548
Ernie Rael [Tue, 9 Jul 2024 16:39:52 +0000 (18:39 +0200)] 
patch 9.1.0548: it's not possible to get a unique id for some vars

Problem:  it's not possible to get a unique id for some vars
Solution: Add the id() Vim script function, which returns a unique
          identifier for object, dict, list, job, blob or channel
          variables (Ernie Rael)

fixes: #14374
closes: #15145

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(tmux): Update syntax script
Eric Pruitt [Tue, 9 Jul 2024 16:32:55 +0000 (18:32 +0200)] 
runtime(tmux): Update syntax script

closes: #15195
related: #15188

Co-authored-by: Contsantine Bulany <61948252+lostl1ght@users.noreply.github.com>
Signed-off-by: Eric Pruitt <eric.pruitt@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0547: No way to get the arity of a Vim function v9.1.0547
LemonBoy [Tue, 9 Jul 2024 16:24:59 +0000 (18:24 +0200)] 
patch 9.1.0547: No way to get the arity of a Vim function

Problem:  No way to get the arity of a Vim function
          (Austin Ziegler)
Solution: Enhance get() Vim script function to return the function
          argument info using get(func, "arity") (LemonBoy)

fixes: #15097
closes: #15109

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0546: vim-tiny fails on CTRL-X/CTRL-A v9.1.0546
Christian Brabandt [Mon, 8 Jul 2024 19:12:55 +0000 (21:12 +0200)] 
patch 9.1.0546: vim-tiny fails on CTRL-X/CTRL-A

Problem:  vim-tiny fails on CTRL-X/CTRL-A
          (Rob Foehl, after 9.1.0172)
Solution: Move #ifdefs, so that after changing the line in del_bytes,
          the cached textlen value is invalidated

closes: #15178

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(hlsplaylist): include hlsplaylist ftplugin file
AvidSeeker [Mon, 8 Jul 2024 19:10:08 +0000 (21:10 +0200)] 
runtime(hlsplaylist): include hlsplaylist ftplugin file

fixes: #15156
closes: #15162

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: AvidSeeker <avidseeker7@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): fix typo in :h ft-csv-syntax
zeertzjq [Mon, 8 Jul 2024 19:02:14 +0000 (21:02 +0200)] 
runtime(doc): fix typo in :h ft-csv-syntax

closes: #15179

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): Correct shell command to get $VIMRUNTIME into shell
Shane Harper [Mon, 8 Jul 2024 18:59:33 +0000 (20:59 +0200)] 
runtime(doc): Correct shell command to get $VIMRUNTIME into shell

The original shell command could set the VIMRUNTIME variable to an
invalid path.
    - since v9.0.0592 trailing spaces were typically added making the
      path invalid. (I observed that spaces were added if the length of
      the path wasn't equal to one less than an integer multiple of the
      number of display columns.)
    - newline character/s would be added, making the path invalid, if
      the path was longer than the number of display columns.

The new command is shorter than the original command.

closes: #15184

Signed-off-by: Shane Harper <shane@shaneharper.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0545: MSVC conversion warning v9.1.0545
Ernie Rael [Mon, 8 Jul 2024 18:42:45 +0000 (20:42 +0200)] 
patch 9.1.0545: MSVC conversion warning

Problem:  MSVC conversion warning (LemonBoy, after 9.1.0522)
Solution: Use size_t instead of int, fix style of casts
          (Ernie Rael)

related: #15082
closes: #15187

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0544: filetype: ldapconf files are not recognized v9.1.0544
Riley Bruins [Sun, 7 Jul 2024 19:20:22 +0000 (21:20 +0200)] 
patch 9.1.0544: filetype: ldapconf files are not recognized

Problem:  filetype: ldapconf files are not recognized
Solution: Detect '.ldaprc', 'ldap.conf' and 'ldaprc' files as ldapconf
          filetype, include a simple ldapconf ftplugin file
          (Riley Bruins)

[Specification](https://www.openldap.org/software//man.cgi?query=ldap.conf&sektion=5&apropos=0&manpath=OpenLDAP+2.4-Release)

closes: #15176

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(cmakecache): include cmakecache ftplugin file
Riley Bruins [Sun, 7 Jul 2024 19:18:31 +0000 (21:18 +0200)] 
runtime(cmakecache): include cmakecache ftplugin file

closes: #15175

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(lex): include lex ftplugin file
Riley Bruins [Sun, 7 Jul 2024 19:17:16 +0000 (21:17 +0200)] 
runtime(lex): include lex ftplugin file

Spec found [here](https://docs.oracle.com/cd/E19504-01/802-5880/lex-6/index.html)

closes: #15174

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(yacc): include yacc ftplugin file
Riley Bruins [Sun, 7 Jul 2024 19:16:08 +0000 (21:16 +0200)] 
runtime(yacc): include yacc ftplugin file

closes: #15173

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(squirrel): include squirrel ftplugin file
Riley Bruins [Sun, 7 Jul 2024 19:14:59 +0000 (21:14 +0200)] 
runtime(squirrel): include squirrel ftplugin file

Comment spec found [here](https://squirrel-lang.org/squirreldoc/reference/language/lexical_structure.html#comments)

closes: #15172

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(objcpp): include objcpp ftplugin file
Riley Bruins [Sun, 7 Jul 2024 19:10:10 +0000 (21:10 +0200)] 
runtime(objcpp): include objcpp ftplugin file

This one just sources the objc.vim ftplugin.

closes: #15170

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(tf): include tf ftplugin file
Riley Bruins [Sun, 7 Jul 2024 19:07:56 +0000 (21:07 +0200)] 
runtime(tf): include tf ftplugin file

Adds ftplugin support for tf (TinyFugue). Comment support taken from
[here](https://github.com/kruton/tinyfugue/blob/1e8ac0bb014036c07bb3c679b0292ef20a6a0bb5/src/command.c#L568)

closes: #15168

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(mysql): include mysql ftplugin file
Riley Bruins [Sun, 7 Jul 2024 19:02:23 +0000 (21:02 +0200)] 
runtime(mysql): include mysql ftplugin file

This one just sources from the SQL ftplugin. Without this, *.mysql
files don't inherit the common SQL settings.

closes: #15166

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(javacc): include javacc ftplugin file
Riley Bruins [Sun, 7 Jul 2024 18:59:42 +0000 (20:59 +0200)] 
runtime(javacc): include javacc ftplugin file

closes: #15167

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(cabal): include cabal ftplugin file
Riley Bruins [Sun, 7 Jul 2024 18:58:10 +0000 (20:58 +0200)] 
runtime(cabal): include cabal ftplugin file

closes: #15158

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(cuda): include CUDA ftplugin file
Riley Bruins [Sun, 7 Jul 2024 18:56:43 +0000 (20:56 +0200)] 
runtime(cuda): include CUDA ftplugin file

closes: #15159

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(editorconfig): include editorconfig ftplugin file
Riley Bruins [Sun, 7 Jul 2024 18:54:32 +0000 (20:54 +0200)] 
runtime(editorconfig): include editorconfig ftplugin file

closes: #15160

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(kivy): update kivy syntax, include ftplugin
Riley Bruins [Sun, 7 Jul 2024 18:53:04 +0000 (20:53 +0200)] 
runtime(kivy): update kivy syntax, include ftplugin

Kivy uses "#:" for preprocessing commands (like "#:import ...") which
were overridden by the comment syntax. This has been changed, and a
commentstring has been added.

closes: #15163

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(syntax-tests): Stop generating redundant "*_99.dump" files
Aliaksei Budavei [Sun, 7 Jul 2024 18:51:14 +0000 (20:51 +0200)] 
runtime(syntax-tests): Stop generating redundant "*_99.dump" files

- Remove the code handling their generation.
- Remove the code written for the shell filetype to clear up
  the buffer screen before such a file can be generated.
- Remove all but "yaml.yaml_99.dump" of such generated files
  (since there is no published "input/yaml.yaml.yaml", let
  its maintainer regenerate screen dump files and remove
  redundant ones).

The new algorithm turns a "*_99.dump" file obsolete because
all lines written in such a file will already be present in
lower-numbered "*.dump" files.

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0543: Behavior of CursorMovedC is strange v9.1.0543
zeertzjq [Sun, 7 Jul 2024 18:48:25 +0000 (20:48 +0200)] 
patch 9.1.0543: Behavior of CursorMovedC is strange

Problem:  Behavior of CursorMovedC is strange.
Solution: Also trigger when the cmdline has changed.
          (zeertzjq)

fixes: #15069
closes: #15071

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(vim): Update base-syntax, improve :match command highlighting
Doug Kearns [Sun, 7 Jul 2024 18:45:37 +0000 (20:45 +0200)] 
runtime(vim): Update base-syntax, improve :match command highlighting

Match group and pattern arguments to :match commands.

closes: #15096

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0542: Vim9: confusing string() output for object functions v9.1.0542
Ernie Rael [Sun, 7 Jul 2024 18:41:44 +0000 (20:41 +0200)] 
patch 9.1.0542: Vim9: confusing string() output for object functions

Problem:  Vim9: confusing string() output for object functions
Solution: improve the output for object functions (Ernie Rael)

fixes: #15129
closes: #15143

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0541: failing test with Vim configured without channel v9.1.0541
Dominique Pellé [Sun, 7 Jul 2024 18:37:12 +0000 (20:37 +0200)] 
patch 9.1.0541: failing test with Vim configured without channel

Problem:  failing test with Vim configured without channel
Solution: In the test Test_null_values() verify that the 'channel' and
          'job' feature is present in Vim. (Dominique Pellé)

Test `Test_null_values` was failing when vim is configured without
channel because the test uses function `null_channel()` (which
requires the `+channel` feature) and using `null_job()` which
requires the `+job` feature. But was reproducible when vim is
configured with:
```
./configure --with-features=huge --enable-gui=none --disable-channel
```

Only check `null_channel()` when the `+channel` feature is available.
Only check `null_job()` when the `+job` feature is available.

closes: #15177

Signed-off-by: Dominique Pellé <dominique.pelle@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>