Commit Graph
39 Commits
Author SHA1 Message Date
Christian ClasonandLukas Zapletal a785be9cc7 vim-patch:0acd3ab: runtime(sh): better function support for bash/zsh in indent script
closes: vim/vim#16052

https://github.com/vim/vim/commit/0acd3abfadf54a97a3cad999791603aa6a8b2248

Co-authored-by: Lukas Zapletal <lzap+git@redhat.com>
2024-11-15 09:32:15 +01:00
Christian ClasonandYinzuo Jiang 28e2e8aa04 vim-patch:c0f7505: runtime(lua): add/subtract a 'shiftwidth' after '('/')' in indentexpr
Problem:

- Current lua indentexpr does not indent for '(' ')'.
- Missing indent test for lua.

Solution:

- Match '(', ')' in `function GetLuaIndentIntern`.
- Add an indent test for lua.

closes: vim/vim#15364

https://github.com/vim/vim/commit/c0f7505edeb36bf3e19386f276cafad7cba717a2

Co-authored-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
2024-08-04 19:00:10 +02:00
Christian ClasonandYinzuo Jiang 1b5a394ffd vim-patch:011f222: 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: vim/vim#15387

https://github.com/vim/vim/commit/011f2223e5df68f45a382f6a9dff6eaf5ecac346

