Skip to content

Commit

Permalink
feat: Add builtin standarts for Pandoc filter globals
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Aug 27, 2024
1 parent cc089e3 commit 04ca015
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/luacheck/builtin_standards/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,14 @@ builtin_standards.sile = {
}
}

-- https://pandoc.org/lua-filters.html#global-variables
builtin_standards.pandoc = {
globals = {
"pandoc", "lpeg", "re",
"PANDOC_READER_OPTIONS", "PANDOC_WRITER_OPTIONS", "PANDOC_VERSION", "PANDOC_API_VERSION", "PANDOC_SCRIPT_FILE", "PANDOC_STATE",
}
}

builtin_standards.none = {}

return builtin_standards

0 comments on commit 04ca015

Please sign in to comment.