diff --git a/src/luacheck/builtin_standards/init.lua b/src/luacheck/builtin_standards/init.lua index 2771d48e..d0068f9e 100644 --- a/src/luacheck/builtin_standards/init.lua +++ b/src/luacheck/builtin_standards/init.lua @@ -347,8 +347,20 @@ builtin_standards.sile = { -- https://pandoc.org/lua-filters.html#global-variables builtin_standards.pandoc = { globals = { + -- Global modules "pandoc", "lpeg", "re", - "PANDOC_READER_OPTIONS", "PANDOC_WRITER_OPTIONS", "PANDOC_VERSION", "PANDOC_API_VERSION", "PANDOC_SCRIPT_FILE", "PANDOC_STATE", + -- Global variables passed to filters + "FORMAT", "PANDOC_READER_OPTIONS", "PANDOC_WRITER_OPTIONS", "PANDOC_VERSION", "PANDOC_API_VERSION", + "PANDOC_SCRIPT_FILE", "PANDOC_STATE", + -- Globals that can be used to create filter elements + -- - top level + "Inlines", "Inline", "Blocks", "Block", "Meta", "Pandoc", + -- - inline + "Cite", "Code", "Emph", "Image", "LineBreak", "Link", "Math", "Note", "Quoted", "RawInline", "SmallCaps", + "SoftBreak", "Space", "Span", "Str", "Strikeout", "Strong", "Subscript", "Superscript", "Underline", + -- - block + "BlockQuote", "BulletList", "CodeBlock", "DefinitionList", "Div", "Figure", "Header", "HorizontalRule", + "LineBlock", "OrderedList", "Para", "Plain", "RawBlock", "Table", } }