From 7fd26687b8c128264d9dff1438b409ef9b2c83b2 Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Thu, 20 Jul 2023 14:06:02 -0700 Subject: [PATCH] unified syntax for keywords --- .../utils/parse/axes_parser.lua | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/worldeditadditions_core/utils/parse/axes_parser.lua b/worldeditadditions_core/utils/parse/axes_parser.lua index abdde5b..43d0120 100644 --- a/worldeditadditions_core/utils/parse/axes_parser.lua +++ b/worldeditadditions_core/utils/parse/axes_parser.lua @@ -27,33 +27,33 @@ end local keywords = { -- Compass keywords compass = { - n = "z", north = "z", + ["n"] = "z", ["north"] = "z", ["-n"] = "-z", ["-north"] = "-z", - s = "-z", south = "-z", + ["s"] = "-z", ["south"] = "-z", ["-s"] = "z", ["-south"] = "z", - e = "x", east = "x", + ["e"] = "x", ["east"] = "x", ["-e"] = "-x", ["-east"] = "-x", - w = "-x", west = "-x", + ["w"] = "-x", ["west"] = "-x", ["-w"] = "x", ["-west"] = "x", + ["u"] = "y", ["up"] = "y", + ["d"] = "-y", ["down"] = "-y", }, -- Direction keywords dir = { - ["?"] = "front", f = "front", - facing = "front", front = "front", - b = "back", back = "back", - behind = "back", rear = "back", - l = "left", left = "left", - r = "right", right = "right", - u = "up", up = "up", - d = "down", down = "down", + ["?"] = "front", ["f"] = "front", + ["facing"] = "front", ["front"] = "front", + ["b"] = "back", ["back"] = "back", + ["behind"] = "back", ["rear"] = "back", + ["l"] = "left", ["left"] = "left", + ["r"] = "right", ["right"] = "right", }, -- Mirroring keywords mirroring = { - sym = true, symmetrical = true, - mirror = true, mir = true, - rev = true, reverse = true, + ["sym"] = true, ["symmetrical"] = true, + ["mirror"] = true, ["mir"] = true, + ["rev"] = true, ["reverse"] = true, ["true"] = true }, }