]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
2 years agopatch 9.0.1737: Calling a base class method through an extended class fails v9.0.1737
Yegappan Lakshmanan [Sat, 19 Aug 2023 09:26:42 +0000 (11:26 +0200)] 
patch 9.0.1737: Calling a base class method through an extended class fails

Problem: Calling a base class method through an extended class fails
Solution: Create lookup table for member index in the interface to
          to the member class implementing the interface

Create additional tests for Vim9 classes.  Fix unconvered memory leaks
and crashes found by the new tests.

closes: #12848
closes: #12089

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>author
2 years agoRuntime: Update Italian Translation
Antonio Giovanni Colombo [Sat, 19 Aug 2023 09:14:23 +0000 (11:14 +0200)] 
Runtime: Update Italian Translation

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Antonio Giovanni Colombo <azc100@gmail.com>
2 years agopatch 9.0.1736: Github Actions times out after 20 minutes v9.0.1736
Christian Brabandt [Thu, 17 Aug 2023 23:18:22 +0000 (01:18 +0200)] 
patch 9.0.1736: Github Actions times out after 20 minutes

Problem: Github Actions times out after 20 minutes
Solution: Increase the timeout to 25 minutes

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agoAdd TODO, FIXME to Haskell syntax file (#8055)
Bruno-366 [Thu, 17 Aug 2023 22:04:54 +0000 (00:04 +0200)] 
Add TODO, FIXME to Haskell syntax file (#8055)

Adding TODO, XXX, FIXME to Haskell syntax file #8054

2 years agobindzone runtime: add new DNS record types (#7351)
Stuart Henderson [Thu, 17 Aug 2023 22:04:24 +0000 (23:04 +0100)] 
bindzone runtime: add new DNS record types (#7351)

Recognize some newer DNS record types - CAA (RFC8659, certificate authority authorization), OPENPGPKEY (RFC7929), SMIMEA (RFC8162). Sort SSHFP alphabetically while there.

2 years agoKeywords 'of' and 'yield' for Javascript. (#7873)
Yuri Klimov [Thu, 17 Aug 2023 22:03:23 +0000 (01:03 +0300)] 
Keywords 'of' and 'yield' for Javascript. (#7873)

* Keyword 'of' in for...of statement.

* Keyword 'yield' for generator function.

2 years agopatch 9.0.1735: Rename completion specific findex var v9.0.1735
zeertzjq [Thu, 17 Aug 2023 21:57:05 +0000 (23:57 +0200)] 
patch 9.0.1735: Rename completion specific findex var

Problem: Rename completion specific findex var
Solution: Move "findex" static variable to xp_selected in expand_T

closes: #12548

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1734: :runtime completion fails for multiple args v9.0.1734
zeertzjq [Thu, 17 Aug 2023 21:48:58 +0000 (23:48 +0200)] 
patch 9.0.1734: :runtime completion fails for multiple args

Problem: :runtime completion fails for multiple args
Solution: Make it work

closes: #12616

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1733: CI: cannot cache linux-modules-extra v9.0.1733
Philip H [Thu, 17 Aug 2023 21:45:08 +0000 (23:45 +0200)] 
patch 9.0.1733: CI: cannot cache linux-modules-extra

Problem: CI: cannot cache linux-modules-extra
Solution: Enable caching and reduce failed downloads

closes: #12779

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com>
2 years agopatch 9.0.1732: vimexpr: shadowing variable v9.0.1732
Christian Brabandt [Thu, 17 Aug 2023 21:34:09 +0000 (23:34 +0200)] 
patch 9.0.1732: vimexpr: shadowing variable

Problem: vimexpr: shadowing variable
Solution: Rename local variable

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1731: blockwise Visual highlight not working with virtual text v9.0.1731
zeertzjq [Thu, 17 Aug 2023 21:21:40 +0000 (23:21 +0200)] 
patch 9.0.1731: blockwise Visual highlight not working with virtual text

Problem: blockwise Visual highlight not working with virtual text
Solution: Reset the correct variable at the end of virtual selection and
          Check for double-width char inside virtual text.

closes: #12606

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agoman.vim: Recognise hyphenated-at-eol cross-references (#12609)
goweol [Thu, 17 Aug 2023 21:13:29 +0000 (06:13 +0900)] 
man.vim: Recognise hyphenated-at-eol cross-references (#12609)

Manual pages requested for output may undergo formatting
arranged by some roff-descendant program. Lines longer
than MANWIDTH or COLUMNS or real-estate width of a device
(with support for horizontal scrolling considered) can be
divided at either blank characters and/or at groups of word
characters (syllables) according to supported hyphenation
rules (although page authors are free to disable hyphenation
or prevent particular words from being hyphenated).

Groff‘s manual describes it as follows:

    5.1.2 Hyphenation

    Since the odds are not great for finding a set of words, for
    every output line, which fit nicely on a line without
    inserting excessive amounts of space between words, gtroff
    hyphenates words so that it can justify lines without
    inserting too much space between words. It uses an internal
    hyphenation algorithm (a simplified version of the algorithm
    used within TeX) to indicate which words can be hyphenated
    and how to do so. When a word is hyphenated, the first part
    of the word is added to the current filled line being output
    (with an attached hyphen), and the other portion is added to
    the next line to be filled.

It would be expedient for autoload/dist/man.vim (along with
syntax/man.vim‘s highlighting and ftplugin/man.vim‘s Ctrl-],
\K mappings) to allow for hyphenation of cross-references
to manual pages.

For example,

  # Launch Vim [v9.0; patched: 1-1378, 1499] as follows:
  MANWIDTH=80 vim --not-a-term +MANPAGER '+Man man' '+/conv(1)' '+norm B'

  # Press Ctrl-] with cursor on _m_: "... use man‐
  # conv(1) directly."_______________________[^]
  #
  # (Man v2.11.2)

  # Launch Vim as follows:
  MANWIDTH=80 vim --not-a-term +MANPAGER '+Man git' '+/config(1)' '+norm B'

  # Press Ctrl-] with cursor on _g_: "... in git-
  # config(1) for a more ..."_______________[^]
  #
  # (Git v2.39.2)

Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
2 years agoman.vim: Uniformly place cursor at the same column with `Ctrl-t` (#12608)
goweol [Thu, 17 Aug 2023 21:12:42 +0000 (06:12 +0900)] 
man.vim: Uniformly place cursor at the same column with `Ctrl-t` (#12608)

Functions col and cursor count each tab (0x9) as a byte, and
are complementary. On the other hand, the | command motion
takes into consideration how many screen columns a tab does
occupy and may move cursor to a column closer to the start
of line than col would report at that position.

The provided changes prefer the cursor function to the | command.

Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
2 years agopatch 9.0.1730: passing multiple patterns to runtime not working v9.0.1730
zeertzjq [Thu, 17 Aug 2023 21:08:53 +0000 (23:08 +0200)] 
patch 9.0.1730: passing multiple patterns to runtime not working

Problem: passing multiple patterns to runtime not working
Solution: prepend prefix to each argument separately

closes: #12617

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1729: screenpos() wrong when w_skipcol and cpoptions+=n v9.0.1729
zeertzjq [Thu, 17 Aug 2023 20:58:53 +0000 (22:58 +0200)] 
patch 9.0.1729: screenpos() wrong when w_skipcol and cpoptions+=n

Problem:    screenpos() wrong result with w_skipcol and cpoptions+=n
Solution:   Use adjust_plines_for_skipcol() instead of subtracting
            w_skipcol.

closes: #12625

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1728: missing winid argument for virtcol() v9.0.1728
zeertzjq [Thu, 17 Aug 2023 20:55:25 +0000 (22:55 +0200)] 
patch 9.0.1728: missing winid argument for virtcol()

Problem: missing winid argument for virtcol()
Solution: Add a {winid} argument to virtcol()

Other functions col(), charcol() and virtcol2col() support a {winid}
argument, so it makes sense for virtcol() to also support than.

Also add test for virtcol2col() with 'showbreak' and {winid}.

closes: #12633

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1727: minor problems with the teapot v9.0.1727
Sean Dewar [Sat, 8 Jul 2023 09:35:19 +0000 (10:35 +0100)] 
patch 9.0.1727: minor problems with the teapot

Problem: minor problems with the teapot()
Solution: remove the null check, update documentation

Update the builtin-function-list entry. (It implicitly returns 0, but such
functions usually use "none")

Also, tv_get_string_strict() can not return NULL, so remove that check

closes: #12647

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com>
2 years agopatch 9.0.1726: incorrect heights in win_size_restore() v9.0.1726
Sean Dewar [Thu, 17 Aug 2023 20:40:05 +0000 (22:40 +0200)] 
patch 9.0.1726: incorrect heights in win_size_restore()

Problem: incorrect heights in win_size_restore()
Solution: avoid restoring incorrect heights in win_size_restore()

Changing 'showtabline' or 'cmdheight' in the cmdwin restores incorrect
window heights after closing the cmdwin.

This may produce a gap between the cmdline and the window above.

Solution: restore window sizes only if the number of lines available for windows
changed; subtract the rows of the tabline, cmdline and last window's statusline
from 'lines' (other statuslines don't matter).

closes: #12704

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com>
2 years agopatch 9.0.1725: cursor pos wrong after concealed text with 'virtualedit' v9.0.1725
zeertzjq [Thu, 17 Aug 2023 20:35:26 +0000 (22:35 +0200)] 
patch 9.0.1725: cursor pos wrong after concealed text with 'virtualedit'

Problem:    Wrong cursor position when clicking after concealed text
            with 'virtualedit'.
Solution:   Store virtual columns in ScreenCols[] instead of text
            columns, and always use coladvance() when clicking.

This also fixes incorrect curswant when clicking on a TAB, so now
Test_normal_click_on_ctrl_char() asserts the same results as the ones
before patch 9.0.0048.

closes: #12808

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1724: vim9class constructor argument type checking bug v9.0.1724
h-east [Wed, 16 Aug 2023 12:49:54 +0000 (21:49 +0900)] 
patch 9.0.1724: vim9class constructor argument type checking bug

Problem: vim9class constructor argument type checking bug
Solution: fix it

closes: #12816

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: h-east <h.east.727@gmail.com>
2 years agoUpdate sr.po (#12820)
Ivan Pešić [Thu, 17 Aug 2023 20:28:59 +0000 (00:28 +0400)] 
Update sr.po (#12820)

2 years agoUse string interpolation (#12823)
Yegappan Lakshmanan [Thu, 17 Aug 2023 20:28:33 +0000 (13:28 -0700)] 
Use string interpolation (#12823)

2 years agopatch 9.0.1723: Fix regression in {func} argument of reduce() v9.0.1723
zeertzjq [Thu, 17 Aug 2023 20:15:47 +0000 (22:15 +0200)] 
patch 9.0.1723: Fix regression in {func} argument of reduce()

Problem: Fix regression in {func} argument of reduce()
Solution: pass function name as string again

Before patch 9.0.0548, passing a string as {func} argument of reduce()
is treated as a function name, but after patch 9.0.0548 it is treated as
an expression instead, which is useless as reduce() doesn't set any v:
variables. This PR restores the behavior of {func} before that patch.

Also correct an emsg() call, as e_string_list_or_blob_required doesn't
contain format specifiers.

closes: #12824

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1722: wrong error messages when passing wrong types to count() v9.0.1722
zeertzjq [Thu, 17 Aug 2023 20:10:40 +0000 (22:10 +0200)] 
patch 9.0.1722: wrong error messages when passing wrong types to count()

Problem: wrong error messages when passing wrong types to count()
Solution: fix it

This fixes two problems:
1. When passing wrong type to {ic} argument of count(), two error
   messages are given, the second of which is misleading.
2. When passing wrong type to {comp} argument of count(), the error
   message doesn't mention that {comp} may be a String.

closes: #12825

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1721: Build failure on Windows with dynamic lua v9.0.1721
zeertzjq [Tue, 15 Aug 2023 23:29:28 +0000 (07:29 +0800)] 
patch 9.0.1721: Build failure on Windows with dynamic lua

Problem: Build failure on Windows with dynamic lua (after 9.0.1719)
Solution: move definition further down in if_lua

closes: #12811
closes: #12814
closes: #12818

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1720: Vim9 class using wrong index for overridden method v9.0.1720
Yegappan Lakshmanan [Wed, 16 Aug 2023 18:14:37 +0000 (20:14 +0200)] 
patch 9.0.1720: Vim9 class using wrong index for overridden method

Problem: Vim9 class using wrong index for overridden method
Solution: Use correct index for overridden method

closes: #12524
closes: #12813

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2 years agoUpdate FreeBASIC syntax file (#12781)
dkearns [Tue, 15 Aug 2023 21:23:40 +0000 (07:23 +1000)] 
Update FreeBASIC syntax file (#12781)

2 years agozh_CN: update to use reordering (#12787)
依云 [Tue, 15 Aug 2023 21:22:48 +0000 (05:22 +0800)] 
zh_CN: update to use reordering (#12787)

2 years agopatch 9.0.1719: if_lua: crash for for Lua functions invoked via Vim callbacks v9.0.1719
Jesse Pavel [Mon, 14 Aug 2023 02:05:45 +0000 (22:05 -0400)] 
patch 9.0.1719: if_lua: crash for for Lua functions invoked via Vim callbacks

Problem: if_lua: crash for Lua functions invoked via Vim callbacks
Solution: Use Lua registry rather than upvalues for udata cache

closes: #12785

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Jesse Pavel <jpavel@alum.mit.edu>
2 years agopatch 9.0.1718: dict-completion does not respect region v9.0.1718
LemonBoy [Tue, 15 Aug 2023 21:07:55 +0000 (23:07 +0200)] 
patch 9.0.1718: dict-completion does not respect region

Problem: dict-completion does not respect region
Solution: respect selected region in dict completion

Set do_region to zero as we don't want a complete dump of the matching
words, we want the code to filter them according to the user's selected
region.

closes: #12792
closes: #7025

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: LemonBoy <thatlemon@gmail.com>
2 years agoThe keyboard layout "russian-typograph" has been updated to version 3.3 (#12796)
Restorer [Tue, 15 Aug 2023 21:06:18 +0000 (21:06 +0000)] 
The keyboard layout "russian-typograph" has been updated to version 3.3 (#12796)

Co-authored-by: RestorerZ <restorer@mail2k.ru>
2 years agoUpdate syntax/muttrc.vim to latest mutt (#12797)
lunasophia [Tue, 15 Aug 2023 21:05:36 +0000 (17:05 -0400)] 
Update syntax/muttrc.vim to latest mutt (#12797)

Nothing complicated, just lots of tedium keeping the lines wrapped at
reasonable lengths.

2 years agoUpdate syntax/fortran.vim (#12798)
Ajit-Thakkar [Tue, 15 Aug 2023 21:05:00 +0000 (18:05 -0300)] 
Update syntax/fortran.vim (#12798)

Several small improvements including better discrimination of "real" used as a type and as an intrinsic

2 years agopatch 9.0.1717: virtcol2col returns last byte of a multi-byte char v9.0.1717
Yegappan Lakshmanan [Tue, 15 Aug 2023 21:01:44 +0000 (23:01 +0200)] 
patch 9.0.1717: virtcol2col returns last byte of a multi-byte char

Problem: virtcol2col returns last byte of a multi-byte char
Solution: Make it return the first byte for a multi-byte char

closes: #12786
closes: #12799

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2 years agopatch 9.0.1716: Windows build with python 3.12 and clang fails v9.0.1716
Zdenek Dohnal [Tue, 15 Aug 2023 20:52:01 +0000 (22:52 +0200)] 
patch 9.0.1716: Windows build with python 3.12 and clang fails

Problem: Windows build with python 3.12 and clang fails
Solution: Remove the PyBool_Type function pointer for python 3.12

Clang on Win doesn't like non-static functions in static struct with
Python 3.12 - removing the new obfuscated function and protecting the
old PyBool function for older Pythons fixes the issue.

closes: #12800

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Zdenek Dohnal <zdohnal@redhat.com>
2 years agopatch 9.0.1715: duplicate test in message_test.c v9.0.1715
zeertzjq [Tue, 15 Aug 2023 20:48:40 +0000 (22:48 +0200)] 
patch 9.0.1715: duplicate test in message_test.c

Problem: duplicate test in message_test.c
Solution: Remove duplicate test and make functions static

closes: #12803

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1714: getcompletion() "cmdline" fails after :autocmd v9.0.1714
zeertzjq [Tue, 15 Aug 2023 20:41:53 +0000 (22:41 +0200)] 
patch 9.0.1714: getcompletion() "cmdline" fails after :autocmd

Problem:  getcompletion() "cmdline" fails after :autocmd
Solution: Use set_cmd_context() instead of set_one_cmd_context().

closes: #12804

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1713: Github CI fails to load snd-dummy kernel module v9.0.1713
Zdenek Dohnal [Tue, 15 Aug 2023 20:34:45 +0000 (22:34 +0200)] 
patch 9.0.1713: Github CI fails to load snd-dummy kernel module

Problem: Github CI fails to load snd-dummy kernel module
Solution: Make installation of linux-modules-extra optional

linux-modules-extra package are not available on Ubuntu 22 at the
moment, which breaks CI runs. The change make its installation
conditional as the original `if-else` structure tried to do.

closes: #12801

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Zdenek Dohnal <zdohnal@redhat.com>
2 years agopatch 9.0.1712: missing null check in object_clear() 12757/head v9.0.1712
Jia-Ju Bai [Sun, 13 Aug 2023 18:04:04 +0000 (20:04 +0200)] 
patch 9.0.1712: missing null check in object_clear()

Problem: missing null check in object_clear()
Solution: Add null check of cl

closes: #12627

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Jia-Ju Bai <baijiaju@buaa.edu.cn>
2 years agopatch 9.0.1711: dead code in charset.c v9.0.1711
zeertzjq [Mon, 3 Jul 2023 14:00:04 +0000 (22:00 +0800)] 
patch 9.0.1711: dead code in charset.c

Problem: dead code in charset.c
Solution: remove it

linetabsize_col() calls init_chartabsize_arg() with 0 as "lnum", so
cts.cts_has_prop_with_text is always FALSE.

closes: #PR

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1710: scrolloff options work slightly different v9.0.1710
Christian Brabandt [Sun, 13 Aug 2023 17:43:42 +0000 (19:43 +0200)] 
patch 9.0.1710: scrolloff options work slightly different

Problem: sidescrolloff and scrolloff options work slightly
         different than other global-local options
Solution: Make it behave consistent for all global-local options

It was noticed, that sidescrolloff and scrolloff options behave
differently in comparison to other global-local window options like
'listchars'

So make those two behave like other global-local options. Also add some
extra documentation for a few special local-window options.

Add a few tests to make sure all global-local window options behave
similar

closes: #12956
closes: #12643

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1709: dynamic build with python 3.12 breaks v9.0.1709
Zdenek Dohnal [Sun, 13 Aug 2023 17:37:09 +0000 (19:37 +0200)] 
patch 9.0.1709: dynamic build with python 3.12 breaks

Problem: dynamic build with python 3.12 breaks
Solution: if_python3.c: Fix building dynamic Python3 interpreter

There are new extern global variables defined in python3 development
files, which types are within python3 library, so they break dynamic
python3 interpret Vim plugin.

Since the variables are used in macro `Py_SIZE` which is used in other
python3 headers, the dummy variables have to defined before including
Python.h.

closes: #12660

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Zdenek Dohnal <zdohnal@redhat.com>
2 years agopatch 9.0.1708: getcompletion() failes for user-defined commands v9.0.1708
Christian Brabandt [Mon, 17 Jul 2023 18:09:37 +0000 (20:09 +0200)] 
patch 9.0.1708: getcompletion() failes for user-defined commands

Problem: getcompletion() failes for user-defined commands
Solution: set context for completion function

closes: #12681
closes: #12680

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1707: Cannot wrap around in popup_filter_menu() v9.0.1707
Christian Brabandt [Sun, 13 Aug 2023 17:25:28 +0000 (19:25 +0200)] 
patch 9.0.1707: Cannot wrap around in popup_filter_menu()

Problem: Cannot wrap around in popup_filter_menu()
Solution: Allow to wrap around by default

Currently, it is not possible, to wrap around at the end of the list
using e.g. down (and go back to the top) or up at the beginning of the
list and go directly to the last item. This is not consistent behaviour
with e.g. how the pum-menu currently works, so let's just allow this.

Also adjust tests about it.

closes: #12689
closes: #12693

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1706: typos in the xxd manpage v9.0.1706
Matthias Braun [Sun, 13 Aug 2023 17:20:35 +0000 (19:20 +0200)] 
patch 9.0.1706: typos in the xxd manpage

Problem: typos in the xxd manpage
Solution: Fix typos and formatting

closes: #12645

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Matthias Braun <mb720@users.noreply.github.com>
2 years agoruntime: Remove Brams email in indent/README.txt
Christian Brabandt [Sun, 13 Aug 2023 16:17:21 +0000 (18:17 +0200)] 
runtime: Remove Brams email in indent/README.txt

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1705: cursor position wrong when clicking on an unprintable char v9.0.1705
zeertzjq [Sun, 13 Aug 2023 16:11:05 +0000 (18:11 +0200)] 
patch 9.0.1705: cursor position wrong when clicking on an unprintable char

Problem:  cursor position wrong when clicking on an unprintable char
Solution: Don't update prev_ptr when wlv.n_extra is not zero.

closes: #12664

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1704: Cannot use positional arguments for printf() v9.0.1704
Christ van Willegen [Sun, 13 Aug 2023 16:03:14 +0000 (18:03 +0200)] 
patch 9.0.1704: Cannot use positional arguments for printf()

Problem: Cannot use positional arguments for printf()
Solution: Support positional arguments in string formatting

closes: #12140

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
2 years agoruntime: Add a few more remarks about Bram and new runtime files
Christian Brabandt [Sun, 13 Aug 2023 15:53:07 +0000 (17:53 +0200)] 
runtime: Add a few more remarks about Bram and new runtime files

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1703: Vim9 Calling a method in an extended class fails v9.0.1703
Yegappan Lakshmanan [Sun, 13 Aug 2023 15:41:26 +0000 (17:41 +0200)] 
patch 9.0.1703: Vim9 Calling a method in an extended class fails

Problem: Vim9 Calling a method in an extended class fails
Solution: use method index directly

closes: #12778

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2 years agoruntime(pymanifest): fix mistake in syntax definition
ObserverOfTime [Sun, 13 Aug 2023 08:36:28 +0000 (10:36 +0200)] 
runtime(pymanifest): fix mistake in syntax definition

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2 years agoFarewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt [Sun, 13 Aug 2023 08:33:05 +0000 (10:33 +0200)] 
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)

* Dedicate upcoming Vim 9.1 to Bram

Also replace in a few more places Brams email address and mention new
maintainers.

* Remove Bram from any Maintainer role

* runtime: Align Header

* it's mailing list not mailinglist

2 years agopatch 9.0.1702: Undo test is flaky v9.0.1702
zeertzjq [Sun, 13 Aug 2023 08:29:26 +0000 (10:29 +0200)] 
patch 9.0.1702: Undo test is flaky

Problem:  Undo test is flaky.
Solution: Apply filter and change time to "1 second ago" in both dumps.

closes: #12771

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agoAdd syntax & ftplugin for pymanifest (#12773)
ObserverOfTime [Sun, 13 Aug 2023 08:26:20 +0000 (11:26 +0300)] 
Add syntax & ftplugin for pymanifest (#12773)

2 years agoUpdate iss syntax file (#11890)
ObserverOfTime [Sun, 13 Aug 2023 08:25:41 +0000 (11:25 +0300)] 
Update iss syntax file (#11890)

- Add 'ExternalSize:' parameter
- Add 'setntfscompression' files flag
- Fix escaped left brace highlight
- Fix 'String:' parameter highlight
- Remove trailing whitespace

2 years agopatch 9.0.1701: vim9 crash when class member overridden v9.0.1701
Yegappan Lakshmanan [Sun, 13 Aug 2023 08:19:38 +0000 (10:19 +0200)] 
patch 9.0.1701: vim9 crash when class member overridden

Problem: vim9 crash when class member overridden
Solution: Use method_count field instead

closes: #12676
closes: #12677

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2 years agopatch 9.0.1700: Cannot compile with dynamic perl < 5.38 v9.0.1700
K.Takata [Sun, 13 Aug 2023 08:15:05 +0000 (10:15 +0200)] 
patch 9.0.1700: Cannot compile with dynamic perl < 5.38

Problem: Cannot compile with dynamic perl < 5.38 (after 9.0.1681)
Solution: Fix if_perl/dyn from perl 5.32 to 5.38

closes: #12755

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: K.Takata <kentkt@csc.jp>
2 years agopatch 9.0.1699: compile warning for xdiff/xutils on MS-Windows v9.0.1699
Mike Williams [Sat, 12 Aug 2023 18:47:43 +0000 (20:47 +0200)] 
patch 9.0.1699: compile warning for xdiff/xutils on MS-Windows

Problem: compile warning for xdiff/xutils on MS-Windows
Solution: add explicit type cast from size_t to long

closes: #12531

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Mike Williams <mikew@globalgraphics.com>
2 years agopatch 9.0.1698: Test_map_restore_sid fails in GUI v9.0.1698
zeertzjq [Sat, 12 Aug 2023 08:31:27 +0000 (16:31 +0800)] 
patch 9.0.1698: Test_map_restore_sid fails in GUI

Problem: Test_map_restore_sid fails in GUI
Solution: Feed an unsimplified Ctrl-B

closes: #12770

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1697: incsearch test not sufficient v9.0.1697
Christ van Willegen [Sat, 12 Aug 2023 18:17:26 +0000 (20:17 +0200)] 
patch 9.0.1697: incsearch test not sufficient

Problem: incsearch test not sufficient (after 9.0.1691)
Solution: add an additional test

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
2 years agopatch 9.0.1696: sodium_mlock may still fail in CI v9.0.1696
Christian Brabandt [Sat, 12 Aug 2023 07:41:23 +0000 (09:41 +0200)] 
patch 9.0.1696: sodium_mlock may still fail in CI

Problem: sodium_mlock may still fail in CI
Solution: Catch E1230 in testscript and skip test

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1695: Crash with overlong textprop above v9.0.1695
Christian Brabandt [Fri, 11 Aug 2023 22:14:14 +0000 (00:14 +0200)] 
patch 9.0.1695: Crash with overlong textprop above

Problem: Crash with overlong textprop above
Solution: Consider only positive padding

closes: #12665
closes: #12661

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1694: wrong mapping applied when replaying a char search v9.0.1694
zeertzjq [Fri, 11 Aug 2023 22:09:31 +0000 (00:09 +0200)] 
patch 9.0.1694: wrong mapping applied when replaying a char search

Problem: wrong mapping applied when replaying a char search
Solution: Store a NOP after the ESC

closes: #12708
closes: #6350

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1693: Ctrl-Q not handled like Ctrl-V in replace mode v9.0.1693
Christian Brabandt [Fri, 11 Aug 2023 22:03:57 +0000 (00:03 +0200)] 
patch 9.0.1693: Ctrl-Q not handled like Ctrl-V in replace mode

Problem: Ctrl-Q not handled like Ctrl-V in replace mode
Solution: Handle Ctrl-Q like Ctrl-V

closes: #12686
closes: #12684

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1692: Android not handling AI_V4MAPPED ai_flag v9.0.1692
cions [Fri, 11 Aug 2023 21:53:13 +0000 (23:53 +0200)] 
patch 9.0.1692: Android not handling AI_V4MAPPED ai_flag

Problem: Android not handling AI_V4MAPPED ai_flag
Solution: don't set AI_V4MAPPED flag when on Android, since
          Android's getaddrinfo returns EAI_BADFLAGS if ai_flags
          contains it

closes: #12613

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: cions <gh.cions@gmail.com>
2 years agopatch 9.0.1691: wrong viewport restored for incsearch and smoothscroll v9.0.1691
zeertzjq [Fri, 11 Aug 2023 21:48:27 +0000 (23:48 +0200)] 
patch 9.0.1691: wrong viewport restored for incsearch and smoothscroll

Problem: wrong viewport restored for incsearch and smoothscroll
Solution: Save and restore skipcol as well

closes: #12713

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agopatch 9.0.1690: popup_create() not aborting on errors v9.0.1690
Christian Brabandt [Fri, 11 Aug 2023 21:42:02 +0000 (23:42 +0200)] 
patch 9.0.1690: popup_create() not aborting on errors

Problem: popup_create() not aborting on errors
Solution: check for errors in arguments given and abort if an error
          occurred

closes: #12711

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 years agopatch 9.0.1689: python 3.12 produces warnings and fails test v9.0.1689
Zdenek Dohnal [Fri, 11 Aug 2023 21:32:23 +0000 (23:32 +0200)] 
patch 9.0.1689: python 3.12 produces warnings and fails test

Problem: python 3.12 produces warnings and fails test
Solution: Make use of raw strings in python3 tests

closes: #12765

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Zdenek Dohnal <zdohnal@redhat.com>
2 years agopatch 9.0.1688: cannot store custom data in quickfix list v9.0.1688
Tom Praschan [Fri, 11 Aug 2023 21:26:12 +0000 (23:26 +0200)] 
patch 9.0.1688: cannot store custom data in quickfix list

Problem: cannot store custom data in quickfix list
Solution: add `user_data` field for the quickfix list

closes: #11818

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Tom Praschan <13141438+tom-anders@users.noreply.github.com>
2 years agopatch 9.0.1687: mapset() not properly handling script ID v9.0.1687
zeertzjq [Fri, 11 Aug 2023 21:15:38 +0000 (23:15 +0200)] 
patch 9.0.1687: mapset() not properly handling script ID

Problem: mapset() not properly handling script ID
Solution: replace_termcodes() may accept a script ID

closes: #12699
closes: #12697

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years ago.cirrus.yml: skip pkg update for FreeBSD 13.1 (#12767)
Philip H [Fri, 11 Aug 2023 21:10:02 +0000 (23:10 +0200)] 
.cirrus.yml: skip pkg update for FreeBSD 13.1 (#12767)

2 years agoAdd commentstring for nix file format (#12696)
Keith Smiley [Fri, 11 Aug 2023 21:07:50 +0000 (14:07 -0700)] 
Add commentstring for nix file format (#12696)

2 years agopatch 9.0.1686: undotree() only works for the current buffer v9.0.1686
Devin J. Pohly [Mon, 24 Apr 2023 01:26:59 +0000 (20:26 -0500)] 
patch 9.0.1686: undotree() only works for the current buffer

Problem:    undotree() only works for the current buffer
Solution:   Add an optional "buffer number" parameter to undotree().  If
            omitted, use the current buffer for backwards compatibility.

closes: #4001
closes: #12292

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: Devin J. Pohly <djpohly@gmail.com>
2 years agopatch 9.0.1685: silence Python 3.11 depreciations for gcc v9.0.1685
Philip H [Fri, 11 Aug 2023 20:38:48 +0000 (22:38 +0200)] 
patch 9.0.1685: silence Python 3.11 depreciations for gcc

Problem: Python 3.11 interface throws deprecation warnings
Solution: ignore those warnings for gcc and clang

Python 3.11 deprecation warnings are already silenced for clang using
the pragma
```
 # pragma clang diagnostic ignored "-Wdeprecated-declarations"
```

However those warnings are also emitted when using gcc. To avoid them
for both compilers, change use the __GNUC__ ifdef, which is defined for
gcc as well as clang.

Additionally, instead of using the "clang diagnostic ignored" pragma,
let's make use of 'GCC diagnostic ignored' which is again supported by
clang and GCC

closes: #12610

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com>
2 years agopatch 9.0.1684: Update libvterm to rev 839 v9.0.1684
zeertzjq [Tue, 8 Aug 2023 03:03:00 +0000 (11:03 +0800)] 
patch 9.0.1684: Update libvterm to rev 839

Problem: libvterm slightly outdated
Solution: Update libvterm from rev 818 to rev 839

Notable fix: libvterm now handles DECSM/DECRM with multiple arguents,
so several ncurses programs (e.g. nnn) can enable mouse properly when
run in Vim's terminal in XTerm.

closes: #12746

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2 years agoUpdate CODEOWNERS (#12760)
dkearns [Fri, 11 Aug 2023 17:30:55 +0000 (03:30 +1000)] 
Update CODEOWNERS (#12760)

2 years agoUpdate my name and email in runtime files (#12763)
Lily Ballard [Fri, 11 Aug 2023 17:30:27 +0000 (10:30 -0700)] 
Update my name and email in runtime files (#12763)

2 years agoUpdate syntax/dosini.vim to the latest version (#12764)
Hong Xu [Fri, 11 Aug 2023 17:29:20 +0000 (10:29 -0700)] 
Update syntax/dosini.vim to the latest version (#12764)

The latest version is in https://github.com/xuhdev/syntax-dosini.vim/blob/master/syntax/dosini.vim. I've sent the file to Bram at the end of June, unfortunately it wasn't able to make into the Vim repository. RIP!

2 years agoUpdate the vimscript code for restoring cursor position
Dragan Simic' via vim_dev [Wed, 9 Aug 2023 15:23:58 +0000 (17:23 +0200)] 
Update the vimscript code for restoring cursor position

Using xxd(1) to filter and edit binary files causes the input files
to have dual nature, so to speak, which effectively makes restoring
the cursor position broken.  Fix that by ignoring the "xxd" file type
in the code that restores the cursor position.

Interactive rebasing in git causes files to be edited in vim, which,
similarly to commit messages, are rarely the same as the last one
edited.  Thus, also add "gitrebase" to the list of file types for
which the cursor position isn't restored.

While there, refactor the code a bit to possibly save a few CPU cycles
and to keep the line lengths in check, and use the long form of the
commands and variables, to make the code slightly more consistent and
more understandable to newcomers.

Update the relevant comments in the code and the associated parts of
the documentation, to keep them in sync with the updated code.

Remove some redundant trailing whitespace as well, as spotted.

2 years agoImprove the vimscript code in ":h hex-editing"
Dragan Simic' via vim_dev [Wed, 9 Aug 2023 15:23:57 +0000 (17:23 +0200)] 
Improve the vimscript code in ":h hex-editing"

Save and restore the view position before and after saving the buffer,
respectively, to keep the current view of the xxd(1)'s hex dump
unchanged after doing ":w", which previously caused the window to
scroll back to the very beginning of the buffer.  I believe it's
needless to say how annoying and counterproductive that was.

Get rid of the "Press ENTER or type command to continue" message, which
was previously displayed after opening larger binary files.  The use
of "silent" and "redraw" commands is tailored specifically to avoid
screen flickering, e.g. when doing ":w", which is caused by the buffer
being filtered by an external command.

Increase the number of octets per line, produced by xxd(1), from the
default value of 16 to 32.  This puts bigger chunks of the hex dump
on the screen and makes the whole thing much more usable.

While there, reformat the code to make it more readable, and use the
long form of the commands and variables to make the code slightly more
consistent and more understandable to newcomers.

2 years agoUpdated runtime files v9.0.1683
Christian Brabandt [Thu, 10 Aug 2023 03:44:25 +0000 (05:44 +0200)] 
Updated runtime files

This is a collection of various PRs from github that all require a minor
patch number:

1) https://github.com/vim/vim/pull/12612

    Do not conflate dictionary key with end of block

2) https://github.com/vim/vim/pull/12729:

    When saving and restoring 'undolevels', the constructs `&undolevels` and
    `:set undolevels` are problematic.

    The construct `&undolevels` reads an unpredictable value; it will be the
    local option value (if one has been set), or the global option value
    (otherwise), making it unsuitable for saving a value for later
    restoration.

    Similarly, if a local option value has been set for 'undolevels',
    temporarily modifying the option via `:set undolevels` changes the local
    value as well as the global value, requiring extra work to restore both
    values.

    Saving and restoring the option value in one step via the construct
    `:let &undolevels = &undolevels` appears to make no changes to the
    'undolevels' option, but if a local option has been set to a different
    value than the global option, it has the unintended effect of changing
    the global 'undolevels' value to the local value.

    Update the documentation to explain these issues and recommend explicit
    use of global and local option values when saving and restoring.  Update
    some unit tests to use `g:undolevels`.

3) https://github.com/vim/vim/pull/12702:

    Problem:    Pip requirements files are not recognized.
    Solution:   Add a pattern to match pip requirements files.

4) https://github.com/vim/vim/pull/12688:

    Add indent file and tests for ABB Rapid

5) https://github.com/vim/vim/pull/12668:

    Use Lua 5.1 numeric escapes in tests and add to CI

    Only Lua 5.2+ and LuaJIT understand hexadecimal escapes in strings.  Lua
    5.1 only supports decimal escapes:

    > A character in a string can also be specified by its numerical value
    > using the escape sequence \ddd, where ddd is a sequence of up to three
    > decimal digits. (Note that if a numerical escape is to be followed by a
    > digit, it must be expressed using exactly three digits.) Strings in Lua
    > can contain any 8-bit value, including embedded zeros, which can be
    > specified as '\0'.

    To make sure this works with Lua 5.4 and Lua 5.1 change the Vim CI to
    run with Lua 5.1 as well as Lua 5.4

6) https://github.com/vim/vim/pull/12631:

    Add hurl filetype detection

7) https://github.com/vim/vim/pull/12573:

    Problem:   Files for haskell persistent library are not recognized
    Solution:  Add pattern persistentmodels for haskell persistent library

closes: #12612
closes: #12729
closes: #12702
closes: #12688
closes: #12668
closes: #12631
closes: #12573

Co-authored-by: lacygoill <lacygoill@lacygoill.me>
Co-authored-by: Michael Henry <drmikehenry@drmikehenry.com>
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
Co-authored-by: KnoP-01 <knosowski@graeffrobotics.de>
Co-authored-by: James McCoy <jamessan@jamessan.com>
Co-authored-by: Jacob Pfeifer <jacob@pfeifer.dev>
Co-authored-by: Borys Lykah <lykahb@fastmail.com>
2 years agopatch 9.0.1682: sodium encryption is not portable v9.0.1682
Christian Brabandt [Tue, 11 Jul 2023 20:38:29 +0000 (22:38 +0200)] 
patch 9.0.1682: sodium encryption is not portable

Problem: crypt: sodium encryption is not portable
Solution: use little-endian byte order for sodium encrypted files

As mentioned in #12586, sodium encryption only works on little ending
architectures, because reading and writing the sodium encryption
parameters are stored in the encrypted files in an arch-dependent way.

This of course fails for big-endian architectures like s390.

So make sure to use little-endian byte order when reading and writing
sodium encrypted files.

fixes: #12586
closes: 12655

2 years agoUpdate krl and add rapid syntax files (#12750)
Patrick Meiser-Knosowski [Wed, 9 Aug 2023 18:35:35 +0000 (20:35 +0200)] 
Update krl and add rapid syntax files (#12750)

2 years agoAdd security policy (#12687)
Santos Gallegos [Wed, 9 Aug 2023 18:11:37 +0000 (13:11 -0500)] 
Add security policy (#12687)

* Add security policy

Currently is hard to find where to report security issues,
the only mention of it is in the issue template.

https://github.com/vim/vim/blob/4c0089d696b8d1d5dc40568f25ea5738fa5bbffb/.github/ISSUE_TEMPLATE/bug_report.yml?plain=1#L12-L15

Adding a SECURITY.md file will make it easier to find,
it will be displayed in https://github.com/vim/vim/security.

* Mention that reports are private

2 years agodefaults.vim: Update comment to simplify reverting augroup
Balki [Fri, 14 Jul 2023 16:59:40 +0000 (16:59 +0000)] 
defaults.vim: Update comment to simplify reverting augroup

closes: #12673

2 years agopatch 9.0.1681: Build Failure with Perl 5.38 v9.0.1681
Philip H [Thu, 22 Jun 2023 06:55:47 +0000 (08:55 +0200)] 
patch 9.0.1681: Build Failure with Perl 5.38

Problem: Build Failure with Perl 5.38
Solution: Fix Build Failure

closes: #12543, closes: #12575

2 years agopatch 9.0.1680: sodium test fails in Github CI v9.0.1680
Christian Brabandt [Wed, 9 Aug 2023 14:32:28 +0000 (16:32 +0200)] 
patch 9.0.1680: sodium test fails in Github CI

Problem:    sodium test fails in Github CI
Solution:   Catch sodium_mlock() errors and do not error out

sodium_mlock() seems to fail consistently on the Github CI. Perhaps
[sodium_mlock()](https://libsodium.gitbook.io/doc/memory_management#text-locking-memory)
is called too often or with too much memory by the runners so
that this starts failing.

Let's just try to catch this and skip the test, when this starts
happening.

closes: #12751

2 years agoChange "the" to "then" under ':help bufload()' (#12662)
Daniel Steinberg [Wed, 9 Aug 2023 16:10:59 +0000 (12:10 -0400)] 
Change "the" to "then" under ':help bufload()' (#12662)

2 years agoManpager: apply g flag conditionally to s command (#12679)
Filip Gospodinov [Wed, 9 Aug 2023 16:00:36 +0000 (18:00 +0200)] 
Manpager: apply g flag conditionally to s command (#12679)

Problem: The `s` command with `g` flag only substitutes
         one occurrence when `gdefault` is set.
Solution: Use `g` flag conditionally.

2 years agoupdate matchit (#12611)
Christian Brabandt [Wed, 9 Aug 2023 15:39:53 +0000 (17:39 +0200)] 
update matchit (#12611)

2 years agoFix alignment in filetype.txt (#12618)
zeertzjq [Wed, 9 Aug 2023 15:39:05 +0000 (23:39 +0800)] 
Fix alignment in filetype.txt (#12618)

There are three spaces because the "<" is concealed.

2 years agofeat: recognize geojson extension as json filetype (#12636)
Dominique Pellé [Wed, 9 Aug 2023 15:36:40 +0000 (17:36 +0200)] 
feat: recognize geojson extension as json filetype (#12636)

2 years agoAdd filetype detection for eyaml files (#12659)
Max Gautier [Wed, 9 Aug 2023 15:18:36 +0000 (17:18 +0200)] 
Add filetype detection for eyaml files (#12659)

https://github.com/voxpupuli/hiera-eyaml/ uses and produces the eyaml
format, which is simply yaml with some encrypted values.

It's convenient to edit the file without decrypting when not touching
encrypted values (or when you don't have access to the decryption key),
which is why vim should treat those files as yaml files.

2 years agoHighlight editorconfig properties with dashes (#12691)
ObserverOfTime [Wed, 9 Aug 2023 15:05:39 +0000 (18:05 +0300)] 
Highlight editorconfig properties with dashes (#12691)

Problem: editorconfig properties with dashes are not highlighted
Solution: update the property pattern to include dashes

2 years agodetect filetype for `*.vsh` and `*.vv` files (#12692)
Turiiya [Wed, 9 Aug 2023 15:04:59 +0000 (17:04 +0200)] 
detect filetype for `*.vsh` and `*.vv` files (#12692)

Co-authored-by: Turiiya <34311583+tobealive@users.noreply.github.com>
2 years agoPyPA manifest files are not recognized (#12707)
ObserverOfTime [Wed, 9 Aug 2023 14:52:33 +0000 (17:52 +0300)] 
PyPA manifest files are not recognized (#12707)

Problem:    PyPA manifest files are not recognized.
Solution:   Add a pattern to match PyPA manifest files.

2 years agoUnison support (#12715)
Anton Parkhomenko [Wed, 9 Aug 2023 14:50:52 +0000 (21:50 +0700)] 
Unison support (#12715)

2 years agofeat(heex): borrow matchit support from html (#12717)
Chris Vincent [Wed, 9 Aug 2023 14:49:44 +0000 (09:49 -0500)] 
feat(heex): borrow matchit support from html (#12717)

* feat(heex): borrow matchit support from html

Makes % support behave the same in heex as in html. For example, quickly moving the cursor between opening and closing tags.

* Remove unnecessary line; define b:undo_ftplugin first

* Remove b:html_set_match_words

2 years agoAdd WebGPU Shading Language (WGSL) filetype (#12723)
Gergő Sályi [Wed, 9 Aug 2023 14:49:01 +0000 (16:49 +0200)] 
Add WebGPU Shading Language (WGSL) filetype (#12723)

The current W3C Working Draft for the WebGPU Shading Language (WGSL) specifies
'text/wgsl' media type for WGSL modules with the '.wgsl' file extension:
https://www.w3.org/TR/WGSL/#text-wgsl-media-type

It has also been registered at the Internet Assigned Numbers Authority (IANA):
https://www.iana.org/assignments/media-types/text/wgsl

Neovim's nvim-lspconfig already associates wgsl language servers
with 'filetype wgsl':
https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#wgsl_analyzer

However currenly setting 'filetype wgsl' for *.wgsl files by defalut in Neovim
is blocked by adding this filetype to the vim project first:
https://github.com/neovim/neovim/pull/23331

This commit adds this missing wgsl filetype.

2 years agoupdate .wast files syntax highlighting (#12741)
Linda_pp [Wed, 9 Aug 2023 14:45:52 +0000 (23:45 +0900)] 
update .wast files syntax highlighting (#12741)