From 6c8a3013ac8cbcbfc8b3e1d51f6491bfa0c4a7aa Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 21 Apr 2022 21:46:07 +0200 Subject: docs(lua): explain and link to lua patterns (#18206) also correct explanation of when it's allowed to omit parens in Lua function calls --- runtime/lua/vim/filetype.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim') 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. --- -- cgit