Skip to content

Commit

Permalink
Add new vector library (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacesc authored Jan 10, 2025
1 parent 99ba55b commit 9127d23
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/lexer/language.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ local language = {
["string"] = "table",
["table"] = "table",
["utf8"] = "table",
["vector"] = "table",

-- Roblox Functions
["DebuggerManager"] = "function",
Expand Down Expand Up @@ -316,6 +317,25 @@ local language = {
charpattern = "string",
},

vector = {
abs = "function",
angle = "function",
ceil = "function",
clamp = "function",
create = "function",
cross = "function",
dot = "function",
floor = "function",
magnitude = "function",
max = "function",
min = "function",
normalize = "function",
sign = "function",

one = "vector",
zero = "vector",
},

-- Roblox Libraries
Axes = {
new = "function",
Expand Down

0 comments on commit 9127d23

Please sign in to comment.