From 60c35cc4c7b713c27e8bfdd196cbee46cf050bbb Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 24 Nov 2025 15:10:05 -0800 Subject: docs: vimdoc parsing errors #36681 Error: .tests/neovim/runtime/doc/dev_test.txt (MISSING "`" [420, 79] - [420, 79]) Error: .tests/neovim/runtime/doc/news.txt (MISSING "`" [137, 80] - [137, 80]) Error: .tests/neovim/runtime/doc/nvim.txt (MISSING "<" [106, 0] - [106, 0]) Error: .tests/neovim/runtime/doc/vimfn.txt (MISSING "}" [2610, 26] - [2610, 26]) --- src/nvim/eval.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/nvim/eval.lua') diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index 3e4219c992..78f384a08c 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -2957,12 +2957,13 @@ M.funcs = { desc = [=[ Escape {string} for use as file name command argument. All characters that have a special meaning, such as `'%'` and `'|'` - are escaped with a backslash. - For most systems the characters escaped are - " \t\n*?[{`$\\%#'\"|!<". For systems where a backslash - appears in a filename, it depends on the value of 'isfname'. - A leading '+' and '>' is also escaped (special after |:edit| - and |:write|). And a "-" by itself (special after |:cd|). + are escaped with a backslash. For most systems the characters + escaped are: > + \t\n *?[{`$\\%#'\"|!< + ' is + also escaped (special after |:edit| and |:write|). And a "-" + by itself (special after |:cd|). Returns an empty string on error. Example: >vim let fname = '+some str%nge|name' -- cgit