Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/dev/Lua API.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7468,6 +7468,15 @@ Importing scripts

--@ module = true

In order to be recognized, this line **must** begin with ``--@`` with no
whitespace characters before it::

--@ module = true OK
--@module = true OK
-- @module = true NOT OK (no --@ found due to space after --)
--@module = true NOT OK (leading space, --@ is not at the beginning of the line)
---@module = true NOT OK (leading dash, --@ is not at the beginning of the line)

2. Include a check for ``dfhack_flags.module``, and avoid running any code
that has side-effects if this flag is true. For instance::

Expand Down