summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-09-17patch 9.0.1904: Cirrus-CI fails because we have used all creditsv9.0.1904dundargoc
Problem: Cirrus-CI fails because we have used all credits Solution: Remove FreeBSD 13.1 and MacOS M1 Cirrus CI has started introducing monthly limits. Vim has exceeded the monthly limit which means our CI unfortunately starts to fail. So let's remove some CI tasks, so that in the future we won't run out of credits so fast. closes: #13108 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: dundargoc <gocdundar@gmail.com>
2023-09-17doc(INSTALLpc): mention additional packages for msys2Christian Brabandt
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-16patch 9.0.1903: CI fails because snd-dummy modules missingv9.0.1903Christian Brabandt
Problem: Github Actions fails because snd-dummy modules missing in current runner images Solution: ignore modprobe error related: actions/runner-images#8295 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-16runtime(man): Man plugin does not respect 'gdefault'Yee Cheng Chin
Fix the issue introduced by #12557. `:substitute` commands in plugins need to take into account whether `gdefault` is set or not because that depends on the user. closes: #13097 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-16patch 9.0.1902: Vim9: Coverity complains about dead codev9.0.1902Yegappan Lakshmanan
Problem: Vim9: Coverity complains about dead code Solution: Copy only object methods from the super class to a subclass when extending a class. Fix Coverity warning. closes: #13103 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-09-16patch 9.0.1901: win32: not correctly freeing environmentv9.0.1901Ken Takata
Problem: win32: not correctly freeing environment Solution: After we call GetEnvironmentStringsW, we should call FreeEnvironmentStringsW closes: #13096 closes: #13094 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ken Takata <kentkt@csc.jp>
2023-09-16patch 9.0.1900: Configure script uses non-portable == comparisonv9.0.1900Yee Cheng Chin
Problem: Configure script uses non-portable == comparison Solution: Use the standard and portable "=" instead closes: #13095 closes: #13099 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
2023-09-15patch 9.0.1899: potential buffer overflow in PBYTE macrov9.0.1899Christian Brabandt
Problem: potential buffer overflow in PBYTE macro Solution: Check returned memline length closes: #13083 the PBYTE macro is used to put byte c at a position lp of the returned memline. However, in case of unexpected errors ml_get_buf() may return either "???" or an empty line in which case it is quite likely that we are causing a buffer overrun. Therefore, switch the macro PBYTE (which is only used in ops.c anyhow) to a function, that verifies that we will only try to access within the given length of the buffer. Also, since the macro is only used in ops.c, move the definition from macros.h to ops.c Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-15patch 9.0.1898: Vim9: restrict access to static varsv9.0.1898Yegappan Lakshmanan
Problem: Vim9: restrict access to static vars and methods Solution: Class members are accesible only from the class where they are defined. Based on the #13004 discussion, the following changes are made: 1) Static variables and methods are accessible only using the class name and inside the class where they are defined. 2) Static variables and methods can be used without the class name in the class where they are defined. 3) Static variables of a super class are not copied to the sub class. 4) A sub class can declare a class variable with the same name as the super class. 5) When a method or member is found during compilation, use more specific error messages. This aligns the Vim9 class variable/method implementation with the Dart implementation. Also while at it, ignore duplicate class and object methods. The access level of an object method can however be changed in a subclass. For the tests, use the new CheckSourceFailure() function instead of the CheckScriptFailure() function in the tests. closes: #13086 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-09-15runtime(vim): Highlight all :loadkeymap abbreviations in vim syntax (#13092)dkearns
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-15runtime(forth): Fix :unlet error in ftplugin (#13090)dkearns
Fixes #13089. Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-12runtime(help): Updated documentation on editorconfigChristian Brabandt
Add a small section about the distributed Editorconfig plugin at :h usr_05.txt just below the matchit plugin. While editing that help document, also add a bit of more documentation about standard plugins and local help file additions. Regenerate $VIMRUNTIME/doc/tags file with all the new tags from the rust runtime files. While at it, update the Editorconfig help page (and re-generate the helptags file). closes: #13078 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-12runtime(swayconfig): improve syntax highlighting (#13060)Josef Litoš
* syntax(swayconfig): improved highlighting * syntax(swayconfig): adapt to i3config structure Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-12runtime(rust): sync rust runtime files with upstream (#13075)Gregory Anders
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-12runtime(i3config): syntax structure cleanup (#13080)Josef Litoš
* syntax(i3config): improved i3config highlighting * syntax(i3config): refactor structure Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-11runtime(doc): documentation updatesChristian Brabandt
This is a collection of various improvements to the help pages closes #12790 Co-authored-by: Houl <anwoku@yahoo.de> Co-authored-by: Doug Kearns <dougkearns@gmail.com> Co-authored-by: Adri Verhoef <a3@a3.xs4all.nl> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-11syntax(i3config): improved i3config highlighting (#13054)Josef Litoš
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-11patch 9.0.1897: Vim9: confusing error with .= in compiled functionsv9.0.1897Christian Brabandt
Problem: Vim9: confusing error with .= in compiled functions Solution: Check in error condition, if .= was attempted and in that case give a different error message. closes: #12972 closes: #13066 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-11patch 9.0.1896: "below" virtual text doesn't work with 'rightleft'v9.0.1896zeertzjq
Problem: "below" virtual text doesn't work with 'rightleft'. Solution: Use column from right border with 'rightleft'. closes: #13071 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-09-11patch 9.0.1895: Vim9: finding object method/member is inefficientv9.0.1895Ernie Rael
Problem: Vim9: finding method/member is inefficient Solution: Use lookups closes: #13073 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ernie Rael <errael@raelity.com>
2023-09-11runtime(doc): Add g:c_syntax_for_h to filetype-overrule docsDoug Kearns
closes: #13074 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-11CI: Bump actions/checkout from 3 to 4 (#13072)dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-10patch 9.0.1894: CI: trailing whitespace in testsv9.0.1894Christian Brabandt
Problem: CI: trailing white space in tests Solution: clean up the trailing white space Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-10patch 9.0.1893: CI: strptime test fails on BSD14v9.0.1893Christian Brabandt
Problem: CI: strptime test fails on BSD14 Solution: Skip the test Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-10patch 9.0.1892: CI: no FreeBSD 14 supportv9.0.1892Philip H
Problem: CI: no FreeBSD 14 support Solution: Drop support for FreeBSD 12, add FreeBSD 14 closes: #13059 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com>
2023-09-10runtime(masm): add support for AVX-2 and AVX-512 (#13061)Wu Yongwei
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-10patch 9.0.1891: No runtime support for Mojov9.0.1891Mahmoud Abduljawad
Problem: No runtime support for Mojo Solution: Add basic filetype and syntax plugins closes: #13062 closes: #13063 Signed-off-by: Christian Brabandt <cb@256bit.org> Signed-off-by: Doug Kearns <dougkearns@gmail.com> Co-authored-by: Mahmoud Abduljawad <mahmoud@masaar.com>
2023-09-10patch 9.0.1890: Vim9: lookup code for class/object repaeatedv9.0.1890Yegappan Lakshmanan
Problem: Vim9: lookup code for class/object repaeated Solution: Refactor and make use of lookup functions closes: #13067 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-09-10runtime(scala): Fix Scala highlighting string literal as type param (#13070)Emil Ejbyfeldt
Since https://docs.scala-lang.org/sips/42.type.html which is implemented in Scala 2.13 and in Scala 3 it possible to use string literals as singleton types. So code like ``` someFunc["abc"] ``` is valid. Currently this code is not hightlighted correctly and worse if there is an unclosed `(` in the string it breaks the formating in the rest of the file. I also submitted this patch to the mentioned project for this runtime file: https://github.com/derekwyatt/vim-scala/pull/173 But there are no commits there over the last 2 years and no response in the week since I created it. Also the last change to the Scala syntax file: https://github.com/vim/vim/pull/9594 is yet to be backported to that repo. Therefore I am opening this PR as well to get some feedback on how to proceed to get this fixed. Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-10patch 9.0.1889: Vim9 static tests failv9.0.1889Yegappan Lakshmanan
Problem: Vim9 static tests fail Solution: Fix tests, make CI happy ;) closes: #13064 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-09-09runtime(nasm): updated syntax fileAndrii Sokolov
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-09patch 9.0.1888: Vim9: Problem trying to invoke class methodv9.0.1888Yegappan Lakshmanan
Problem: Vim9: Problem trying to invoke class method Solution: Lookup the class method insider other classes closes: #13055 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-09-09patch 9.0.1887: Vim9: class members are accessible via objectv9.0.1887Yegappan Lakshmanan
Problem: Vim9: class members are accessible via object Solution: Disable class member variable access using an object Class methods can be accessed only using the class name and cannot be accessed using an object. To be consistent with this, do the same for class member variables also. They can be accessed only using the class name and not using an object. closes: #13057 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-09-09patch 9.0.1886: Various Typosv9.0.1886Christian Brabandt
Problem: Various Typos Solution: Fix Typos This is a collection of typo related commits. closes: #12753 closes: #13016 Co-authored-by: Adri Verhoef <a3@a3.xs4all.nl> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Viktor Szépe <viktor@szepe.net> Co-authored-by: nuid64 <lvkuzvesov@proton.me> Co-authored-by: Meng Xiangzhuo <aumo@foxmail.com> Co-authored-by: Dominique Pellé <dominique.pelle@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-08patch 9.0.1885: Vim9: no support for abstract methodsv9.0.1885Yegappan Lakshmanan
Problem: Vim9: no support for abstract methods Solution: Add support for defining abstract methods in an abstract class closes: #13044 closes: #13046 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-09-08runtime(tohtml): Update TOhtml to version 9.0v2 (#13050)fritzophrenic
Modified behavior: - Change default value of g:html_use_input_for_pc from "fallback" to "none". This means with default settings, only the standards-based method to make special text unselectable is used. The old method relying on unspecified browser behavior for <input> tags is now only used if a user specifically enables it. - Officially deprecate g:use_xhtml option (in favor of g:html_use_xhtml) by issuing a warning message when used. Bugfixes: - Fix issue #8547: LineNr and other special highlight groups did not get proper style rules defined when using "hi link". - Fix that diff filler was not properly added for deleted lines at the end of a buffer. Other: - Refactored function definitions from long lists of strings to use :let-heredoc variable assignment instead. - Corrected deprecated "." string concatenation operator to ".." operator in more places. Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-08patch 9.0.1884: Wrong order of arguments for error messagesv9.0.1884Christ van Willegen
Problem: Wrong order of arguments for error messages Solution: Reverse order or arguments for e_aptypes_is_null_nr_str closes: #13051 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
2023-09-08runtime(perl): Update ftplugin and indent files (#13052)dkearns
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-08patch 9.0.1883: Vim9: Calling an interface method using a child object failsv9.0.1883Yegappan Lakshmanan
Problem: Vim9: Calling an interface method using a child object fails Solution: Search methods of parent class When a class implementing an interface is extended by another class and a child class instance is passed to a function that accepts the interface, calling an interface method doesn't work properly. closes: #13053 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-09-06runtime(doc): update help tags fileChristian Brabandt
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-06patch 9.0.1882: Trailing white space in testsv9.0.1882Christian Brabandt
Problem: Trailing white space in tests Solution: Delete it This causes test_codestyle to fail, so we need to remove it again. Hopefully that makes the CI green again. Note: I will start using annotated tags from now on. Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-06patch 9.0.1881: Test_crash fails on Macv9.0.1881Christian Brabandt
Problem: Test_crash fails on Mac Solution: Skip test on Mac Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-06patch 9.0.1880: Vim9: Need more tests for inheritancev9.0.1880Ernie Rael
Problem: Vim9: Need more tests for inheritance Solution: Add access tests and fixes. `inside_class` fix from yegappan. `object_index_from_itf_index` fix access of member on class extending class implementing interface. Based on tests from Vim9: Class/Object member variable access control #12979 closes: #13032 related: #12979 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ernie Rael <errael@raelity.com> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-09-06runtime: don't execute external commands when loading ftpluginsChristian Brabandt
This is a followup to 816fbcc262687b81fc46f82f7bbeb1453addfe0c (patch 9.0.1833: [security] runtime file fixes) It basically disables that external commands are run on loading of the filetype plugin, **unless** the user has set the `g:plugin_exec = 1` global variable in their configuration or for a specific filetype the variable g:<filetype>_exec=1. There are a few more plugins, that may execute system commands like debchangelog, gitcommit, sh, racket, zsh, ps1 but those do at least do not run those commands by default during loading of the filetype plugin (there the command is mostly run as convenience for auto-completion or to provide documentation lookup). closes: #13034 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Tim Pope <vim@tpope.org>
2023-09-06patch 9.0.1879: Vim9: incorrect duplicate class member detectionv9.0.1879Yegappan Lakshmanan
Problem: Vim9: incorrect duplicate class member detection Solution: Incorrect duplicate class member detection when variable names have the same prefix. Not able to access class member variables using an object. Fix coding style issues closes: #13042 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-09-06patch 9.0.1878: tests running sh have problemsv9.0.1878Philip H
Problem: tests running sh have problems Solution: Check that dash is installed closes: #13040 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com> Co-authored-by: Christian Brabandt <cb@256bit.org>
2023-09-06patch 9.0.1877: missing test for patch 9.0.1873v9.0.1877Christian Brabandt
Problem: missing test for patch 9.0.1873 Solution: add a test trying to exchange windows Add a test, making sure that switching windows is not allowed when textlock is active, e.g. when running `:s/<pat>/\=func()/` Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-05runtime(ftplugin): allow to exec if curdir is in PATHAnton Sharonov
In case the current directory is present as valid $PATH entry, it is OK to call the program from it, even if vim curdir is in that same directory. (Without that patch, for instance, you will not be able to open .zip files while your current directory is /bin) closes: #13027 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-05Filelist: Add missing directory `crash` (#13036)zdohnal
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-05patch 9.0.1876: Vim9: parsing commands with newlines wrongv9.0.1876Christian Brabandt
Problem: Vim9: parsing commands with newlines wrong Solution: Accept a '\n' for parsing lists and command arguments closes: #13015 closes: #13020 Signed-off-by: Christian Brabandt <cb@256bit.org>