haxe-formatter
haxe-formatter copied to clipboard
Object literal detection issue
This is not an object literal, just a block, but it respects the objectLiteralCurly
rule for some reason. From https://github.com/openfl/openfl/pull/2186.
Input file
class Foo
{
public static inline var sep = {
#if windows
"\\";
#else
"/";
#end
}
}
Optional: hxformat.json
{
"lineEnds": {
"leftCurly": "both",
"objectLiteralCurly": {
"leftCurly": "after"
}
}
}