mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
4e9298ecdf
Problem: For function definitions to be included in the vimdoc (formatted) and to be exported as mpack data (unformatted), we had two internal representations of the same function/API metadata in duplicate; one is FunctionDoc (which was previously a dict), and the other is doxygen XML DOM from which vimdoc (functions sections) was generated. Solution: We should have a single path and unified data representation (i.e. FunctionDoc) that contains all the metadata and information about function APIs, from which both of mpack export and vimdoc are generated. I.e., vimdocs are no longer generated directly from doxygen XML nodes, but generated via: (XML DOM Nodes) ------------> FunctionDoc ------> mpack (unformatted) Recursive Internal | Formatting Metadata +---> vimdoc (formatted) This refactoring eliminates the hacky and ugly use of `fmt_vimhelp` in `fmt_node_as_vimhelp()` and all other helper functions! This way, `fmt_node_as_vimhelp()` can simplified as it no longer needs to handle generating of function docs, which needs to be done only in the topmost level of recursion. |
||
---|---|---|
.. | ||
bump_deps.lua | ||
check_urls.vim | ||
cliff.toml | ||
download-unicode-files.sh | ||
gen_eval_files.lua | ||
gen_filetype.lua | ||
gen_help_html.lua | ||
gen_lsp.lua | ||
gen_vimdoc.py | ||
genappimage.sh | ||
git-log-pretty-since.sh | ||
legacy2luatest.pl | ||
lintcommit.lua | ||
lua2dox.lua | ||
movedocs.pl | ||
release.sh | ||
shadacat.py | ||
update_terminfo.sh | ||
vim-patch.sh | ||
vimpatch.lua | ||
windows.ti |