aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/builtin.txt
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-06-25 23:44:45 +0200
committerJustin M. Keyes <justinkz@gmail.com>2023-06-26 11:29:12 +0200
commit17c59e417f818804187d85760765d51feb4d9c21 (patch)
tree2a10fd8c0b30c0c15faffaf6b3f36a43f1542e65 /runtime/doc/builtin.txt
parent99cb1f0c378d9c47e25ad8bda1056b7308e233c7 (diff)
downloadrneovim-17c59e417f818804187d85760765d51feb4d9c21.tar.gz
rneovim-17c59e417f818804187d85760765d51feb4d9c21.tar.bz2
rneovim-17c59e417f818804187d85760765d51feb4d9c21.zip
fix(docs): vimdoc syntax errors
Prepare for https://github.com/neovim/tree-sitter-vimdoc/pull/108 which improves `{arg}` highlighting in many common cases: vim.foo({bar}) vim.foo( {bar}) nvim_foo({bar}) nvim_foo({bar},{baz}) nvim_foo({bar}, {baz}) foo[{buf}] The tradeoff is that things like `"[{"` are flagged as parse errors. We could avoid if we drop support for `foo[{buf}]`, but that is rather common (see `builtin.txt`).
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r--runtime/doc/builtin.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index c8d1d0b25b..150022d62a 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -5383,7 +5383,7 @@ matchfuzzy({list}, {str} [, {dict}]) *matchfuzzy()*
< results in `['two one', 'one two']` . >
:echo ['one two', 'two one']->matchfuzzy('two one',
\ {'matchseq': 1})
-< results in ['two one'].
+< results in `['two one']`.
matchfuzzypos({list}, {str} [, {dict}]) *matchfuzzypos()*
Same as |matchfuzzy()|, but returns the list of matched
@@ -5405,7 +5405,7 @@ matchfuzzypos({list}, {str} [, {dict}]) *matchfuzzypos()*
< results in [["lacy", "clay"], [[0, 1], [1, 2]], [153, 133]] >
:echo [{'text': 'hello', 'id' : 10}]
\ ->matchfuzzypos('ll', {'key' : 'text'})
-< results in [[{"id": 10, "text": "hello"}], [[2, 3]], [127]]
+< results in `[[{"id": 10, "text": "hello"}], [[2, 3]], [127]]`
matchlist({expr}, {pat} [, {start} [, {count}]]) *matchlist()*
Same as |match()|, but return a |List|. The first item in the
@@ -9507,11 +9507,11 @@ winlayout([{tabnr}]) *winlayout()*
For a leaf window, it returns:
["leaf", {winid}]
For horizontally split windows, which form a column, it
- returns:
+ returns: >
["col", [{nested list of windows}]]
- For vertically split windows, which form a row, it returns:
+< For vertically split windows, which form a row, it returns: >
["row", [{nested list of windows}]]
-
+<
Example: >
" Only one window in the tab page
:echo winlayout()