diff options
Diffstat (limited to 'server/src/parser/ast.lua')
-rw-r--r-- | server/src/parser/ast.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua index 130f497c..ab3bcae0 100644 --- a/server/src/parser/ast.lua +++ b/server/src/parser/ast.lua @@ -841,7 +841,7 @@ local Defs = { return nil end local tags = {...} - for _, tag in ipairs(tags) do + for i, tag in ipairs(tags) do if State.Version ~= 'Lua 5.4' then pushError { type = 'UNSUPPORT_SYMBOL', @@ -861,6 +861,15 @@ local Defs = { tag = tag[1], } } + elseif i > 1 then + pushError { + type = 'MULTI_TAG', + start = tag.start, + finish = tag.finish, + info = { + tag = tag[1], + } + } end end return tags |