From 22b084a87972972d33939adb899b94867872675e Mon Sep 17 00:00:00 2001 From: David Barnett Date: Tue, 18 May 2021 00:46:22 -0700 Subject: [PATCH] Avoid creating flag "plugin[flags]" Skips generating docs for a "plugin[flags]" flag corresponding to a detected plugin/flags.vim file. Just like with instant/flags.vim files, there doesn't need to be a flag to prevent loading a flags file. This helps prepare for moving away from instant/flags.vim files (see google/vim-maktaba#189). --- vimdoc/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vimdoc/module.py b/vimdoc/module.py index 082a69c..c11b829 100644 --- a/vimdoc/module.py +++ b/vimdoc/module.py @@ -426,6 +426,7 @@ def Modules(directory): # because there aren't necessarily associated doc comment blocks and # the name is computed from the file name. if (not relative_path.startswith('autoload' + os.path.sep) + and relative_path != os.path.join('plugin', 'flags.vim') and relative_path != os.path.join('instant', 'flags.vim')): if ContainsMaktabaPluginEnterCall(lines): flagpath = relative_path