aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/shared.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2022-10-09 18:19:43 +0200
committerJustin M. Keyes <justinkz@gmail.com>2022-10-10 01:05:18 +0200
commita7a83bc4c25d63f3ae0a7a56e5211df1444699c4 (patch)
treecb808208f2dfe60d1a0d553cb8c5fc7ad2f1d572 /runtime/lua/vim/shared.lua
parent2bce99b978fc8d39767eb2704062bd9f4a412438 (diff)
downloadrneovim-a7a83bc4c25d63f3ae0a7a56e5211df1444699c4.tar.gz
rneovim-a7a83bc4c25d63f3ae0a7a56e5211df1444699c4.tar.bz2
rneovim-a7a83bc4c25d63f3ae0a7a56e5211df1444699c4.zip
fix(docs-html): update parser
- Improve generated HTML by updating parser which includes fixes for single "'" and single "|": https://github.com/neovim/tree-sitter-vimdoc/pull/31 - Updated parser also fixes the conceal issue for "help" highlight queries https://github.com/neovim/tree-sitter-vimdoc/issues/23 by NOT including whitespace in nodes. - But this means we need to restore the getws() function which scrapes leading whitespace from the original input (buffer).
Diffstat (limited to 'runtime/lua/vim/shared.lua')
-rw-r--r--runtime/lua/vim/shared.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/shared.lua b/runtime/lua/vim/shared.lua
index 4b3a681eb2..f03d608e56 100644
--- a/runtime/lua/vim/shared.lua
+++ b/runtime/lua/vim/shared.lua
@@ -100,10 +100,10 @@ end
---
--- Examples:
--- <pre>
---- split(":aa::b:", ":") --> {'','aa','','b',''}
---- split("axaby", "ab?") --> {'','x','y'}
---- split("x*yz*o", "*", {plain=true}) --> {'x','yz','o'}
---- split("|x|y|z|", "|", {trimempty=true}) --> {'x', 'y', 'z'}
+--- split(":aa::b:", ":") => {'','aa','','b',''}
+--- split("axaby", "ab?") => {'','x','y'}
+--- split("x*yz*o", "*", {plain=true}) => {'x','yz','o'}
+--- split("|x|y|z|", "|", {trimempty=true}) => {'x', 'y', 'z'}
--- </pre>
---
---@see |vim.gsplit()|