]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
16 months agoruntime(java): Cluster optional group definitions and their group links
Aliaksei Budavei [Wed, 31 Jul 2024 20:15:16 +0000 (22:15 +0200)] 
runtime(java): Cluster optional group definitions and their group links

And keep non-optional group links at the end of the file.

related: #15399

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(java): Tidy up the syntax file
Aliaksei Budavei [Wed, 31 Jul 2024 20:14:37 +0000 (22:14 +0200)] 
runtime(java): Tidy up the syntax file

- Prefix all global variables with "g:".
- Add spaces around each variable assignment operator.
- Remove extraneous whitespace characters.
- Remove a spurious _serializable_ Java keyword (since v1.1,
  java.io.Serializable and java.io.Externalizable interfaces
  provide an API for object serialization; see vim-6-0j).
- Normalise the syntax definition argument order by making
  _contained_ the first argument of each such definition.
- Normalise the argument tabulation for highlighting group
  definitions.

Reference:
https://web.archive.org/web/20010821025330/java.sun.com/docs/books/jls/first_edition/html/1.1Update.html

related: #15399

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(java): Tidy up the documentation for "ft-java-syntax"
Aliaksei Budavei [Wed, 31 Jul 2024 20:13:25 +0000 (22:13 +0200)] 
runtime(java): Tidy up the documentation for "ft-java-syntax"

- Reword a few sentences and reformat a few paragraphs.
- Supply absent capitalisation and punctuation.
- Make listed highlighting groups and code stand out.
- Prefix all Java-related global variables with "g:".
- Add spaces around each variable assignment operator.
- Acknowledge that some Javadoc variables are maintained in
  the HTML syntax file.

Also, move the overridable _default_ HTML group links before
the HTML syntax file inclusion in order to implement the
documented diverged settings.

related: #15399

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(colors): update habamax scheme - tweak diff/search/todo colors
Maxim Kim [Wed, 31 Jul 2024 20:09:24 +0000 (22:09 +0200)] 
runtime(colors): update habamax scheme - tweak diff/search/todo colors

- Make diff colors more accessible, Green for added, Red for deleted, Blue for Changed
- Change Search to blue to be visible with Diff colors
- Change Todo to bright magenta

closes: #15400

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(nohlsearch): add missing loaded_hlsearch guard
Maxim Kim [Wed, 31 Jul 2024 20:07:43 +0000 (22:07 +0200)] 
runtime(nohlsearch): add missing loaded_hlsearch guard

related: #15039
closes: #15402

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(kivy): Updated maintainer info for syntax script
Corey Prophitt [Wed, 31 Jul 2024 19:53:45 +0000 (21:53 +0200)] 
runtime(kivy): Updated maintainer info for syntax script

closes: #15405

Signed-off-by: Corey Prophitt <git@prophitt.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoMaintainers: Add maintainer for ondir ftplugin + syntax files
Jon Parise [Tue, 30 Jul 2024 19:21:43 +0000 (21:21 +0200)] 
Maintainers: Add maintainer for ondir ftplugin + syntax files

closes: #15397

Signed-off-by: Jon Parise <jon@indelible.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(netrw): removing trailing slash when copying files in same directory
Travis Shelton [Tue, 30 Jul 2024 19:08:56 +0000 (21:08 +0200)] 
runtime(netrw): removing trailing slash when copying files in same directory

closes: #14756

Signed-off-by: Travis Shelton <tshelton.mail@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0645: regex: wrong match when searching multi-byte char case-insensitive v9.1.0645
Christian Brabandt [Tue, 30 Jul 2024 18:39:18 +0000 (20:39 +0200)] 
patch 9.1.0645: regex: wrong match when searching multi-byte char case-insensitive

Problem:  regex: wrong match when searching multi-byte char
          case-insensitive (diffsetter)
Solution: Apply proper case-folding for characters and search-string

This patch does the following 4 things:

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

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

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

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

   There is one tricky thing for the backtracing engine. We also need to
   calculate correctly the number of bytes to compare the 2 different
   utf-8 strings s1 and s2. So we will count the number of characters in
   s1 that the byte len specified. Then we count the number of bytes to
   step over the same number of characters in string s2 and then we can
   correctly compare the 2 utf-8 strings.

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

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

4) When comparing characters using collections, we must also apply case
   folding to each character in the collection and not just to the
   current character from the search string.  This doesn't apply to the
   NFA engine, because internally it converts collections to branches
   [abc] -> a\|b\|c

fixes: #14294
closes: #14756

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(html): update syntax script to sync by 250 minlines by default
Christian Brabandt [Tue, 30 Jul 2024 18:19:15 +0000 (20:19 +0200)] 
runtime(html): update syntax script to sync by 250 minlines by default

closes: #14071

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0644: Unnecessary STRLEN() when applying mapping v9.1.0644
zeertzjq [Tue, 30 Jul 2024 17:17:56 +0000 (19:17 +0200)] 
patch 9.1.0644: Unnecessary STRLEN() when applying mapping

Problem:  Unnecessary STRLEN() when applying mapping.
          (after v9.1.0642)
Solution: Use m_keylen and vim_strnsave().
          (zeertzjq)

closes: #15394

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(zip): Opening a remote zipfile don't work
Damien [Tue, 30 Jul 2024 17:14:35 +0000 (19:14 +0200)] 
runtime(zip): Opening a remote zipfile don't work

Problem:  Opening a zipfile from HTTP gives an empty buffer.
Solution: Ensure that the magic bytes check does not
          skip protocol processing.

