When editing Lua module in Wikipedia, "show diff" in RTL languages wikis shows the diff of the code in RTL directionality.
Lua is written in latin alphabet ("if", "function") hence should always have LTR directionality.
This happen when setting "Show previews without reloading the page" in preferences