From c6105c449683b944b5d2138fcf82f18c657249e9 Mon Sep 17 00:00:00 2001 From: Zhizhen He Date: Thu, 23 Mar 2023 16:35:08 +0800 Subject: chore: remove redundant config for Lua (#2523) --- scripts/docgen.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/docgen.lua') diff --git a/scripts/docgen.lua b/scripts/docgen.lua index 119353ba..9f6c1bc1 100644 --- a/scripts/docgen.lua +++ b/scripts/docgen.lua @@ -196,7 +196,7 @@ local function make_lsp_sections() end -- https://github.github.com/gfm/#backslash-escapes - local function excape_markdown_punctuations(str) + local function escape_markdown_punctuations(str) local pattern = '\\(\\*\\|\\.\\|?\\|!\\|"\\|#\\|\\$\\|%\\|\'\\|(\\|)\\|,\\|-\\|\\/\\|:\\|;\\|<\\|=\\|>\\|@\\|\\[\\|\\\\\\|\\]\\|\\^\\|_\\|`\\|{\\|\\\\|\\|}\\)' return fn.substitute(str, pattern, '\\\\\\0', 'g') @@ -223,7 +223,7 @@ local function make_lsp_sections() make_section(2, '\n\n', { { v.default and 'Default: ' .. tick(inspect(v.default, { newline = '', indent = '' })) }, { v.items and 'Array items: ' .. tick(inspect(v.items, { newline = '', indent = '' })) }, - { excape_markdown_punctuations(v.description) }, + { escape_markdown_punctuations(v.description) }, }), }) end) -- cgit v1.2.3-70-g09d2