Merge pull request #2857 from vallode/annotation-parse-error-fix

Fix annotation parse error
develop
Myk 2023-02-09 21:21:53 -08:00 committed by GitHub
commit 0e8d7a4155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()