RuleScript v1.10.0-rc1.5
Pre-release
Pre-release
RuleScript v1.10.0-rc1.5
RuleScript v1.10.0-rc1.5 fixes formatter output for HostTrigger function attributes.
HostTrigger Attribute Formatting
RuleScriptFormatter.Format now keeps @HostTrigger attached to the @ symbol and places the following function declaration on its own line.
Input:
@HostTrigger("TriggerTest") function Test():
Print("Something triggered");
end
Formatted output:
@HostTrigger("TriggerTest")
function Test():
Print("Something triggered");
end
The formatter also normalizes spaced attribute input:
@ HostTrigger("TriggerTest") export function Test():
Print("Something triggered");
endfunction
to:
@HostTrigger("TriggerTest")
export function Test():
Print("Something triggered");
endfunction
Compatibility Notes
- HostTrigger syntax is unchanged.
- Function and exported function declarations remain unchanged.
- The formatter change only affects attribute spacing and declaration line breaks.
Validation
This release candidate is covered by tests for:
- formatting
@HostTrigger(...) functiononto separate lines - preserving
@HostTriggerwithout a space after@ - formatting
@HostTrigger(...) export functionwithout splittingexport function - full regression coverage