aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/docgen.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-01-26 13:49:20 -0800
committerGitHub <noreply@github.com>2021-01-26 13:49:20 -0800
commit8c6b33e5f9cc2af39fd81627e616c4e3185ed939 (patch)
tree8274594948b00fbfd6d74a818062f8d8425ea223 /scripts/docgen.lua
parentMerge pull request #671 from mjlbach/kotlin_update_roots (diff)
parentdocgen: fix if malformed json entries present (diff)
downloadnvim-lspconfig-8c6b33e5f9cc2af39fd81627e616c4e3185ed939.tar
nvim-lspconfig-8c6b33e5f9cc2af39fd81627e616c4e3185ed939.tar.gz
nvim-lspconfig-8c6b33e5f9cc2af39fd81627e616c4e3185ed939.tar.bz2
nvim-lspconfig-8c6b33e5f9cc2af39fd81627e616c4e3185ed939.tar.lz
nvim-lspconfig-8c6b33e5f9cc2af39fd81627e616c4e3185ed939.tar.xz
nvim-lspconfig-8c6b33e5f9cc2af39fd81627e616c4e3185ed939.tar.zst
nvim-lspconfig-8c6b33e5f9cc2af39fd81627e616c4e3185ed939.zip
Merge pull request #702 from mjlbach/fix_docgen_2
docgen: fix if malformed json entries present
Diffstat (limited to 'scripts/docgen.lua')
-rw-r--r--scripts/docgen.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/docgen.lua b/scripts/docgen.lua
index 35ab6b73..33f78130 100644
--- a/scripts/docgen.lua
+++ b/scripts/docgen.lua
@@ -165,6 +165,9 @@ local function make_lsp_sections()
-- local function pre(s) return string.format("<pre>%s</pre>", s) end
-- local function code(s) return string.format("<code>%s</code>", s) end
+ if not (type(v) == "table") then
+ return
+ end
return make_section(0, '\n', {
"- "..make_section(0, ': ', {
bold(tick(k));