Closed sircfenner closed 3 months ago
Oh! This is a side effect of checking for instances where darklua writes a number followed by the concat operator, which needs to insert a space (like 1 ..var
, instead of 1..var
where it would read 1.
as a number)
Current behavior, when running
darklua process
using either dense or readable generator and no rules specified:Expected behavior is that the redundant space is not added.
Looks like the problematic generators are calling
write_field
, which callswrite_prefix
, which eventually callsshould_break_with_space
. This returnstrue
where the identifier in the relevant part of the field expression ends in a number.Tested on darklua version 0.13.0. The issue does not occur with the "retain_lines" generator.