Also use readblob() and remove commented out lines.

closes: #15396

Signed-off-by: Damien <141588647+xrandomname@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(cuda): source c and cpp ftplugins
Yinzuo Jiang [Tue, 30 Jul 2024 16:15:30 +0000 (18:15 +0200)] 
runtime(cuda): source c and cpp ftplugins

closes: #15383

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0643: terminal: cursor may end up on invalid position v9.1.0643
Christian Brabandt [Mon, 29 Jul 2024 19:19:51 +0000 (21:19 +0200)] 
patch 9.1.0643: terminal: cursor may end up on invalid position

Problem:  terminal: cursor may end up on invalid position after reducing
          the scrollback lines (user202729)
Solution: After reducing the scrollback size, check the cursor position,
          making sure it does not end up on an invalid line

fixes: #15351

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0642: Check that mapping rhs starts with lhs fails if not simplified v9.1.0642
zeertzjq [Mon, 29 Jul 2024 19:10:07 +0000 (21:10 +0200)] 
patch 9.1.0642: Check that mapping rhs starts with lhs fails if not simplified

Problem:  Check that mapping rhs starts with lhs doesn't work if lhs is
          not simplified.
Solution: Keep track of the mapblock containing the alternative lhs and
          also compare with it (zeertzjq).

fixes: #15376
closes: #15384

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0641: MS-Windows: OLE enabled in console version v9.1.0641
Ken Takata [Mon, 29 Jul 2024 18:57:19 +0000 (20:57 +0200)] 
patch 9.1.0641: MS-Windows: OLE enabled in console version

Problem:  MS-Windows: OLE enabled in console version, may cause hang
          (Linda_pp)
Solution: Disable OLE for console version (Ken Takata)

If VIMDLL was enabled, a message box for registering OLE might be shown
even if Vim was executed in a console. (See #15372)

Enabling OLE in a console is not so useful.  Disable it.

fixes: #15372
closes: #15385

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(thrift): add ftplugin, indent and syntax scripts
Yinzuo Jiang [Mon, 29 Jul 2024 18:51:05 +0000 (20:51 +0200)] 
runtime(thrift): add ftplugin, indent and syntax scripts

Problem: Apache Thrift files misses ftplugin, indent and syntax scripts

Solution:
- add ftplugin and indent scripts
- add thrift indent test
- port the syntax script from apache/thrift (Apache License 2)

Reference:
https://diwakergupta.github.io/thrift-missing-guide/#_language_reference

closes: #15387

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0640: Mingw: Makefile can be improved v9.1.0640
Ken Takata [Mon, 29 Jul 2024 18:43:21 +0000 (20:43 +0200)] 
patch 9.1.0640: Mingw: Makefile can be improved

Problem:  Mingw: Makefile can be improved
Solution: Reduce nesting level, directly check if the '-Wl,--entry'
          option is required (Ken Takata)

closes: #15386

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0639: channel timeout may wrap around v9.1.0639
Ken Takata [Mon, 29 Jul 2024 18:39:12 +0000 (20:39 +0200)] 
patch 9.1.0639: channel timeout may wrap around

Problem:  channel timeout may wrap around
Solution: Correct timeout calculation when GetTickCount() wraps around
          (Ken Takata)

closes: #15390

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0638: E1510 may happen when formatting a message for smsg() v9.1.0638
zeertzjq [Mon, 29 Jul 2024 18:28:14 +0000 (20:28 +0200)] 
patch 9.1.0638: E1510 may happen when formatting a message for smsg()

Problem:  E1510 may happen when formatting a message
          (after 9.1.0181).
Solution: Only give E1510 when using typval. (zeertzjq)

closes: #15391

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0637: MS-Windows: Style issues in MSVC Makefile v9.1.0637
Ken Takata [Mon, 29 Jul 2024 17:52:03 +0000 (19:52 +0200)] 
patch 9.1.0637: MS-Windows: Style issues in MSVC Makefile

Problem:  MS-Windows: Style issues in MSVC Makefile
Solution: Fix style issues, simplify logic
          (Ken Takata)

* Add space around the operators for consistency.
* Remove unnecessary ren command. Use the /Fe option to create
  install.exe directly.
* Remove unnecessary mkdir auto command. src/auto should always exist.

closes: #15389

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0636: filetype: ziggy files are not recognized v9.1.0636
EliSauder [Sun, 28 Jul 2024 19:32:38 +0000 (21:32 +0200)] 
patch 9.1.0636: filetype: ziggy files are not recognized

Problem:  filetype: ziggy files are not recognized
Solution: detect '*.ziggy' files as ziggy filetype,
          detect '*.ziggy-schema' files as ziggy-schema filetype
          (EliSauder)

References: https://ziggy-lang.io/

fixes: #15355
closes: #15367

Signed-off-by: EliSauder <24995216+EliSauder@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0635: filetype: SuperHTML template files not recognized v9.1.0635
EliSauder [Sun, 28 Jul 2024 19:28:11 +0000 (21:28 +0200)] 
patch 9.1.0635: filetype: SuperHTML template files not recognized

Problem:  filetype: SuperHTML template files not recognized
Solution: Update the filetype detection code to detect '*.shtml' either
          as HTML (Server Side Includes) or SuperHTML (template files)
          (EliSauder)

related: #15355
related: #15367

Signed-off-by: EliSauder <24995216+EliSauder@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0634: Ctrl-P not working by default v9.1.0634
Christian Brabandt [Sun, 28 Jul 2024 19:16:48 +0000 (21:16 +0200)] 
patch 9.1.0634: Ctrl-P not working by default

Problem:  Ctrl-P not working by default
          (Jesse Pavel, after v9.1.0598)
Solution: Revert part of v9.1.0598 and set cur_match_pos
          correctly according to compl_dir_forward()

fixes: #15370
closes: #15379

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0633: Compilation warnings with `-Wunused-parameter` v9.1.0633
Dominique Pellé [Sun, 28 Jul 2024 19:12:20 +0000 (21:12 +0200)] 
patch 9.1.0633: Compilation warnings with `-Wunused-parameter`

Problem:  Compilation warnings with `-Wunused-parameter`
Solution: Add the `UNUSED` macro where needed, and remove some
          superfluous ones (Dominique Pellé)

Change fixes these kind of warnings when building without the channel
feature:

```
eval.c:6122:15: warning: unused parameter ‘tv’ [-Wunused-parameter]
     typval_T *tv,
               ^
eval.c:6123:14: warning: unused parameter ‘tofree’ [-Wunused-parameter]
     char_u **tofree,
              ^
eval.c:6124:13: warning: unused parameter ‘numbuf’ [-Wunused-parameter]
     char_u *numbuf,
             ^
eval.c:6125:10: warning: unused parameter ‘composite_val’ [-Wunused-parameter]
     int  composite_val)
```

closes: #15378

Signed-off-by: Dominique Pellé <dominique.pelle@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0632: MS-Windows: Compiler Warnings v9.1.0632
Ken Takata [Sun, 28 Jul 2024 15:08:15 +0000 (17:08 +0200)] 
patch 9.1.0632: MS-Windows: Compiler Warnings

Problem:  MS-Windows: Compiler Warnings
Solution: Fix the warnings (Ken Takata)

* Unused variable.
* Conversion from size_t to int.

closes: #15369

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(debcopyright): Add support for Files-Included in syntax script
josch [Sun, 28 Jul 2024 15:05:06 +0000 (17:05 +0200)] 
runtime(debcopyright): Add support for Files-Included in syntax script

Full support (including for components) was finished with this commit:
https://salsa.debian.org/debian/devscripts/-/commit/ee90dad7712a7db1e9541b405e065a08d29d62f8

closes: #15374

Signed-off-by: josch <josch@debian.org>
Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(doc): tweak documentation style a bit
h-east [Sun, 28 Jul 2024 15:03:29 +0000 (17:03 +0200)] 
runtime(doc): tweak documentation style a bit

closes: #15371

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0631: wrong completion list displayed with non-existing dir + fuzzy completion v9.1.0631
glepnir [Sat, 27 Jul 2024 14:25:45 +0000 (16:25 +0200)] 
patch 9.1.0631: wrong completion list displayed with non-existing dir + fuzzy completion

Problem:  wrong completion list displayed with non-existing dir + fuzzy
          completion (kawarimidoll)
Solution: clear list of matches, if leader did not use fuzzy match
          (glepnir)

fixes: #15357
closes: #15365

Signed-off-by: glepnir <glephunter@gmail.com>
16 months agopatch 9.1.0630: MS-Windows: build fails with VIMDLL and mzscheme v9.1.0630
Ken Takata [Sat, 27 Jul 2024 11:25:34 +0000 (13:25 +0200)] 
patch 9.1.0630: MS-Windows: build fails with VIMDLL and mzscheme

Problem:  MS-Windows: build fails with VIMDLL and mzscheme
Solution: define scheme_register_tls_space() inside gvim.exe
          and refer to it from the dll (Ken Takata).

`scheme_register_tls_space()` doesn't support a thread-local variable in
a DLL:
https://docs.racket-lang.org/inside/im_memoryalloc.html#%28cpp._scheme_register_tls_space%29

closes: #15363

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0629: Rename of pum hl_group is incomplete v9.1.0629
zeertzjq [Sat, 27 Jul 2024 11:21:49 +0000 (13:21 +0200)] 
patch 9.1.0629: Rename of pum hl_group is incomplete

Problem:  Rename of pum hl_group is incomplete in source.
Solution: Also rename the test function.  Rename to user_hlattr in code
          to avoid confusion with pum_extra.  Add test with matched text
          highlighting (zeertzjq).

closes: #15348

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0628: MinGW: coverage files are not cleaned up v9.1.0628
Ken Takata [Sat, 27 Jul 2024 11:14:35 +0000 (13:14 +0200)] 
patch 9.1.0628: MinGW: coverage files are not cleaned up

Problem:  MinGW: coverage files are not cleaned up
Solution: Adjust clean rule to remove the coverage files
          (Ken Takata)

closes: #15361

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0627: MinGW: build-error when COVERAGE is enabled v9.1.0627
Ken Takata [Sat, 27 Jul 2024 11:11:27 +0000 (13:11 +0200)] 
patch 9.1.0627: MinGW: build-error when COVERAGE is enabled

Problem:  MinGW: build-error when COVERAGE is enabled
          (after v9.1.0621)
Solution: Fix regressions in v9.1.0621 and v9.1.0622
          (Ken Takata)

* Fix build error when COVERAGE=yes.
* Fix if_lua with USE_GC_SECTIONS=yes.

related: #15361

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0626: Vim9: need more tests with null objects v9.1.0626
Ernie Rael [Fri, 26 Jul 2024 17:40:29 +0000 (19:40 +0200)] 
patch 9.1.0626: Vim9: need more tests with null objects

Problem:  Vim9: need more tests with null objects
          (after v9.1.0620)
Solution: add one more test with null_object
          (Ernie Rael)

closes: #15360

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(autohotkey): include initial filetype plugin
Peter Aronoff [Fri, 26 Jul 2024 17:24:33 +0000 (19:24 +0200)] 
runtime(autohotkey): include initial filetype plugin

closes: #15345

Signed-off-by: Peter Aronoff <peter@aronoff.org>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0625: tests: test output all translated messages for all translations v9.1.0625
Christian Brabandt [Fri, 26 Jul 2024 17:21:03 +0000 (19:21 +0200)] 
patch 9.1.0625: tests: test output all translated messages for all translations

Problem:  tests: test output all translated messages for all
          translations
Solution: Redirect the output of check.vim to /dev/null, it's not that
          useful.

closes: #15354

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0624: ex command modifiers not found v9.1.0624
Christian Brabandt [Fri, 26 Jul 2024 17:13:55 +0000 (19:13 +0200)] 
patch 9.1.0624: ex command modifiers not found

Problem:  ex command modifiers are not found
          (Ingo Karkat, after v9.1.0352)
Solution: partly revert patch v9.1.0352, ignore :{ and :}
          when expanding ex commands

The issue is, that the :keepmarks command can be abbreviated to :kee or
:keep or :keepm but not to e.g. :ke (because that would be the :exe
command :k with register e).

This basically means, we need `:kee` sorted before `:keepalt` but at the
same time `:keepmarks` sorted after the `:keepalt` command in the
cmdmod_info_tab table. Due to this, the binary search may not work
correctly, so let's revert that part of patch v9.1.0352.

fixes: #15305
closes: #15336

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0623: Mingw: errors when trying to delete non-existing files v9.1.0623
Ken Takata [Fri, 26 Jul 2024 17:02:11 +0000 (19:02 +0200)] 
patch 9.1.0623: Mingw: errors when trying to delete non-existing files

Problem:  Mingw: warnings when trying to delete non-existing files
Solution: Use "rm -f" instead of "rm" to suppress errors for
          non-existing files (Ken Takata)

closes: #15350

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0622: MS-Windows: mingw-build can be optimized v9.1.0622
Ken Takata [Fri, 26 Jul 2024 16:51:20 +0000 (18:51 +0200)] 
patch 9.1.0622: MS-Windows: mingw-build can be optimized

Problem:  MS-Windows: mingw-build can be optimized
Solution: use --gc-sections to reduce the size of the executable
          (Ken Takata)

Use the --gc-sections linker option and the -ffunction-sections compiler
option to reduce the size of the executable files.  To make these work,
the -fno-asynchronous-unwind-tables compiler option is also needed.

This is enabled by default and can be disabled by `USE_GC_SECTIONS=no`.

Note: A similar feature has been already used in MSVC. (The /OPT linker
option.)

related: #15350

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0621: MS-Windows: startup code can be improved v9.1.0621
Ken Takata [Fri, 26 Jul 2024 16:46:54 +0000 (18:46 +0200)] 
patch 9.1.0621: MS-Windows: startup code can be improved

Problem:  MS-Windows: startup code can be improved
Solution: Re-work and optimize win32 startup code
          (Ken Takata)

* Revise the code and reduce #ifdefs.
* For VIMDLL, stop using the default CRT startup code to reduce the file
  size.
  The file size becomes ~130 KB -> ~34 KB on MSVC.
* Update comments. Make them consistent between os_w32dll.c and
  os_w32exe.c.

closes: #15352

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0620: Vim9: segfauls with null objects v9.1.0620
Ernie Rael [Fri, 26 Jul 2024 16:37:02 +0000 (18:37 +0200)] 
patch 9.1.0620: Vim9: segfauls with null objects

Problem:  Vim9: segfauls with null objects
          (after v9.1.0219)
Solution: Check object pointer being NULL
          (Ernie Rael)

fixes: #15338
closes: #15349

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0619: tests: test_popup fails v9.1.0619
glepnir [Fri, 26 Jul 2024 16:15:27 +0000 (18:15 +0200)] 
patch 9.1.0619: tests: test_popup fails

Problem:  tests: test_popup fails
          (after v9.1.0618)
Solution: Correct test, move combining extra attributes to
          pum_compute_text_attrs() (glepnir)

closes: #15353

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0618: cannot mark deprecated attributes in completion menu v9.1.0618
glepnir [Thu, 25 Jul 2024 19:39:08 +0000 (21:39 +0200)] 
patch 9.1.0618: cannot mark deprecated attributes in completion menu

Problem:  cannot mark deprecated attributes in completion menu
Solution: add hl_group to the Dictionary of supported completion fields
          (glepnir)

closes: #15314

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0617: Cursor moves beyond first line of folded end of buffer v9.1.0617
Luuk van Baal [Thu, 25 Jul 2024 19:24:32 +0000 (21:24 +0200)] 
patch 9.1.0617: Cursor moves beyond first line of folded end of buffer

Problem:  Cursor moves beyond start of a folded range at the end of a buffer.
Solution: Move cursor to start of fold when going beyond end of buffer.
          Check that cursor moved to detect FAIL in outer cursor function.
          (Luuk van Baal)

closes: #15344

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0616: filetype: Make syntax highlighting off for MS Makefiles v9.1.0616
Ken Takata [Thu, 25 Jul 2024 19:07:13 +0000 (21:07 +0200)] 
patch 9.1.0616: filetype: Make syntax highlighting off for MS Makefiles

Problem:  filetype: Make syntax highlighting off for MS Makefiles
Solution: Try to detect MS Makefiles and adjust syntax rules to it.
          (Ken Takata)

Highlighting of variable expansion in Microsoft Makefile can be broken.
E.g.:
https://github.com/vim/vim/blob/2979cfc2627d76a9c09cad46a1647dcd4aa73f5f/src/Make_mvc.mak#L1331

Don't use backslash as escape characters if `make_microsoft` is set.
Also fix that `make_no_comments` was not considered if `make_microsoft`
was set.

Also add description for `make_microsoft` and `make_no_comments` to the
documentation and include a very simple filetype test

closes: #15341

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Ken Takata <kentkt@csc.jp>
16 months agopatch 9.1.0615: Unnecessary STRLEN() in make_percent_swname() v9.1.0615
zeertzjq [Thu, 25 Jul 2024 18:58:42 +0000 (20:58 +0200)] 
patch 9.1.0615: Unnecessary STRLEN() in make_percent_swname()

Problem:  Unnecessary STRLEN() in make_percent_swname()
Solution: Pass the end of "dir" to make_percent_swname()
          (zeertzjq)

closes: #15340

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(progress): Add single-line comment syntax
Daniel Smith [Thu, 25 Jul 2024 18:55:34 +0000 (20:55 +0200)] 
runtime(progress): Add single-line comment syntax

Progress OpenEdge 11.6 added a new C-like single-line comment syntax; such
comments begin with `//` and proceed to the end of the line.

Add a new syntax group `ProgressLineComment` to implement highlighting for this
syntax. Rename the existing group from `ProgressComment` to
`ProgressBlockComment`, and introduce a cluster named `ProgressComment` to
encapsulate both.

closes: #15339

Signed-off-by: Daniel Smith <daniel@rdnlsmith.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(progress): Add syntax test for comments
Daniel Smith [Thu, 25 Jul 2024 18:54:57 +0000 (20:54 +0200)] 
runtime(progress): Add syntax test for comments

We intend to update the Progress syntax file to support the single-line comment
syntax that was introduced in Progress OpenEdge 11.6. As there are no existing
tests for this file, we should first add one that demonstrates the comment
syntax that is already supported.

related: #15339

Signed-off-by: Daniel Smith <daniel@rdnlsmith.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(progress): Update maintainer info
Daniel Smith [Thu, 25 Jul 2024 18:54:10 +0000 (20:54 +0200)] 
runtime(progress): Update maintainer info

The Progress syntax file was last updated eight years ago, and the header
information twelve years ago. Attempts to contact the last known maintainer at
the email address listed in the file header (with the spam-prevention characters
removed) produced a delivery failure notification stating that the address did
not exist.

I intend to submit some minor improvements to this file. Per [1], I will assume
maintainership of it for the time being.

related: #15339

Signed-off-by: Daniel Smith <daniel@rdnlsmith.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
[1]: https://groups.google.com/g/vim_dev/c/I3pOKIOgM4A/m/pekGQB_lBwAJ

16 months agopatch 9.1.0614: tests: screendump tests fail due to recent syntax changes v9.1.0614
Doug Kearns [Thu, 25 Jul 2024 18:43:50 +0000 (20:43 +0200)] 
patch 9.1.0614: tests: screendump tests fail due to recent syntax changes

Problem:  Vim syntax file changes to :set command highlighting render
          some test dump files invalid.
          (zeertzjq, after commit ddbb6fe)
Solution: Regenerate the affected dump files (Doug Kearns)

closes: #15342

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0613: tests: termdebug test may fail and leave file around v9.1.0613
Christian Brabandt [Wed, 24 Jul 2024 19:37:39 +0000 (21:37 +0200)] 
patch 9.1.0613: tests: termdebug test may fail and leave file around

Problem:  tests: termdebug test may fail and leave temp file around
          (Dominique Pellé)
Solution: only run balloon_show() if the function exists, validate
          termdebug is running using the g: termdebug_is_running var,
          use defer to delete temporary files

fixes: #15334

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(vim): Update base-syntax, improve :set highlighting
Doug Kearns [Wed, 24 Jul 2024 18:21:22 +0000 (20:21 +0200)] 
runtime(vim): Update base-syntax, improve :set highlighting

- Match bang, "all" and "termcap" options, and trailing command
  separator "|".
- Highlight set assignment operators.
- Match multiline :set and multiline option values.
- Mention the newer "0o" octal prefix at :help :set=.

closes: #15329

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(java): Optionally highlight the :: token for method references
Aliaksei Budavei [Wed, 24 Jul 2024 18:15:15 +0000 (20:15 +0200)] 
runtime(java): Optionally highlight the :: token for method references

This token will be highlighted, similar to the arrow of
lambda expressions, whenever "g:java_highlight_functions" is
defined.

Also:

- Improve the recognition of _switch-case_ labels
  (D-Cysteine).
- Remove insignificant empty statements in syntax test
  files.

closes: #15322

References:
https://docs.oracle.com/javase/specs/jls/se21/html/jls-15.html#jls-15.13
https://github.com/fleiner/vim/pull/1

Co-authored-by: D-Cysteine <54219287+D-Cysteine@users.noreply.github.com>
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0612: filetype: deno.lock file not recognized v9.1.0612
カワリミ人形 [Wed, 24 Jul 2024 18:10:58 +0000 (20:10 +0200)] 
patch 9.1.0612: filetype: deno.lock file not recognized

Problem:  filetype: deno.lock file not recognized
Solution: detect 'deno.lock' as json filetype
          (カワリミ人形)

Reference:
https://docs.deno.com/runtime/manual/basics/modules/integrity_checking/#caching-and-lock-files

closes: #15333

Signed-off-by: カワリミ人形 <kawarimidoll+git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(zip): Use delete() for deleting directory
Damien [Wed, 24 Jul 2024 18:07:00 +0000 (20:07 +0200)] 
runtime(zip): Use delete() for deleting directory

This is safer because we don't invoke the shell.

closes: #15335

Signed-off-by: Damien <141588647+xrandomname@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(netrw): escape filename before trying to delete it
Christian Brabandt [Tue, 23 Jul 2024 19:14:06 +0000 (21:14 +0200)] 
runtime(netrw): escape filename before trying to delete it

fixes: #15330

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0611: ambiguous mappings not correctly resolved with modifyOtherKeys v9.1.0611
Oleg Goncharov [Tue, 23 Jul 2024 18:34:15 +0000 (20:34 +0200)] 
patch 9.1.0611: ambiguous mappings not correctly resolved with modifyOtherKeys

Problem:  ambiguous mappings not correctly resolved with modifyOtherKeys
Solution: Check for termcode when an upper case mapping is received and
          does not match (Oleg Goncharov)

Fix for mapping processing when capital leters are represented with terminal codes.

Problem: there are two mappings and
1) the first mapping is substring of the second,
2) the first non-matching letter is capital,
3) capital letters are represented with termcodes "ESC[27;2;<ascii code>~" in given system
then first mapping is applied instead of second.

Example:

    :map B b
    :map BBB blimp!

and then

    BBB -> bbb

instead of

    BBB -> blimp!

Solution: force termcodes check if capital letter does not match.

closes: #15251

Signed-off-by: Oleg Goncharov <goncharovoi@yandex.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(zip): correctly extract file from zip browser
Damien [Tue, 23 Jul 2024 17:56:54 +0000 (19:56 +0200)] 
runtime(zip): correctly extract file from zip browser

Problem:  Enter 'x' in zip browser fail with E121
Solution: Fix typo in zip#Extract()

closes: #15321

Signed-off-by: Damien <141588647+xrandomname@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0610: filetype: OpenGL Shading Language files are not detected v9.1.0610
Gregory Anders [Mon, 22 Jul 2024 18:33:48 +0000 (20:33 +0200)] 
patch 9.1.0610: filetype: OpenGL Shading Language files are not detected

Problem:  filetype: OpenGL Shading Language files are not detected
Solution: detect various file extensions as GLSL filetype, include
          indent and syntax script, do no longer recognize '*.comp'
          as Mason filetype (Gregory Anders)

closes: #15317

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(netrw): Fix endless recursion in netrw#Explore()
Damien [Mon, 22 Jul 2024 18:23:48 +0000 (20:23 +0200)] 
runtime(netrw): Fix endless recursion in netrw#Explore()