Co-authored-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
2024-07-30 10:39:43 +02:00
3d948a4dc4 vim-patch:9.0.1683: Updated runtime files (#24638)
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: vim/vim#12612
closes: vim/vim#12729
closes: vim/vim#12702
closes: vim/vim#12688
closes: vim/vim#12668
closes: vim/vim#12631
closes: vim/vim#12573

Already ported but wasn't marked: vim-patch:ad34abee2583

https://github.com/vim/vim/commit/6efb1980336ff324e9c57a4e282530b952fca816

Co-authored-by: Christian Brabandt <cb@256bit.org>
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>
2023-08-10 17:45:36 +08:00
zeertzjqandichizok a24dd0392b vim-patch:9.0.1580: CI: indent test hangs on FreeBSD (#23768)
Problem:    CI: indent test hangs on FreeBSD.
Solution:   Set 'nomore' when running the indent tests. (Ozaki Kiichi,
            closes vim/vim#12446)

https://github.com/vim/vim/commit/9f3afe7a70d50447424b8d7404aae0d641cd827c

Co-authored-by: ichizok <gclient.gaap@gmail.com>
2023-05-26 22:13:42 +08:00
Christian ClasonandBram Moolenaar c11986ed1a vim-patch:b7398fe41c9e (#23627)
Update runtime files

https://github.com/vim/vim/commit/b7398fe41c9e1e731d058105a34158871ee83e3f

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-05-15 09:38:32 +02:00
Christian ClasonandBram Moolenaar c4942880be vim-patch:partial:f1dcd14fc5d4 (#21602)
Update runtime files

https://github.com/vim/vim/commit/f1dcd14fc5d4370476cd82895a4479ca2d252e54

missing autocmd blocks and getscriptinfo()

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-01-01 15:00:39 +01:00
Christian Clason 4bf005e9fd vim-patch:partial 0daafaa7d99e (#20083)
Update runtime files
https://github.com/vim/vim/commit/0daafaa7d99ef500f76b1b12f5fe8153e2fcaea0

skip vim9script ftplugin
create userfunc.txt from Neovim content (skip section 3, needs 9.0.0379)
2022-09-06 08:57:53 +02:00
Christian Clason d3cd79709b vim-patch:fd999452adaf (#19929)
Update runtime files
https://github.com/vim/vim/commit/fd999452adaf529a30d78844b5fbee355943da29
2022-08-25 00:49:33 +02:00
Christian ClasonandSean Dewar 1cc4706e94 vim-patch:e80086446cc2 (#19848)
* vim-patch:e80086446cc2

Update runtime files
https://github.com/vim/vim/commit/e80086446cc20856ed8359bc8dc87c4d430da4c8

Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com>
2022-08-20 10:04:55 +02:00
Christian Clason a5e846b996 vim-patch:partial: 48c3f4e0bff7 (#19684)
vim-patch:partial:48c3f4e0bff7

Update runtime files
https://github.com/vim/vim/commit/48c3f4e0bff7efd289a7001b68c777b6f89a7057

partially skip `options.txt` (needs 9.0.0138)
2022-08-09 10:43:28 +02:00
Christian Clason 4cbeedf57b vim-patch:b529cfbd04c0 (#19501)
Update runtime files
https://github.com/vim/vim/commit/b529cfbd04c02e31cfa88f2c8d88b5ff532d4f7d
2022-07-26 11:26:23 +02:00
Christian Clason 823d9e0af1 vim-patch:a57b553b4328 (#19076)
Update runtime files
https://github.com/vim/vim/commit/a57b553b432855667c9f26edfad95ccfdd24a6b7
2022-06-24 14:45:07 +02:00
Sean Dewar 0d3f17a6c3 vim-patch:partial:d899e5112079 (#18474)
Update runtime files
https://github.com/vim/vim/commit/d899e51120798d3fb5420abb1f19dddf3f014d05

- Skip vimhelp.vim stuff (syntax/help.vim, syntax.txt; v8.2.4891).
- Skip :let heredoc eval stuff (eval.txt; v8.2.4770).
- Skip uk.cp1251.po.
- Skip `*hl-CurSearch*` change (syntax.txt):
  - Vim's CurSearch works differently (Nvim's uses current cursor pos).
    Dunno know how applicable the redrawing comment is to Nvim...
  - Might be preferred to move it under `*hl-Search*` like Vim?
2022-05-08 10:15:36 +01:00
Christian Clason e6d62d5a3d vim-patch:8.2.4857: Yaml indent for multiline is wrong (#18365)
Problem:    Yaml indent for multiline is wrong.
Solution:   Adjust patterns. (closes vim/vim#10328, closes vim/vim#8740)
https://github.com/vim/vim/commit/f4f579b46b27f5e1689912a3e84c6a2a96efd143
2022-05-02 13:57:33 +02:00
Christian Clason 0124a7bfa9 vim-patch:75ab590f8504 (#18170)
Update runtime files
https://github.com/vim/vim/commit/75ab590f8504a8912ca0b8c58f6b897bb7a34f07

omit builtin.txt change to `expand()` (depends on 8.2.4726)
2022-04-19 15:14:17 +02:00
Christian Clason bddce4b0ff vim-patch:c4573eb12dba (#17258)
Update runtime files
https://github.com/vim/vim/commit/c4573eb12dba6a062af28ee0b8938d1521934ce4
2022-01-31 18:09:51 +01:00
Christian Clason e31652879e vim-patch:partial 53f7fccc9413 (#15631)
* vim-patch:partial 53f7fccc9413

Update runtime files
https://github.com/vim/vim/commit/53f7fccc9413c9f770694b56f40f242d383b2d5f

omit macros/hanoi/hanoi.vim
omit spell/tet/main.aap
omit tools/shtags.1
omit tools/xcmdsrv_client.c

skip doc/pattern.txt (requires 8.2.3110; 8.2.{1665,1872})
skip doc/map.txt (requires 8.2.3228)
2021-09-11 16:47:45 +02:00
Jan Edmund Lazo 2081504a33 vim-patch:942db23c9cb7
Update runtime files
https://github.com/vim/vim/commit/942db23c9cb7532d68048530d749eb84ca94d0cd

Omit po files.
2021-05-01 23:47:11 -04:00
Jan Edmund Lazo ac83c6eba6 vim-patch:e0e391755432
Update runtime files.
https://github.com/vim/vim/commit/e0e3917554327f2524066f89fbbef9c83c1535da
2021-05-01 23:19:58 -04:00
Jan Edmund Lazo dd2bc06411 vim-patch:82be4849eed0
Update runtime files.
https://github.com/vim/vim/commit/82be4849eed0b8fbee45bc8da99b685ec89af59a
2021-05-01 23:19:57 -04:00
Jan Edmund Lazo 27fb03f5a0 vim-patch:7ff78465f705
Update runtime files
https://github.com/vim/vim/commit/7ff78465f7057a672a6de0d75d56286da253501b
2021-04-28 23:04:14 -04:00
Jan Edmund Lazo 7c6ca6fed8 vim-patch:73fef33014db
Update runtime files
https://github.com/vim/vim/commit/73fef33014dbf21fc59e7e47fb091117868d82fb

Omit usr_46.txt.
2021-04-28 22:14:37 -04:00
Jan Edmund Lazo 565783be4b vim-patch:acc224064033
Update runtime files
https://github.com/vim/vim/commit/acc224064033e5cea21ef7f1eefb356ca06ff11d

Omit 'quickfixtextfunc'.
Omit ftplugin/man.vim.
2021-04-28 21:29:57 -04:00
Jan Edmund Lazo 65821cc1b9 vim-patch:388a5d4f20b4
Update runtime files
https://github.com/vim/vim/commit/388a5d4f20b4b64341d1604aa238cab85827b892

Omit vim9.
2021-04-28 21:29:57 -04:00
Jan Edmund Lazo d227c22f00 vim-patch:32b364fcc097
Runtime file updates.
https://github.com/vim/vim/commit/32b364fcc09749f35adb441b81291e1e5946dbc2
2021-04-27 09:21:31 -04:00
Jan Edmund Lazo d4b65fa6fb vim-patch:1ff14ba24c4d
Update runtime files.
https://github.com/vim/vim/commit/1ff14ba24c4d85c008d7abe5e140dbb497ffea8d
2021-04-27 09:21:28 -04:00
Jan Edmund Lazo f0bf853f41 vim-patch:2e693a88b24d
Update runtime files.
https://github.com/vim/vim/commit/2e693a88b24dc6b12883fad78ff2cb9cd4469c98
2021-04-27 09:21:28 -04:00
Jan Edmund Lazo 03cc818fdc vim-patch:8.2.0705: indent tests don't run on CI for FreeBSD
Problem:    Indent tests don't run on CI for FreeBSD.
Solution:   Set modeline. (Ozaki Kiichi, closes vim/vim#6048)
https://github.com/vim/vim/commit/3657686a0e8fd07428a25c2cf9efcc8b5d33f895
2020-05-11 22:30:24 -04:00
Daniel Hahler 660b452440 vim-patch:8.1.2056: "make test" for indent files doesn't cause make to fail
Problem:    "make test" for indent files doesn't cause make to fail.
Solution:   Exit the script with ":cquit". (Daniel Hahler, closes vim/vim#4949)
https://github.com/vim/vim/commit/cd67059c0c3abf1e28aa66458abdf6f338252eb2
2019-09-18 22:59:13 +02:00
Daniel Hahler 0e75a9eead Update runtime/indent/testdir to latest Vim runtime
Several runtime updates ignored the non-existing files.
2019-09-18 22:59:13 +02:00
Daniel Hahler 48b2d21d5e vim-patch:8.1.1213: "make clean" in top dir does not cleanup indent test output
Problem:    "make clean" in top dir does not cleanup indent test output.
Solution:   Clean the indent test output.  Do not rely on the vim executable
            for that. (closes vim/vim#4307)
https://github.com/vim/vim/commit/e13a3901cae0afb4d2af30d497696af08029fd81
2019-09-18 22:46:47 +02:00
Daniel Hahler 10c050caf9 vim-patch:8.1.0599: without the +eval feature the indent tests don't work
Problem:    Without the +eval feature the indent tests don't work.
Solution:   Skip the body of the tests.
https://github.com/vim/vim/commit/eeed665b0ecd917e88e3475c9615d52546aa124d
2019-09-18 22:38:37 +02:00
Daniel Hahler b466f0e114 vim-patch:8.1.0545: when executing indent tests user preferences interfere
Problem:    When executing indent tests user preferences interfere.
Solution:   Add "--clean".
https://github.com/vim/vim/commit/dc2f73a6980be13c97a83047d0de50824bc0f20f
2019-09-18 22:37:54 +02:00
Daniel Hahler 7f59f5b104 vim-patch:8.1.0496: no tests for indent files
Problem:    No tests for indent files.
Solution:   Add a mechanism for running indent file tests.  Add a first test
            for Vim indenting.
https://github.com/vim/vim/commit/c0fe4978f2311be9a0221d4c2369251c719b399a
2019-09-18 22:37:25 +02:00
Justin M. Keyes 2cdbbe50a4 vim-patch:63b74a8362b1
Update runtime files.
https://github.com/vim/vim/commit/63b74a8362b14576b21d342dc424d0396ca8ea27
2019-08-01 22:48:28 +02:00
Justin M. Keyes aa680f6acb vim-patch:9d87a37ee9d8
Update runtime files.
https://github.com/vim/vim/commit/9d87a37ee9d87f5bdbc779bc940d5f1e6f055d0a
2019-07-29 20:50:07 +02:00
Justin M. Keyes c8f34a9a3e vim-patch:d47d52232bf2
Update runtime files.
https://github.com/vim/vim/commit/d47d52232bf21036c5c89081458be7eaf2630d24
2019-07-29 20:50:07 +02:00
Justin M. Keyes ab2cfd24e7 vim-patch:b730f0c7ba36
Update runtime files
https://github.com/vim/vim/commit/b730f0c7ba36492d795f081b19bbcb85cdf0f50f
2019-07-29 20:50:07 +02:00