docs: treesitter parse errors #33811

This commit is contained in:
Christian Clason
2025-05-03 19:08:53 +02:00
committed by GitHub
parent 94bc7f47bf
commit 2e35161fa1
29 changed files with 32 additions and 52 deletions

View File

@ -487,7 +487,7 @@ CompleteDone After Insert mode completion is done. Either
- "accept": completion was - "accept": completion was
accepted by |complete_CTRL-Y|. accepted by |complete_CTRL-Y|.
- "cancel": completion was - "cancel": completion was
stopped by |complete_CTRL-E. stopped by |complete_CTRL-E|.
- "discard": completion was - "discard": completion was
abandoned for other reason. abandoned for other reason.

View File

@ -160,5 +160,4 @@ In WinDbg: choose Open Crash Dump on the File menu. Follow the instructions in
Visual Studio 2017 Community Edition can be downloaded for free from: Visual Studio 2017 Community Edition can be downloaded for free from:
https://visualstudio.microsoft.com/downloads/ https://visualstudio.microsoft.com/downloads/
=========================================================================
vim:tw=78:ts=8:noet:ft=help:norl: vim:tw=78:ts=8:noet:ft=help:norl:

View File

@ -95,7 +95,7 @@ LUA
• vim.validate(opts: table) Use form 1. See |vim.validate()|. • vim.validate(opts: table) Use form 1. See |vim.validate()|.
VIMSCRIPT VIMSCRIPT
• *termopen()* Use |jobstart() with `{term: v:true}`. • *termopen()* Use |jobstart()| with `{term: v:true}`.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
DEPRECATED IN 0.10 *deprecated-0.10* DEPRECATED IN 0.10 *deprecated-0.10*

View File

@ -901,8 +901,8 @@ Return Values ~
Do not needlessly surround the `return` expression with parentheses. Do not needlessly surround the `return` expression with parentheses.
Use parentheses in `return expr`; only where you would use them in `x = Use parentheses in `return expr;` only where you would also use them in
expr;`. >c `x = expr;`. >c
return result; return result;
return (some_long_condition && another_condition); return (some_long_condition && another_condition);

View File

@ -171,8 +171,8 @@ USING GDBSERVER IN TMUX
Consider using a custom makefile Consider using a custom makefile
https://github.com/neovim/neovim/blob/master/BUILD.md#custom-makefile to https://github.com/neovim/neovim/blob/master/BUILD.md#custom-makefile to
quickly start debugging sessions using the `gdbserver` method mentioned above. quickly start debugging sessions using the `gdbserver` method mentioned above.
This example `local.mk` will create the debugging session when you type `make This example `local.mk` will create the debugging session when you type
debug`. `make debug`.
>make >make
.PHONY: dbg-start dbg-attach debug build .PHONY: dbg-start dbg-attach debug build

View File