Problem:  ':E /etc BOOM' give E132 error.
Solution: Avoid recursion call with same arguments.

fixes: #5723
closes: #15318

Signed-off-by: Damien <141588647+xrandomname@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0609: outdated comments in Makefile v9.1.0609
Shane Harper [Mon, 22 Jul 2024 18:09:26 +0000 (20:09 +0200)] 
patch 9.1.0609: outdated comments in Makefile

Problem:  outdated comments in Makefile
Solution: update outdated comments, update rule for vimtags
          (Shane Harper)

related: commit b81109192f

Here are the changes and the reasons for them:

- Delete the comment preceding the assignment to VIMPROG. Since b81109192f
  there's no need for VIMPROG to be set to something else when this is executed
  from src/Makefile. (The comment was wrong anyway; VIMPROG was being set to
  "$$BUILD_DIR/$(VIMTARGET)".)

```
    # Set to $(VIMTARGET) when executed from src/Makefile.
     VIMPROG = ../../src/vim
```

- Delete "`and installed`" in the following comment; The vimtags rule doesn't
  require that Vim has been installed.

```
    # Use Vim to generate the tags file.  Can only be used when Vim has been
    # compiled and installed.  Supports multiple languages.
    vimtags: $(DOCS)
```

- With commit b81109192f there is no longer a need to set VIMPROG here:

```
       -@BUILD_DIR="`pwd`"; cd $(HELPSOURCE); if test -z "$(CROSS_COMPILING)"; then \
               $(MAKE) VIMPROG="$$BUILD_DIR/$(VIMTARGET)" vimtags; fi
```

The new code below will use the same vim executable as the old code:
```
       -@cd $(HELPSOURCE); if test -z "$(CROSS_COMPILING)"; then \
               $(MAKE) vimtags; fi
```

- Delete the following comment which was related to setting VIMPROG as it no longer has any value:
```
       # We can assume Vim was build, but it may not have been installed,
       # thus use the executable in the current directory.
```
Note: this comment used to be (unnecessarily) echoed to the terminal (because
      it was indented) when making installrtbase.

closes: #15320

Signed-off-by: Shane Harper <shane@shaneharper.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(mysql): update syntax script
Yinzuo Jiang [Sun, 21 Jul 2024 07:27:27 +0000 (09:27 +0200)] 
runtime(mysql): update syntax script

Problem:

- `syn region ...`s in syntax/mysql.vim match function names inaccurately.
- no syntax rules for mysql window function.
- coarse highlight definition in syntax/mysql.vim.

Solution:

- add `\<` before the function name for accuracy.
- add syntax rules for mysql window function.
- enhance the highlight definition.

