From 486fd3744fb7415bd0a443d8b680a93cd8b8afd1 Mon Sep 17 00:00:00 2001 From: Sergey Date: Tue, 26 Oct 2021 18:26:45 -0400 Subject: [PATCH] Adding ldoc readonly tag text in the extra_summary list --- docs/config.ld | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/config.ld b/docs/config.ld index a8bac3c8b..2e51ce765 100644 --- a/docs/config.ld +++ b/docs/config.ld @@ -643,6 +643,9 @@ local function generate_summary(item) has_show_more = v.showcount or has_show_more end end + if item.tags.readonly then + ret[#ret+1] = {title = "read only"} + end item.extra_summary = #ret > 0 and ret or nil item.has_show_more = has_show_more