aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-04-21 21:46:07 +0200
committerGitHub <noreply@github.com>2022-04-21 21:46:07 +0200
commit6c8a3013ac8cbcbfc8b3e1d51f6491bfa0c4a7aa (patch)
tree2b8495fa181c18be3461c8899103711d399fe14a /runtime/lua
parent28fb40b16f67f64add4fd6205a30180a6075c0af (diff)
downloadrneovim-6c8a3013ac8cbcbfc8b3e1d51f6491bfa0c4a7aa.tar.gz
rneovim-6c8a3013ac8cbcbfc8b3e1d51f6491bfa0c4a7aa.tar.bz2
rneovim-6c8a3013ac8cbcbfc8b3e1d51f6491bfa0c4a7aa.zip
docs(lua): explain and link to lua patterns (#18206)
also correct explanation of when it's allowed to omit parens in Lua function calls
Diffstat (limited to 'runtime/lua')
-rw-r--r--runtime/lua/vim/filetype.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index d575869377..420d343a8a 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -1487,7 +1487,7 @@ end
--- Filetype mappings can be added either by extension or by filename (either
--- the "tail" or the full file path). The full file path is checked first,
--- followed by the file name. If a match is not found using the filename, then
---- the filename is matched against the list of patterns (sorted by priority)
+--- the filename is matched against the list of |lua-patterns| (sorted by priority)
--- until a match is found. Lastly, if pattern matching does not find a
--- filetype, then the file extension is used.
---