closes: #15311

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(yaml): Fix flow mapping key detection
itchyny [Sun, 21 Jul 2024 07:21:20 +0000 (09:21 +0200)] 
runtime(yaml): Fix flow mapping key detection

fixes: #15196
closes: #15313

Signed-off-by: itchyny <itchyny@cybozu.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(yaml): Remove orphaned YAML syntax dump files
itchyny [Sat, 20 Jul 2024 11:32:24 +0000 (13:32 +0200)] 
runtime(yaml): Remove orphaned YAML syntax dump files

closes: #15312

Signed-off-by: itchyny <itchyny@cybozu.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0608: Coverity warns about a few potential issues v9.1.0608
Christian Brabandt [Sat, 20 Jul 2024 11:26:44 +0000 (13:26 +0200)] 
patch 9.1.0608: Coverity warns about a few potential issues

Problem:  Coverity warns about a few potential issues
Solution: Fix those issues (see details below)

1) Fix overflow warning in highlight.c
   This happens because we are comparing int with long
   and assign a potential long value to an int, which
   could cause an overflow. So add some casts to ensure
   the value fits into an int.

2) Fix Overflow warning in shift_line().
   This happens because we are performing a division/modulo
   operation of a long type by an int type and assign the result
   to an int, which could then overflow. So before performing
   the operation, trim the long to value to at most max int value,
   so that it can't overflow.

3) Fix overflow warning in syn_list_cluster in syntax.c
   This is essential the same issue as 1)

4) not checking the return value of vim_mkdir() in spellfile.c
   Creating the spell directory could fail. Handle this case
   and return early in this case.

5) qsort() may deref a NULL pointer when fuzzy match does not
   return a result. Fix this by checking that the accessed growarray
   fuzzy_indices actually contains  data. If not we can silently skip
   the qsort() and related logic.

closes: #15284

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(kconfig): Update syntax script and remove syn sync
Christian Brabandt [Sat, 20 Jul 2024 10:20:51 +0000 (12:20 +0200)] 
runtime(kconfig): Update syntax script and remove syn sync

fixes: #15306

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoINSTALL: remove outdated notice about statically linked executable
Joey Pabalinas [Sat, 20 Jul 2024 10:07:30 +0000 (12:07 +0200)] 
INSTALL: remove outdated notice about statically linked executable

closes: #15308

Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0607: termdebug: uses inconsistent style v9.1.0607
Ubaldo Tiberi [Sat, 20 Jul 2024 10:00:44 +0000 (12:00 +0200)] 
patch 9.1.0607: termdebug: uses inconsistent style

Problem:  termdebug: uses inconsistent style
Solution: termdebug: deprecate numeric values for v:true/false,
          fix white space style in the plugin
          (Ubaldo Tiberi)

closes: #15304

Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@google.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0606: tests: generated files may cause failure in test_codestyle v9.1.0606
Ken Takata [Sat, 20 Jul 2024 09:55:13 +0000 (11:55 +0200)] 
patch 9.1.0606: tests: generated files may cause failure in test_codestyle

Problem:  tests: generated files may cause failure in test_codestyle
Solution: Exclude OLE-related generated files from style checks.
          (Ken Takata)

Some OLE-related auto-generated files may contain space errors:
https://ci.appveyor.com/project/chrisbra/vim-win32-installer/builds/50248542/job/w45ve9yd6qmmws8t#L11475
```
From test_codestyle.vim:
Found errors in Test_source_files():
command line..script C:/projects/vim-win32-installer/vim/src/testdir/runtest.vim[607]..function RunTheTest[57]..Test_source_files[8]..<SNR>8_PerformCheck[11]..<SNR>8_ReportError line 2: ../dlldata.c line 2: trailing white space
command line..script C:/projects/vim-win32-installer/vim/src/testdir/runtest.vim[607]..function RunTheTest[57]..Test_source_files[8]..<SNR>8_PerformCheck[11]..<SNR>8_ReportError line 2: ../iid_ole.c line 12: trailing white space
command line..script C:/projects/vim-win32-installer/vim/src/testdir/runtest.vim[607]..function RunTheTest[57]..Test_source_files[6]..<SNR>8_PerformCheck[11]..<SNR>8_ReportError line 2: ../if_ole.h line 60: space before Tab
command line..script C:/projects/vim-win32-installer/vim/src/testdir/runtest.vim[607]..function RunTheTest[57]..Test_source_files[8]..<SNR>8_PerformCheck[11]..<SNR>8_ReportError line 2: ../if_ole.h line 10: trailing white space
```

Exclude them from style checking.

closes: #15309

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0605: internal error with fuzzy completion v9.1.0605
glepnir [Fri, 19 Jul 2024 14:45:05 +0000 (16:45 +0200)] 
patch 9.1.0605: internal error with fuzzy completion

Problem:  internal error with fuzzy completion
          (techntools)
Solution: only fuzzy complete the pattern after directory separator
          (glepnir)

fixes: #15287
closes: #15291

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0604: popup_filter during Press Enter prompt seems to hang v9.1.0604
Ernie Rael [Fri, 19 Jul 2024 14:37:09 +0000 (16:37 +0200)] 
patch 9.1.0604: popup_filter during Press Enter prompt seems to hang

