Fix annotation parse error

develop
vallode 2023-02-09 23:50:11 +01:00
parent 497d8e1ff7
commit 991c6d89e8
1 changed files with 1 additions and 1 deletions

@ -659,7 +659,7 @@ function Script:get_flags()
local f = io.open(self.path) local f = io.open(self.path)
local contents = f:read('*all') local contents = f:read('*all')
f:close() f:close()
for line in contents:gmatch('%-%-@([^\n]+)') do for line in contents:gmatch('^%-%-@([^\n]+)') do
local chunk = load(line, self.path, 't', self._flags) local chunk = load(line, self.path, 't', self._flags)
if chunk then if chunk then
chunk() chunk()