summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2024-06-22patch 9.1.0514: Vim9: issue with comparing objects recursivelyv9.1.0514LemonBoy
Problem: Vim9: issue with comparing objects recursively (Yinzuo Jiang) Solution: only set recursive == TRUE, when called from tv_equal(), not from typeval_compare_object(), refactor code into object_equal() function (LemonBoy) The recursive flag in tv_equal should be set only when the caller is tv_equal, meaning that the comparison depth is > 1. The comparison predicates for other object types are all following this rule, except for the object one, and that may cause some weird issues like causing the max depth limit not to be initialized in some cases. closes: #15076 Signed-off-by: LemonBoy <thatlemon@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-22runtime(termdebug): Change some variables to EnumsYinzuo Jiang
Problem: The types of some script variables in Termdebug can be changed for readability Solution: Change the type of some vars from string to `enum` (Yinzuo Jiang) closes: #15068 Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-22runtime(vim): Update base-syntax, fix function tail commentsDoug Kearns
Match Vim9-script comments after :def and :enddef and legacy-script comments after :func and :endfunc, in any definition context. Highlight incorrect comment types after these commands as errors. fixes: #15062 closes: #15072 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-22patch 9.1.0513: Vim9: segfault with object comparisonv9.1.0513Ernie Rael
Problem: Vim9: segfault with object comparisons Solution: increment recusive_cnt before calling typval_compare_object() (Ernie Rael) closes: #15073 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-21patch 9.1.0512: Mode message for spell completion doesn't match allowed keysv9.1.0512zeertzjq
Problem: Mode message for spell completion doesn't match allowed keys (Kyle Kovacs) Solution: Show "^S" instead of "s". (zeertzjq) This matches the code in vim_is_ctrl_x_key(): case CTRL_X_SPELL: return (c == Ctrl_S || c == Ctrl_P || c == Ctrl_N); fixes: neovim/neovim#29431 closes: #15065 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-21patch 9.1.0511: CursorMovedC triggered wrongly with setcmdpos()v9.1.0511zeertzjq
Problem: CursorMovedC triggered wrongly with setcmdpos() (after v9.1.0507) Solution: Remove the premature triggering. Also don't trigger when cursor didn't move. (zeertzjq) closes: #15064 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-21runtime(scheme): update runtime filesEvan Hanson
Add TODO highlighting, disable text-wrapping, add "define-library" to lispwords on CHICKEN. Update MAINTAINERS. closes: #15063 Signed-off-by: Evan Hanson <evhan@foldling.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-21patch 9.1.0510: CI: test_gettext fails on MacOS14 + MSVC Winv9.1.0510Christian Brabandt
Problem: CI: test_gettext fails on MacOS14 + MSVC Win (after v9.1.0509) Solution: Skip the test for now related: #12447 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-20patch 9.1.0509: not possible to translate Vim script messagesv9.1.0509Christ van Willegen
Problem: not possible to translate Vim script messages (RestorerZ) Solution: implement bindtextdomain() and gettext() to support Vim script message translations (Christ van Willegen) fixes: #11637 closes: #12447 Signed-off-by: Christ van Willegen <cvwillegen@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-20patch 9.1.0508: termdebug plugin can be further improvedv9.1.0508Ubaldo Tiberi
Problem: termdebug plugin can be further improved Solution: add sanity-check, timeout config, change vars to bool update docs, add more tests (Ubaldo Tiberi) fixes: #15061 closes: #15057 Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@google.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-20runtime(gomod): add gomod filetype pluginyu-yk
closes: #15060 Signed-off-by: yu-yk <yukkuen.yu@linktivity.co.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-20patch 9.1.0507: hard to detect cursor movement in the command linev9.1.0507Shougo Matsushita
Problem: hard to detect cursor movement in the command line Solution: Add the CursorMovedC autocommand (Shougo Matsushita) closes: #15040 Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-20runtime(java): Optionally highlight parameterised typesAliaksei Budavei
In the presence of parameterised types whose names begin with a capital letter and end with a less-than sign "<" that introduces a type argument or a list of comma-separated type arguments, followed by a greater-than sign ">", a variable "g:java_highlight_generics" can be defined to have some components of such types uniformly coloured (by picking highlight groups for javaGenericsC{1,2}, javaWildcardBound). For example, ------------------------------------------------------------ java.io.InputStream stream = java.io.InputStream.nullInputStream(); java.util.function.Function<String, java.util.function.BiFunction<String, String, String>> updater = property -> (oldValue, newValue) -> oldValue; java.util.logging.LogManager.getLogManager() .updateConfiguration(stream, updater); ------------------------------------------------------------ Note that the diamond form and explicit type arguments do not qualify for this kind of recognition. For example, ------------------------------------------------------------ new java.util.HashSet<>().<String>toArray(new String[0]); ------------------------------------------------------------ References: https://docs.oracle.com/javase/specs/jls/se21/html/jls-4.html#jls-4.5 https://docs.oracle.com/javase/specs/jls/se21/html/jls-15.html#jls-15.9 https://docs.oracle.com/javase/specs/jls/se21/html/jls-15.html#jls-15.12.2.1 closes: #15050 Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-20patch 9.1.0506: filetype: .envrc & .prettierignore not recognizedv9.1.0506Tyler Miller
Problem: filetype: .envrc & .prettierignore not recognized Solution: Detect '.envrc' as shell and '.prettierignore' as gitignore filetype (Tyler Miller) Support ft detection for `.envrc` files used by direnv, and `.prettierignore` files used by prettier. closes: #15053 resolves: neovim/neovim#29405 Signed-off-by: Tyler Miller <tmillr@proton.me> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-19patch 9.1.0505: filetype: Faust files are not recognizedv9.1.0505PowerUser64
Problem: filetype: Faust files are not recognized Solution: Detect '*.lib' files as Faust filetype, add detection for '*.dsp' files (Faust or Make), remove '*.lib' from Cobol filetype (PowerUser64) closes: #14894 Signed-off-by: PowerUser64 <blake@blakenorth.net> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-19patch 9.1.0504: inner-tag textobject confused about ">" in attributesv9.1.0504Christian Brabandt
Problem: inner-tag textobject confused about ">" in attributes Solution: Skip over quoted '>' when determining the start position fixes: #15043 closes: #15049 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-19patch 9.1.0503: cannot use fuzzy keyword completionv9.1.0503glepnir
Problem: cannot use fuzzy keyword completion (Maxim Kim) Solution: add the "fuzzycollect" value for the 'completeopt' setting, to gather matches using fuzzy logic (glepnir) fixes: #14912 closes: #14976 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-19runtime(java): Remove the group exclusion list from @javaTopAliaksei Budavei
Instances of anonymous classes can be passed as method arguments and should be subject to line folding as well. closes: #15048 Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-19runtime(doc): wrong return type for execute() functionMarius Gedminas
The description clearly explains that this function returns a string. I think the 'Number' here is a copy/paste error. closes: #15045 Signed-off-by: Marius Gedminas <marius@gedmin.as> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-19patch 9.1.0502: MS-Windows: too much legacy codev9.1.0502K.Takata
Problem: MS-Windows: too much legacy code Solution: Clean up old code (Ken Takata) * Remove very old codes for Cygwin version of GCC. Nowadays Cygwin GCC cannot be used for building Win32 Vim. (The `-mno-cygwin` option was removed in Cygwin GCC4.) * Remove old codes for old versions of MinGW. Remove `__MINGW32__` as much as possible. * Adjust makefile. closes: #15044 Signed-off-by: K.Takata <kentkt@csc.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-19patch 9.1.0501: too complicated mapping restore in termdebugv9.1.0501Ubaldo Tiberi
Problem: too complicated mapping restore in termdebug Solution: simplify unmapping logic, add a few more tests (Ubaldo Tiberi) closes: #15046 Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@google.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-19runtime(nohlsearch): simplify mappingMaxim Kim
Use <cmd> instead of <expr> with execute(...)[-1] closes: #15047 Signed-off-by: Maxim Kim <habamax@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-18patch 9.1.0500: cannot switch buffer in a popupv9.1.0500Christian Brabandt
Problem: cannot switch buffer in a popup (Yggdroot) Solution: add popup_setbuf() function fixes: #15006 closes: #15026 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-18patch 9.1.0499: MS-Windows: doesn't handle symlinks properlyv9.1.0499LemonBoy
Problem: MS-Windows: doesn't handle symlinks properly (Timothy Madden) Solution: Implement lstat() on MS-Windows (author) lstat() differs from stat() in how it handles symbolic links, the former doesn't resolve the symlink while the latter does so. Implement a simple yet effective fallback using Win32 APIs. fixes #14933 closes: #15014 Co-authored-by: K.Takata <kentkt@csc.jp> Signed-off-by: LemonBoy <thatlemon@gmail.com> Signed-off-by: K.Takata <kentkt@csc.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-18patch 9.1.0498: getcmdcompltype() interferes with cmdline completionv9.1.0498zeertzjq
Problem: getcmdcompltype() interferes with cmdline completion. Solution: Don't set expand context when it's already set. (zeertzjq) closes: #15036 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-18patch 9.1.0497: termdebug can be further improvedv9.1.0497Ubaldo Tiberi
Problem: termdebug can be further improved Solution: refactor save/restore, update docs, add a new save/restore test (Ubaldo Tiberi) closes: #15032 Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@google.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-18runtime(filetype): update htmldjango detectionAfiq Nazrie
- update tags to detect djangohtml based on https://docs.djangoproject.com/en/5.0/ref/templates/builtins/#built-in-tag-reference - increase the lines to inspect to 40 lines 10 lines is too few and might result in high false negative. Increasing it to 40 lines should reduce the false negative. closes: #15037 Signed-off-by: Afiq Nazrie <afnazrie@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-18translation(tr): Improve Turkish documentationEmir SARI
closes: #15041 Signed-off-by: Emir SARI <emir_sari@icloud.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-18runtime(csv): include a simple csv filetype and syntax pluginMaxim Kim
fixes: #15038 Signed-off-by: Maxim Kim <habamax@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-18runtime(nohlsearch): include the the simple nohlsearch packageMaxim Kim
fixes: #15039 closes: #15042 Signed-off-by: Maxim Kim <habamax@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-17patch 9.1.0496: matched text is highlighted case-sensitivelyv9.1.0496glepnir
Problem: matched text is highlighted case-sensitively Solution: use MB_STRNICMP, update highlighting when the base changes (glepnir) fixes: #15021 closes: #15023 Co-authored-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-17patch 9.1.0495: Matched text isn't highlighted in cmdline pumv9.1.0495zeertzjq
Problem: Matched text isn't highlighted in cmdline pum. Solution: Use cmdline completion pattern in cmdline mode. (zeertzjq) closes: #15029 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-17runtime(doc): Fix typos in several documentsh-east
closes: #15034 Signed-off-by: h-east <h.east.727@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-17runtime(doc): clarify when text properties are clearedChristian Brabandt
related: #15030 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-17runtime(doc): improve the vim-shebang exampleChristian Brabandt
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-17runtime(doc): revert unintended formatting changes for termdebugChristian Brabandt
fixes: #15028 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-16runtime(java): Add a config variable for commonly used compiler optionsDoug Kearns
The value of g:javac_makeprg_params, if set, is added to the value of 'makeprg' as an option string. closes: #14999 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-16patch 9.1.0494: Wrong matched text highlighted in pum with 'rightleft'v9.1.0494zeertzjq
Problem: Wrong matched text highlighted in pum with 'rightleft'. Solution: Match using the original text instead of the reversed text. (zeertzjq) closes: #15020 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-16runtime(html): bump length of character references in syntax script (#15022)Mohamed Akram
This allows handling longer references such as `&CounterClockwiseContourIntegral;`. Signed-off-by: Mohamed Akram <mohd.akram@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-16runtime(termdebug): properly check mapping variables using null_dictshane.xb.qian
closes: #15013 Signed-off-by: shane.xb.qian <shane.qian@foxmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-16runtime(kdl): fix KdlIndent and kdlComment in indent script (#15019)Yinzuo Jiang
Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-16patch 9.1.0493: Test for patch 9.1.0489 doesn't fail without the fixv9.1.0493zeertzjq
Problem: Test for patch 9.1.0489 doesn't fail without the fix. Solution: Use "!" flag of feedkeys() so that ex_normal_busy is not set and ins_compl_check_keys() is not skipped (zeertzjq). closes: #15018 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-16runtime(java): Fold multi-line comments with the syntax kind of &fdm (#15016)Aliaksei Budavei
Also: - Restore the capability to mark as an error braces nested in parens with g:javaInParen. - Try not to fold top-level-type bodies. (Defining multiple package-private top level types in a single source file is not recommended as it can impose order among compilation units; so it is assumed that only one such top level type is usually defined.) - Compose ‘method header’ highlighting and block braces folding. - Do not highlight block braces whenever ‘method header’ highlighting is requested. This bundling of ‘method headers’ and block braces for highlighting can be traced back to Vim v5.0; however, no comment or documentation entry conveys any justification. For example, it is hard to discover the connection between block braces for "while", "if", etc., statements and method body block braces. The former behaviour can be attained in, e.g. ~/.vim/after/syntax/java.vim: ------------------------------------------------------------ if exists("g:java_highlight_functions") syn clear javaBlock javaInParen syn match javaBlockOther "[{}]" syn region javaBlock transparent matchgroup=javaBlockStart \ start="\%(^\|^\S[^:]\+\)\@120<!{" end="}" fold hi def link javaBlockStart javaFuncDef hi def link javaBlockOther javaBlockStart if exists("g:java_mark_braces_in_parens_as_errors") syn match javaInParen contained "[{}]" endif endif ------------------------------------------------------------ Note: Read ‘a method header omitting a _throws_ clause’ for every ‘method header’ appellation used above. Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-16runtime(termdebug): using wrong type for PlaceSign()shane.xb.qian
Make sure to convert them to numbers. fixes: #14994 closes: #15015 Signed-off-by: shane.xb.qian <shane.qian@foxmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-16patch 9.1.0492: filetype: Vim-script files not detected by shebang linev9.1.0492Doug Kearns
Problem: Vim-script files may not be recognised Solution: Add shebang line detection (Doug Kearns) closes: #15012 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-15runtime(zip): revert unintended change to zip#Write()Christian Brabandt
This was wrongly included as of patch 1c6734291295bf8aa39577840b40bb because apparently I messed up the use of git apply :/ Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-15runtime(doc): add another tag for vim-shebang featureChristian Brabandt
related: #15011 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-15patch 9.1.0491: Cmdline pum doesn't work properly with 'rightleft'v9.1.0491zeertzjq
Problem: Cmdline pum doesn't work properly with 'rightleft'. Solution: Don't use curwin->w_p_rl in cmdline mode in pum_redraw(). Use a static variable since pum_may_redraw() may be called in any mode. Also correct position of other popups with 'rightleft'. (zeertzjq) closes: #15005 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-15patch 9.1.0490: minor style problems with patch 9.1.0487v9.1.0490glepnir
Problem: minor style problems with patch 9.1.0487 Solution: use shown_compl instead of after_first_compl variable (glepnir) closes: #15008 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org> fix(completion): use exist shown_compl instead after_first_compl
2024-06-15patch 9.1.0489: default completion may break with fuzzyv9.1.0489glepnir
Problem: default completion may break with fuzzy Solution: check that completion_match_array is not null (glepnir) closes: #15010 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>