mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-22 09:27:39 +00:00
Reformat bracketed expressions in Lua
- Parenthesised expressions (function calls, arguments, etc...) should never have spaces in them. - Tables always will have spaces inside.
This commit is contained in:
@@ -238,8 +238,8 @@ local function matches(eq, exact, left, right)
|
||||
|
||||
-- If we've already explored/are exploring the left and right then return
|
||||
if eq[left] and eq[left][right] then return true end
|
||||
if not eq[left] then eq[left] = {[right] = true} else eq[left][right] = true end
|
||||
if not eq[right] then eq[right] = {[left] = true} else eq[right][left] = true end
|
||||
if not eq[left] then eq[left] = { [right] = true } else eq[left][right] = true end
|
||||
if not eq[right] then eq[right] = { [left] = true } else eq[right][left] = true end
|
||||
|
||||
-- Verify all pairs in left are equal to those in right
|
||||
for k, v in pairs(left) do
|
||||
|
Reference in New Issue
Block a user