From 37910f270341d8b36f2f26b6d628274b85e2522b Mon Sep 17 00:00:00 2001 From: Evgeni Chasnovski Date: Tue, 23 Jul 2024 14:35:45 +0300 Subject: docs(filetype): add note about prefering explicit lists over pattern --- runtime/lua/vim/filetype.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/lua') diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 6343a540ed..4192645acb 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -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 local pattern = { -- BEGIN PATTERN -- cgit