@ -201,7 +201,7 @@ Docstring format:
- Markdown is supported. - Markdown is supported.
- Tags are written as `[tag]()`. - Tags are written as `[tag]()`.
- References are written as `[tag]` - References are written as `[tag]`
- Use ``` for code samples. - Use "```" for code samples.
Code samples can be annotated as `vim` or `lua` Code samples can be annotated as `vim` or `lua`
Example: the help for |nvim_open_win()| is generated from a docstring defined Example: the help for |nvim_open_win()| is generated from a docstring defined
@ -245,7 +245,7 @@ Docstring format:
- Markdown is supported. - Markdown is supported.
- Tags are written as `[tag]()`. - Tags are written as `[tag]()`.
- References are written as `[tag]` - References are written as `[tag]`
- Use ``` for code samples. - Use "```" for code samples.
Code samples can be annotated as `vim` or `lua` Code samples can be annotated as `vim` or `lua`
- Use `@since <api-level>` to note the |api-level| when the function became - Use `@since <api-level>` to note the |api-level| when the function became
"stable". If `<api-level>` is greater than the current stable release (or "stable". If `<api-level>` is greater than the current stable release (or

View File

@ -647,5 +647,4 @@ If this buffer has been edited in this window, the values from back then are
used. Otherwise the values from the window where the buffer was edited last used. Otherwise the values from the window where the buffer was edited last
are used. are used.
==============================================================================
vim:tw=78:ts=8:noet:ft=help:norl: vim:tw=78:ts=8:noet:ft=help:norl:

View File

@ -507,6 +507,4 @@ taglist.vim
The GNU Ada Project distribution (http://gnuada.sourceforge.net) of Vim The GNU Ada Project distribution (http://gnuada.sourceforge.net) of Vim
contains all of the above. contains all of the above.
============================================================================== vim:tw=78:ts=8:noet:ft=help:norl:
vim: textwidth=78 nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab
vim: filetype=help

View File

@ -73,5 +73,4 @@ The maximum search depth can be set to any integer, but using values higher
than 2 is not recommended, and will likely provide no tangible benefit in most than 2 is not recommended, and will likely provide no tangible benefit in most
situations. situations.
==============================================================================
vim:tw=78:ts=8:noet:ft=help:norl: vim:tw=78:ts=8:noet:ft=help:norl:

View File

@ -60,5 +60,4 @@ Many other distributions are available for Windows like
https://chocolatey.org/packages/less/. Make sure `less` is in a directory https://chocolatey.org/packages/less/. Make sure `less` is in a directory
listed in the `PATH` environment variable, which chocolatey above does. listed in the `PATH` environment variable, which chocolatey above does.
------------------------------------------------------------------------------
vim:ft=help: vim:ft=help:

View File

@ -475,4 +475,4 @@ MAPPINGS *rust-mappings*
This plugin defines mappings for |[[| and |]]| to support hanging indents. This plugin defines mappings for |[[| and |]]| to support hanging indents.
vim:tw=78:sw=4:noet:ts=8:ft=help:norl: vim:tw=78:sw=4:noet:ts=8:ft=help:norl:

View File

@ -268,5 +268,4 @@ These are also available via the "main" package:
$main::curwin The current Window object. $main::curwin The current Window object.
$main::curbuf The current Buffer object. $main::curbuf The current Buffer object.
==============================================================================
vim:tw=78:ts=8:noet:ft=help:norl: vim:tw=78:ts=8:noet:ft=help:norl:

View File

@ -645,6 +645,6 @@ To check if `pyx*` functions and commands are available: >vim
if has('pythonx') if has('pythonx')
echo 'pyx* commands are available. (Python ' .. &pyx .. ')' echo 'pyx* commands are available. (Python ' .. &pyx .. ')'
endif endif
<
==============================================================================
vim:tw=78:ts=8:noet:ft=help:norl: vim:tw=78:ts=8:noet:ft=help:norl:

View File

@ -189,5 +189,4 @@ evaluate Ruby expressions and pass their values to Vim script.
The Ruby value "true", "false" and "nil" are converted to v:true, v:false and The Ruby value "true", "false" and "nil" are converted to v:true, v:false and
v:null, respectively. v:null, respectively.
==============================================================================
vim:tw=78:ts=8:noet:ft=help:norl: vim:tw=78:ts=8:noet:ft=help:norl:

View File

@ -711,5 +711,4 @@ Arbitrary code registered via |:UpdateRemotePlugins|, that runs in a separate
process and communicates with Nvim via the |api|. process and communicates with Nvim via the |api|.
==============================================================================
vim:tw=78:ts=8:et:sw=4:ft=help:norl: vim:tw=78:ts=8:et:sw=4:ft=help:norl:

View File

@ -140,5 +140,4 @@ A job may be killed at any time with the |jobstop()| function:
< <
Individual streams can be closed without killing the job, see |chanclose()|. Individual streams can be closed without killing the job, see |chanclose()|.
==============================================================================
vim:tw=78:ts=8:noet:ft=help:norl: vim:tw=78:ts=8:noet:ft=help:norl:

View File

@ -379,5 +379,4 @@ COPYRIGHT
Lua BitOp is Copyright (C) 2008-2012 Mike Pall. Lua BitOp is Copyright (C) 2008-2012 Mike Pall.
Lua BitOp is free software, released under the MIT license. Lua BitOp is free software, released under the MIT license.
==============================================================================
vim:tw=78:ts=4:sw=4:sts=4:et:ft=help:norl: vim:tw=78:ts=4:sw=4:sts=4:et:ft=help:norl:

View File

@ -1654,8 +1654,8 @@ lua_Alloc *lua_Alloc*
`NULL` if and only if it cannot fill the request. When `nsize` is not `NULL` if and only if it cannot fill the request. When `nsize` is not
zero and `osize` is zero, the allocator should behave like `malloc`. zero and `osize` is zero, the allocator should behave like `malloc`.
When `nsize` and `osize` are not zero, the allocator behaves like When `nsize` and `osize` are not zero, the allocator behaves like
`realloc`. Lua assumes that the allocator never fails when `osize >= `realloc`. Lua assumes that the allocator never fails when
nsize`. `osize >= nsize`.
Here is a simple implementation for the allocator function. It is used Here is a simple implementation for the allocator function. It is used
in the auxiliary library by `luaL_newstate` (see in the auxiliary library by `luaL_newstate` (see
@ -3567,8 +3567,8 @@ collectgarbage({opt} [, {arg}]) *collectgarbage()*
`true` if the step finished a collection cycle. `true` if the step finished a collection cycle.
`"setpause"` sets {arg} /100 as the new value for the `pause` of `"setpause"` sets {arg} /100 as the new value for the `pause` of
the collector (see |lua-gc|). the collector (see |lua-gc|).
`"setstepmul"` sets {arg} /100 as the new value for the `step `"setstepmul"` sets {arg} /100 as the new value for the
multiplier` of the collector (see |lua-gc|). `step multiplier` of the collector (see |lua-gc|).
dofile({filename}) *dofile()* dofile({filename}) *dofile()*
Opens the named file and executes its contents as a Lua chunk. When Opens the named file and executes its contents as a Lua chunk. When
@ -4785,8 +4785,8 @@ debug.sethook([{thread},] {hook}, {mask} [, {count}]) *debug.sethook()*
When called without arguments, the `debug.sethook` turns off the hook. When called without arguments, the `debug.sethook` turns off the hook.
When the hook is called, its first parameter is a string describing When the hook is called, its first parameter is a string describing
the event that triggered its call: `"call"`, `"return"` (or `"tail the event that triggered its call: `"call"`, `"return"` (or
return"`), `"line"`, and `"count"`. For line events, the hook also `"tail return"`), `"line"`, and `"count"`. For line events, the hook also
gets the new line number as its second parameter. Inside a hook, you gets the new line number as its second parameter. Inside a hook, you
can call `getinfo` with level 2 to get more information about the can call `getinfo` with level 2 to get more information about the
running function (level 0 is the `getinfo` function, and level 1 is running function (level 0 is the `getinfo` function, and level 1 is
@ -4885,5 +4885,4 @@ Christian Habermann's CRefVim project
Adapted for bundled Nvim documentation; the original plugin can be found at Adapted for bundled Nvim documentation; the original plugin can be found at
https://www.vim.org/scripts/script.php?script_id=1291 https://www.vim.org/scripts/script.php?script_id=1291
------------------------------------------------------------------------------ vim:tw=78:ts=4:ft=help:norl:et
vi:tw=78:ts=4:ft=help:norl:et

View File

@ -476,7 +476,7 @@ and what the keymaps are to get those characters:
glyph encoding keymap ~ glyph encoding keymap ~
Char UTF-8 cp1255 hebrew hebrewp name ~ Char UTF-8 cp1255 hebrew hebrewp name ~
א 0x5d0 0xe0 t a ´alef א 0x5d0 0xe0 t a alef
ב 0x5d1 0xe1 c b bet ב 0x5d1 0xe1 c b bet
ג 0x5d2 0xe2 d g gimel ג 0x5d2 0xe2 d g gimel
ד 0x5d3 0xe3 s d dalet ד 0x5d3 0xe3 s d dalet
@ -494,7 +494,7 @@ Char UTF-8 cp1255 hebrew hebrewp name ~
ן 0x5df 0xef i N nun sofit ן 0x5df 0xef i N nun sofit
נ 0x5e0 0xf0 b n nun נ 0x5e0 0xf0 b n nun
ס 0x5e1 0xf1 x s samech ס 0x5e1 0xf1 x s samech
ע 0x5e2 0xf2 g u `ayin ע 0x5e2 0xf2 g u ayin
ף 0x5e3 0xf3 ; P pe sofit ף 0x5e3 0xf3 ; P pe sofit
פ 0x5e4 0xf4 p p pe פ 0x5e4 0xf4 p p pe
ץ 0x5e5 0xf5 . X tsadi sofit ץ 0x5e5 0xf5 . X tsadi sofit
@ -556,8 +556,8 @@ Char UTF-8 hebrew name
ב֯ 0x5af CC masora circle ב֯ 0x5af CC masora circle
Combining forms: Combining forms:
ﬠ 0xfb20 X` Alternative `ayin ﬠ 0xfb20 X` Alternative ayin
ﬡ 0xfb21 X' Alternative ´alef ﬡ 0xfb21 X' Alternative alef
ﬢ 0xfb22 X-d Alternative dalet ﬢ 0xfb22 X-d Alternative dalet
ﬣ 0xfb23 X-h Alternative he ﬣ 0xfb23 X-h Alternative he
ﬤ 0xfb24 X-k Alternative kaf ﬤ 0xfb24 X-k Alternative kaf

View File

@ -98,5 +98,4 @@ However, in general, we recommend (eventually) taking time to learn Nvim from
its stock configuration, and incrementally setting options and adding plugins its stock configuration, and incrementally setting options and adding plugins
to your |config| as you find an explicit need to do so. to your |config| as you find an explicit need to do so.
==============================================================================
vim:tw=78:ts=8:et:ft=help:norl: vim:tw=78:ts=8:et:ft=help:norl:

View File

@ -140,5 +140,4 @@ msgpack#equal({msgpack-value}, {msgpack-value}) *msgpack#equal()*
|msgpack-special-dict| with equivalent non-special-dict value |msgpack-special-dict| with equivalent non-special-dict value
evaluates to 1. evaluates to 1.
============================================================================== vim:tw=78:ts=8:ft=help:fdm=marker
vim:tw=78:ts=8:ft=help:fdm=marker

View File

@ -366,5 +366,4 @@ generally inserted with the middle mouse button.
Nvim's X11 clipboard providers only use the PRIMARY and CLIPBOARD selections, Nvim's X11 clipboard providers only use the PRIMARY and CLIPBOARD selections,
for the "*" and "+" registers, respectively. for the "*" and "+" registers, respectively.
==============================================================================
vim:tw=78:ts=8:noet:ft=help:norl: vim:tw=78:ts=8:noet:ft=help:norl:

View File

@ -137,5 +137,4 @@ named `rplugin.vim` at:
Windows ~ Windows ~
$LOCALAPPDATA/nvim/ or ~/AppData/Local/nvim/ $LOCALAPPDATA/nvim/ or ~/AppData/Local/nvim/
==============================================================================
vim:tw=78:ts=8:noet:ft=help:norl: vim:tw=78:ts=8:noet:ft=help:norl:

View File

@ -61,5 +61,4 @@ In order to use the Russian documentation, make sure you have set the
is related to a bug in GNU gettext library and may be fixed in the future is related to a bug in GNU gettext library and may be fixed in the future
releases of gettext. releases of gettext.
===============================================================================
vim:tw=78:ts=8:noet:ft=help:norl: vim:tw=78:ts=8:noet:ft=help:norl:

View File

@ -1652,7 +1652,7 @@ diverge as follows:
1. The first sentence (all characters up to the first period `.`, which is 1. The first sentence (all characters up to the first period `.`, which is
followed by a whitespace character or a line terminator, or up to the followed by a whitespace character or a line terminator, or up to the
first block tag, e.g. `@param`, `@return`) is colored as first block tag, e.g. `@param`, `@return`) is colored as
*SpecialComment special comments. `*SpecialComment` special comments.
2. The text is colored as 2. The text is colored as
`*Comment` comments. `*Comment` comments.
3. HTML comments are colored as 3. HTML comments are colored as
@ -1898,9 +1898,9 @@ quoted text and URLs / email addresses). In keeping with standard conventions,
signatures begin in a line containing only "--" followed optionally by signatures begin in a line containing only "--" followed optionally by
whitespaces and end with a newline. whitespaces and end with a newline.
Vim treats lines beginning with ']', '}', '|', '>' or a word followed by '>' Vim treats lines beginning with "]", "}", "|", ">" or a word followed by ">"
as quoted text. However Vim highlights headers and signatures in quoted text as quoted text. However Vim highlights headers and signatures in quoted text
only if the text is quoted with '>' (optionally followed by one space). only if the text is quoted with ">" (optionally followed by one space).
By default mail.vim synchronises syntax to 100 lines before the first By default mail.vim synchronises syntax to 100 lines before the first
displayed line. If you have a slow machine, and generally deal with emails displayed line. If you have a slow machine, and generally deal with emails
@ -2064,8 +2064,8 @@ To disable highlighting of pronoun substitution patterns inside strings: >
:let moo_no_pronoun_sub = 1 :let moo_no_pronoun_sub = 1
To disable highlighting of the regular expression operator '%|', and matching To disable highlighting of the regular expression operator "%|", and matching
'%(' and '%)' inside strings: > "%(" and "%)" inside strings: >
:let moo_no_regexp = 1 :let moo_no_regexp = 1
@ -2894,7 +2894,7 @@ The value is a space-separated list of keywords:
[ Array literal [ Array literal
% Literal with "%" notation, e.g.: %w(STRING), %!STRING! % Literal with "%" notation, e.g.: %w(STRING), %!STRING!
/ Regexp / Regexp
string String and shell command output (surrounded by ', ", `) string String and shell command output (surrounded by ', ", "`")
: Symbol : Symbol
# Multiline comment # Multiline comment
<< Here documents << Here documents

View File

@ -884,5 +884,4 @@ must handle.
["msg_history_clear"] ~ ["msg_history_clear"] ~
Clear the |:messages| history. Clear the |:messages| history.
==============================================================================
vim:tw=78:ts=8:noet:ft=help:norl: vim:tw=78:ts=8:noet:ft=help:norl:

View File

@ -407,8 +407,8 @@ Now `:messages` shows:
number 0 number 0
Any return value of the deferred function is discarded. The function cannot Any return value of the deferred function is discarded. The function cannot
be followed by anything, such as "->func" or ".member". Currently `:defer be followed by anything, such as "->func" or ".member". Currently
GetArg()->TheFunc()` does not work, it may work in a later version. `:defer GetArg()->TheFunc()` does not work, it may work in a later version.
Errors are reported but do not cause aborting execution of deferred functions Errors are reported but do not cause aborting execution of deferred functions
or altering execution outside of deferred functions. or altering execution outside of deferred functions.

View File

@ -69,5 +69,4 @@ name of the Vietnamese locale. For example, >
Note that the name of the Vietnamese locale may vary depending on your system. Note that the name of the Vietnamese locale may vary depending on your system.
See |mbyte-first| for details. See |mbyte-first| for details.
=============================================================================== vim:tw=78:ts=8:noet:ft=help:norl:
vim:tw=78:ts=8:noet:ft=help:norl:

View File

@ -894,5 +894,4 @@ TUI:
at how the terminal is sending CSI. Nvim does not issue such a sequence and at how the terminal is sending CSI. Nvim does not issue such a sequence and
always uses 7-bit control sequences. always uses 7-bit control sequences.
==============================================================================
vim:tw=78:ts=8:sw=2:et:ft=help:norl: vim:tw=78:ts=8:sw=2:et:ft=help:norl: