avoid last , in enums parsing

This commit is contained in:
Victor Bombi
2020-04-28 14:05:05 +02:00
parent 98e6ff7051
commit be187bcdc4

View File

@@ -1094,7 +1094,9 @@ function M.Parser()
else --should be string
value = prevvalue .. "+1"
end
if name then --avoid last , if present
table.insert(outtab.enums[enumname],{name=name,value=value})
end
end
end
elseif it.re_name == "struct_re" then