unified syntax for keywords

This commit is contained in:
VorTechnix 2023-07-20 14:06:02 -07:00
parent cec73f91da
commit 7fd26687b8
No known key found for this signature in database
GPG key ID: 091E91A69545D5BA

View file

@ -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
},
}