From 34a2bfdcc5ce03a1c8e2128cd1c3e7ab99755d12 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 9 Mar 2025 10:27:28 -0700 Subject: fix(build): vimdoc tags are not validated #32801 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: "make lintdoc" is not validating vimdoc (:help) tags. Solution: - Call `lang_tree:parse()` to init the parser. - Load netrw 🤢 explicitly, since it was moved to `pack/dist/opt/`. - Fix invalid help tags. --- scripts/lintdoc.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/lintdoc.lua b/scripts/lintdoc.lua index 78cf9fed72..d246c51176 100755 --- a/scripts/lintdoc.lua +++ b/scripts/lintdoc.lua @@ -10,8 +10,10 @@ print('Running lintdoc ...') --- gen_help_html requires :helptags to be generated on $VIMRUNTIME/doc --- :helptags checks for duplicate tags. +-- gen_help_html.lua requires helptags to be generated in $VIMRUNTIME/doc. +-- :helptags also checks for duplicate tags. +-- 🤢 Load netrw so its tags are generated by :helptags. +vim.cmd [[ packadd netrw ]] vim.cmd [[ helptags ALL ]] require('src.gen.gen_help_html').run_validate() -- cgit