Josef-Friedrich / luakeys

LuaTeX package to parse key value options in Lua only, like keyval, kvsetkeys, kvoptions, xkeyval, pgfkeys but in Lua

Home Page:https://www.ctan.org/pkg/luakeys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: don't use standalone keys for second level

kalekje opened this issue · comments

How would I achieve the following:

luakeys.parse('hello,world,list={one,two,three}',{?})


hello = true
world = true
list = {one,two,three} <- I want naked_as_value = true for second-level stuff
local luakeys = require('luakeys')
local result = luakeys.parse('hello,world,list={one,two,three}', {
  naked_as_value = true,
  defs = {
    hello = { default = true },
    world = { default = true },
    list = { },
  }
})
luakeys.debug(result)