mirror of
https://github.com/neovim/neovim.git
synced 2026-04-25 16:54:12 +00:00
docs(filetype): add note about prefering explicit lists over pattern
This commit is contained in:
committed by
Christian Clason
parent
95e0289cb2
commit
37910f2703
@@ -1896,6 +1896,8 @@ local detect_xkb = starsetf('xkb', { parent = '/usr/' })
|
||||
--- Vim regexes are converted into explicit Lua patterns (without implicit anchoring):
|
||||
--- '*/debian/changelog' -> '/debian/changelog$'
|
||||
--- '*/bind/db.*' -> '/bind/db%.'
|
||||
---
|
||||
--- See more info in `:h dev-vimpatch-filetype`.
|
||||
--- @type table<string,vim.filetype.mapping>
|
||||
local pattern = {
|
||||
-- BEGIN PATTERN
|
||||
|
||||
Reference in New Issue
Block a user