Problem:  popup_filter during Press Enter prompt seems to hang
Solution: Return early, when need_wait_return is set
          (Ernie Rael)

fixes: #15300
closes: #15301

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agotranslatoin(tr): Update Serbian messages translation
Ivan Pešić [Fri, 19 Jul 2024 14:31:43 +0000 (16:31 +0200)] 
translatoin(tr): Update Serbian messages translation

closes: #15302

Signed-off-by: Ivan Pešić <27575106+eevan78@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0603: filetype: use correct extension for Dracula v9.1.0603
Evgeni Chasnovski [Fri, 19 Jul 2024 13:59:29 +0000 (15:59 +0200)] 
patch 9.1.0603: filetype: use correct extension for Dracula

Problem:  pattern detection for Dracula language uses "*lvs" and "*lpe".
          as there is no dot, those are not treated as extensions which
          they should (judging by 'runtime/syntax/dracula.vim' and
          common sense).
Solution: use "*.lvs" and "*.lpe" patterns (Evgeni Chasnovski)

closes: #15303

Signed-off-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0602: filetype: Prolog detection can be improved v9.1.0602
igna_martinoli [Thu, 18 Jul 2024 19:34:36 +0000 (21:34 +0200)] 
patch 9.1.0602: filetype: Prolog detection can be improved

Problem:  filetype: Prolog detection can be improved
Solution: update the prolog detection regex
          (igna_martinoli)

related: #10835
related: #15206
closes: #15253

Co-authored-by: clason <c.clason@uni-graz.at>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: igna_martinoli <ignamartinoli@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): fix more inconsistencies in assert function docs
zeertzjq [Thu, 18 Jul 2024 19:16:05 +0000 (21:16 +0200)] 
runtime(doc): fix more inconsistencies in assert function docs

related: https://github.com/vim/vim/pull/15280#issuecomment-2233771449

closes: #15285

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0601: Wrong cursor position with 'breakindent' when wide char doesn't fit v9.1.0601
zeertzjq [Thu, 18 Jul 2024 19:13:31 +0000 (21:13 +0200)] 
patch 9.1.0601: Wrong cursor position with 'breakindent' when wide char doesn't fit

Problem:  Wrong cursor position with 'breakindent' when a double-width
          character doesn't fit in a screen line (mikoto2000)
Solution: Include the width of the 'breakindent' properly.
          (zeertzjq)

fixes: #15289
closes: #15290

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

Match :map ( RHS properly.

Only match ! after :map, :noremap, :unmap and :mapclear.

closes: #15297

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0600: Unused function and unused error constants v9.1.0600
Dominique Pellé [Thu, 18 Jul 2024 18:40:28 +0000 (20:40 +0200)] 
patch 9.1.0600: Unused function and unused error constants

Problem:  unused function typval_compare_class() and error constants
Solution: remove function typval_compare_class() and ifdef out
          unused error constants (Dominique Pellé)

closes: #15299

Signed-off-by: Dominique Pellé <dominique.pelle@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0599: Termdebug: still get E1023 when specifying arguments v9.1.0599
zeertzjq [Thu, 18 Jul 2024 18:35:42 +0000 (20:35 +0200)] 
patch 9.1.0599: Termdebug: still get E1023 when specifying arguments

Problem:  Termdebug: still get E1023 when specifying arguments and using
          a prompt buffer.
Solution: Use empty() instead of len().  Add a test.  Fix wrong order of
          arguments to assert_equal() in Test_termdebug_basic().
          (zeertzjq)

closes: #15288

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(mermaid): correct wrong comment options
Christian Brabandt [Thu, 18 Jul 2024 18:32:04 +0000 (20:32 +0200)] 
runtime(mermaid): correct wrong comment options

fixes: #15279

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): fix typo "a xterm" -> "an xterm"
Christian Brabandt [Wed, 17 Jul 2024 18:41:48 +0000 (20:41 +0200)] 
runtime(doc): fix typo "a xterm" -> "an xterm"

related: #15278

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0598: fuzzy completion does not work with default completion v9.1.0598
glepnir [Wed, 17 Jul 2024 18:32:54 +0000 (20:32 +0200)] 
patch 9.1.0598: fuzzy completion does not work with default completion

Problem:  fuzzy completion does not work with default completion
Solution: Make it work (glepnir)

closes: #15193

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0597: KeyInputPre cannot get the (unmapped typed) key v9.1.0597
Shougo Matsushita [Wed, 17 Jul 2024 18:25:22 +0000 (20:25 +0200)] 
patch 9.1.0597: KeyInputPre cannot get the (unmapped typed) key

Problem:  KeyInputPre cannot get the (unmapped typed) key
          (after v9.1.0563)
Solution: Add the "typedchar" property to the v:event dict
          (Shougo Matsushita)

closes: #15231

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0596: filetype: devscripts config files are not recognized v9.1.0596
Wu, Zhenyu [Wed, 17 Jul 2024 18:18:10 +0000 (20:18 +0200)] 
patch 9.1.0596: filetype: devscripts config files are not recognized

Problem:  filetype: Debian devscripts config files are not recognized
Solution: detect devscripts.conf and .devscripts files as sh filetype
          (sourced by /bin/sh)

closes: #15227

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(termdebug): gdb file/folder check is now performed only in CWD.
Ubaldo Tiberi [Wed, 17 Jul 2024 18:16:02 +0000 (20:16 +0200)] 
runtime(termdebug): gdb file/folder check is now performed only in CWD.

closes: #15268

Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@google.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
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>