From 6304be625ce44dcfedc6735164d0b853578581c8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 27 Nov 2021 10:57:26 +0000 Subject: [PATCH] Update runtime files. --- runtime/colors/tools/check_colors.vim | 14 +- runtime/doc/cmdline.txt | 10 +- runtime/doc/eval.txt | 1 + runtime/doc/options.txt | 2 +- runtime/doc/repeat.txt | 6 +- runtime/doc/sign.txt | 11 +- runtime/doc/tags | 3 + runtime/doc/todo.txt | 10 +- runtime/doc/vim9.txt | 6 +- runtime/ftplugin/jsonc.vim | 10 +- .../dist/opt/termdebug/plugin/termdebug.vim | 201 ++++++++++-------- runtime/syntax/vim.vim | 28 +-- 12 files changed, 171 insertions(+), 131 deletions(-) diff --git a/runtime/colors/tools/check_colors.vim b/runtime/colors/tools/check_colors.vim index b0146cc677..0d8936042e 100644 --- a/runtime/colors/tools/check_colors.vim +++ b/runtime/colors/tools/check_colors.vim @@ -226,7 +226,13 @@ fu! Result(err) endif endfu -call Test_check_colors() - -let &cpo = s:save_cpo -unlet s:save_cpo +try + call Test_check_colors() +catch + echohl ErrorMsg + echomsg v:exception + echohl NONE +finally + let &cpo = s:save_cpo + unlet s:save_cpo +endtry diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index bf61024875..eca741f753 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -1,4 +1,4 @@ -*cmdline.txt* For Vim version 8.2. Last change: 2021 Aug 06 +*cmdline.txt* For Vim version 8.2. Last change: 2021 Nov 22 VIM REFERENCE MANUAL by Bram Moolenaar @@ -925,9 +925,11 @@ Note: these are typed literally, they are not special keys! *:* ** When executing a ":source" command, is replaced with the file name of the sourced file. *E498* - When executing a function, is replaced with the call stack, - as with (this is for backwards compatibility, using - is preferred). + When executing a legacy function, is replaced with the call + stack, as with (this is for backwards + compatibility, using is preferred). + In Vim9 script using in a function gives error + *E1245* . Note that filename-modifiers are useless when is not used inside a script. *:* ** diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 46b3663b3d..004f9d4bbe 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -9770,6 +9770,7 @@ setbufline({buf}, {lnum}, {text}) *setbufline()* For the use of {buf}, see |bufname()| above. {lnum} is used like with |setline()|. + Use "$" to refer to the last line in buffer {buf}. When {lnum} is just below the last line the {text} will be added below the last line. diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index f5f570ba38..c7b280f684 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1,4 +1,4 @@ -*options.txt* For Vim version 8.2. Last change: 2021 Nov 18 +*options.txt* For Vim version 8.2. Last change: 2021 Nov 24 VIM REFERENCE MANUAL by Bram Moolenaar diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt index 04d85d7b37..049fabb30e 100644 --- a/runtime/doc/repeat.txt +++ b/runtime/doc/repeat.txt @@ -1,4 +1,4 @@ -*repeat.txt* For Vim version 8.2. Last change: 2021 Sep 09 +*repeat.txt* For Vim version 8.2. Last change: 2021 Nov 24 VIM REFERENCE MANUAL by Bram Moolenaar @@ -792,6 +792,10 @@ won't be very helpful. There is a separate command-line history for debug mode. +NOTE: In Vim9 script, if a command is written at the script level and +continues on the next line, not using the old way with a backslash for line +continuation, only the first line is printed before the debugging prompt. + The line number for a function line is relative to the start of the function. If you have trouble figuring out where you are, edit the file that defines the function in another Vim, search for the start of the function and do diff --git a/runtime/doc/sign.txt b/runtime/doc/sign.txt index 96658e544d..489f3d8b52 100644 --- a/runtime/doc/sign.txt +++ b/runtime/doc/sign.txt @@ -148,6 +148,10 @@ See |sign_define()| for the equivalent Vim script function. texthl={group} Highlighting group used for the text item. + culhl={group} + Highlighting group used for the text item when the cursor is + on the same line as the sign and 'cursorline' is enabled. + Example: > :sign define MySign text=>> texthl=Search linehl=DiffText < @@ -173,13 +177,6 @@ See |sign_getdefined()| for the equivalent Vim script function. :sign list {name} Lists one defined sign and its attributes. - culhl={group} - Highlighting group used for the text item when the cursor is - on the same line as the sign and 'cursorline' is enabled. - - Example: > - :sign define MySign text=>> texthl=Search linehl=DiffText -< PLACING SIGNS *:sign-place* *E158* diff --git a/runtime/doc/tags b/runtime/doc/tags index 13cf8ddafc..768b98c6e4 100644 --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -3999,6 +3999,7 @@ E1239 eval.txt /*E1239* E124 eval.txt /*E124* E1243 options.txt /*E1243* E1244 message.txt /*E1244* +E1245 cmdline.txt /*E1245* E125 eval.txt /*E125* E126 eval.txt /*E126* E127 eval.txt /*E127* @@ -7321,7 +7322,9 @@ hl-Cursor syntax.txt /*hl-Cursor* hl-CursorColumn syntax.txt /*hl-CursorColumn* hl-CursorIM syntax.txt /*hl-CursorIM* hl-CursorLine syntax.txt /*hl-CursorLine* +hl-CursorLineFold syntax.txt /*hl-CursorLineFold* hl-CursorLineNr syntax.txt /*hl-CursorLineNr* +hl-CursorLineSign syntax.txt /*hl-CursorLineSign* hl-DiffAdd syntax.txt /*hl-DiffAdd* hl-DiffChange syntax.txt /*hl-DiffChange* hl-DiffDelete syntax.txt /*hl-DiffDelete* diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt index 05af932de8..4793abd832 100644 --- a/runtime/doc/todo.txt +++ b/runtime/doc/todo.txt @@ -1,4 +1,4 @@ -*todo.txt* For Vim version 8.2. Last change: 2021 Nov 14 +*todo.txt* For Vim version 8.2. Last change: 2021 Nov 26 VIM REFERENCE MANUAL by Bram Moolenaar @@ -38,9 +38,7 @@ browser use: https://github.com/vim/vim/issues/1234 *known-bugs* -------------------- Known bugs and current work ----------------------- -mark ends up on last byte of char. (#9047) - -Delete runtime/rgb.txt after a while +refactor ex_let_one() to subfunctions. Vim9 - Make everything work: - "filter #pat# ls" should work, #pat# is not a comment @@ -222,8 +220,6 @@ Terminal emulator window: - When 'encoding' is not utf-8, or the job is using another encoding, setup conversions. -Include patch #6290: recognize shell directory change. - When using 'cryptmethod' xchaha20 the undo file is not encrypted. Need to handle extra bytes. @@ -233,6 +229,8 @@ Fails in line 64 of Ch_communicate, no exception is thrown. Patch for Template string: #4634 Have another look at the implementation. +Add expanding