While writing a config I came across a mayor flaw writing them:
{
@name(Config)
colors!{
background!{
@type(STRING)
constraints(c -> c.matches("#[0-9a-fA-F]{6}"))
default("#333333")
}
hover!{
@type(STRING)
constraints(c -> c.matches("#[0-9a-fA-F]{6}"))
default("#636363")
}
text!{
@type(STRING)
constraints(c -> c.matches("#[0-9a-fA-F]{6}"))
default("#636363")
}
}
nameOrder(STRING[])
}
There are many duplicates of the same thing. Maybe there should be a way to extract the common part from them.
While writing a config I came across a mayor flaw writing them:
There are many duplicates of the same thing. Maybe there should be a way to extract the common part from them.