mirror of
https://github.com/Reuh/candran.git
synced 2025-10-27 09:59:29 +00:00
Lua <5.4: Only error when the variable is declared with an attribute
This commit is contained in:
parent
10be62a2fe
commit
cecb2aea03
2 changed files with 41 additions and 17 deletions
|
|
@ -1,7 +1,13 @@
|
|||
targetName = "Lua 5.3"
|
||||
|
||||
-- Unsuported features
|
||||
tags.AttributeId = nil
|
||||
tags.AttributeId = (t)
|
||||
if t[2] then
|
||||
error("target does not support variable attributes")
|
||||
else
|
||||
return t[1]
|
||||
end
|
||||
end
|
||||
|
||||
#local patch = output
|
||||
#output = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue