Skip to content

Commit

Permalink
chore: Correct availability of clobals in reader/writers
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Aug 28, 2024
1 parent 680f236 commit 745a7bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/luacheck/builtin_standards/pandoc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
}

Expand All @@ -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",
Expand Down

0 comments on commit 745a7bb

Please sign in to comment.