diff options
| author | Zhizhen He <hezhizhen.yi@gmail.com> | 2023-03-23 16:35:08 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-23 16:35:08 +0800 |
| commit | c6105c449683b944b5d2138fcf82f18c657249e9 (patch) | |
| tree | 63a3c0ff4078e4e88c760261eee503b5319cfd32 /scripts | |
| parent | feat: add PyrightSetPythonPath command to pyright config (#2519) (diff) | |
| download | nvim-lspconfig-c6105c449683b944b5d2138fcf82f18c657249e9.tar nvim-lspconfig-c6105c449683b944b5d2138fcf82f18c657249e9.tar.gz nvim-lspconfig-c6105c449683b944b5d2138fcf82f18c657249e9.tar.bz2 nvim-lspconfig-c6105c449683b944b5d2138fcf82f18c657249e9.tar.lz nvim-lspconfig-c6105c449683b944b5d2138fcf82f18c657249e9.tar.xz nvim-lspconfig-c6105c449683b944b5d2138fcf82f18c657249e9.tar.zst nvim-lspconfig-c6105c449683b944b5d2138fcf82f18c657249e9.zip | |
chore: remove redundant config for Lua (#2523)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/docgen.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
