aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorLaurenceWarne <17688577+LaurenceWarne@users.noreply.github.com>2022-08-01 13:45:43 +0100
committerGitHub <noreply@github.com>2022-08-01 06:45:43 -0600
commit9f5d5aa3da30aab40bbb38fddfc70257444d50a8 (patch)
tree5f6fe36015ffcc938ae837ddb9cc5ded1443efba /runtime/lua/vim
parentece0850b7393114cac651cf9f43fc2c5e1b1cf50 (diff)
downloadrneovim-9f5d5aa3da30aab40bbb38fddfc70257444d50a8.tar.gz
rneovim-9f5d5aa3da30aab40bbb38fddfc70257444d50a8.tar.bz2
rneovim-9f5d5aa3da30aab40bbb38fddfc70257444d50a8.zip
Use Strings instead of Tables in vim.filetype.matchregex Doc (#19604)
docs: use strings instead of tables in vim.filetype.matchregex doc
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/filetype.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index 9c59442caf..1b209e6a9d 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -2275,9 +2275,9 @@ end
--- priority = -math.huge,
--- function(path, bufnr)
--- local content = vim.filetype.getlines(bufnr, 1)
---- if vim.filetype.matchregex(content, { [[^#!.*\\<mine\\>]] }) then
+--- if vim.filetype.matchregex(content, [[^#!.*\\<mine\\>]]) then
--- return 'mine'
---- elseif vim.filetype.matchregex(content, { [[\\<drawing\\>]] }) then
+--- elseif vim.filetype.matchregex(content, [[\\<drawing\\>]]) then
--- return 'drawing'
--- end
--- end,