add underscore

This commit is contained in:
Simon Christ 2020-10-15 22:20:06 +02:00
parent 14e78e7235
commit 8dd2a7d099

View File

@ -15,7 +15,7 @@ macro add_attributes( level, expr )
insert_block = Expr(:block) insert_block = Expr(:block)
for (key, value) in zip(key_args, value_args) for (key, value) in zip(key_args, value_args)
push!(insert_block.args, Expr( push!(insert_block.args, Expr(
:(=), Expr(:ref, Symbol("_", level, "_defaults"), QuoteNode(Symbol(lowercase(string(T)), key))), value :(=), Expr(:ref, Symbol("_", level, "_defaults"), QuoteNode(Symbol(lowercase(string(T)), "_", key))), value
)) ))
end end
return quote return quote