UVL: Export raw value of "valueof" for references
authorSteven Barth <steven@midlink.org>
Wed, 10 Sep 2008 15:35:11 +0000 (15:35 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 10 Sep 2008 15:35:11 +0000 (15:35 +0000)
libs/uvl/luasrc/uvl.lua

index f3334615e6864d08bd8bb598cc0a1c1b98965580..52531be32d9f9bd85ec6b5883013eae2cc1c652b 100644 (file)
@@ -579,6 +579,7 @@ function UVL._parse_var(self, scheme, k, v)
                                end
                                t.type   = "reference"
                                t.values = values
+                               t.valueof = type(v2) == "table" and v2 or {v2}
                        elseif k == "required" then
                                t[k] = _bool(v2)
                        else