docs(lua): explain and link to lua patterns (#18206)

also correct explanation of when it's allowed to omit parens in Lua function calls
This commit is contained in:
Christian Clason
2022-04-21 21:46:07 +02:00
committed by GitHub
parent 28fb40b16f
commit 6c8a3013ac
2 changed files with 42 additions and 18 deletions

View File

@@ -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.
---