Skip to content

Commit be468fa

Browse files
authored
Merge pull request #5668 from opticaldisc/patch-1
Add more detail about --@ lines in the Lua API doc.
2 parents 911f949 + fc1b588 commit be468fa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/dev/Lua API.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7468,6 +7468,15 @@ Importing scripts
74687468

74697469
--@ module = true
74707470

7471+
In order to be recognized, this line **must** begin with ``--@`` with no
7472+
whitespace characters before it::
7473+
7474+
--@ module = true OK
7475+
--@module = true OK
7476+
-- @module = true NOT OK (no --@ found due to space after --)
7477+
--@module = true NOT OK (leading space, --@ is not at the beginning of the line)
7478+
---@module = true NOT OK (leading dash, --@ is not at the beginning of the line)
7479+
74717480
2. Include a check for ``dfhack_flags.module``, and avoid running any code
74727481
that has side-effects if this flag is true. For instance::
74737482

0 commit comments

Comments
 (0)