From 745a7bbae2bf4c1102014d4fc75174824d43ad9f Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Wed, 28 Aug 2024 18:54:14 +0300 Subject: [PATCH] chore: Correct availability of clobals in reader/writers --- src/luacheck/builtin_standards/pandoc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/luacheck/builtin_standards/pandoc.lua b/src/luacheck/builtin_standards/pandoc.lua index 097010af..f640ea3e 100644 --- a/src/luacheck/builtin_standards/pandoc.lua +++ b/src/luacheck/builtin_standards/pandoc.lua @@ -28,7 +28,8 @@ local common = { -- https://pandoc.org/lua-filters.html local filter = { read_globals = { - "FORMAT", "PANDOC_READER_OPTIONS", "PANDOC_WRITER_OPTIONS", "PANDOC_SCRIPT_FILE" + "FORMAT", + "PANDOC_READER_OPTIONS", "PANDOC_WRITER_OPTIONS", "PANDOC_SCRIPT_FILE", }, } @@ -38,6 +39,7 @@ local custom = { globals = { -- custom scope "PANDOC_DOCUMENT", + "PANDOC_READER_OPTIONS", "PANDOC_WRITER_OPTIONS", "PANDOC_SCRIPT_FILE", "ByteStringReader", "ByteStringWriter", "Doc", "Extensions", "Reader", "Template", "Writer", -- extra types applicable to readers/writers "Blocksep", "CaptionedImage", "DisplayMath", "DoubleQuoted", "InlineMath", "SingleQuoted",