With version 20220801.503, I get code formatted like the following (I use two spaces for indentation)
ifumatch(uchar(c1.char), "[%l%u_]")
andumatch(uchar(c2.char), "[%l%u_]")
andumatch(uchar(c3.char), "[_-]")
andumatch(uchar(c4.char), "[%l%u]")
andumatch(uchar(c5.char), "[%l%u_]") thenlocalpen=node.new(PENALTY)
pen.penalty=tex.hyphenpenaltynode.set_attribute(pen, code_attribute, 1)
node.insert_after(head, c3, pen)
end
IMHO, the positioning of and is unfortunate, since it makes it hard to recognize where the code block actually begins. What I would like to have is a new variable lua-indent-continuation-line-level to get this:
ifumatch(uchar(c1.char), "[%l%u_]")
andumatch(uchar(c2.char), "[%l%u_]")
andumatch(uchar(c3.char), "[_-]")
andumatch(uchar(c4.char), "[%l%u]")
andumatch(uchar(c5.char), "[%l%u_]") thenlocalpen=node.new(PENALTY)
pen.penalty=tex.hyphenpenaltynode.set_attribute(pen, code_attribute, 1)
node.insert_after(head, c3, pen)
end
Maybe such a feature is already available; however, I couldn't find it.
With version 20220801.503, I get code formatted like the following (I use two spaces for indentation)
IMHO, the positioning of
andis unfortunate, since it makes it hard to recognize where the code block actually begins. What I would like to have is a new variablelua-indent-continuation-line-levelto get this:Maybe such a feature is already available; however, I couldn't find it.