summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-20 23:10:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-20 23:10:41 +0800
commit08d38c50e06663622264ae8c64bc8dd2092f63e1 (patch)
tree18332616378d951e596de3d098038548bf3e4569
parent4ca61ec457822dd14966afa0752340ae8ce180a1 (diff)
downloadlua-language-server-08d38c50e06663622264ae8c64bc8dd2092f63e1.zip
fix wrong macro in meta math
-rw-r--r--meta/template/math.lua78
1 files changed, 39 insertions, 39 deletions
diff --git a/meta/template/math.lua b/meta/template/math.lua
index 99d00555..4f369728 100644
--- a/meta/template/math.lua
+++ b/meta/template/math.lua
@@ -1,41 +1,41 @@
---@meta
----@DES 'math'
+---#DES 'math'
---@class math*
----@DES 'math.huge'
+---#DES 'math.huge'
---@field huge number
---#if VERSION >= 5.3 then
----@DES 'math.maxinteger'
+---#DES 'math.maxinteger'
---@field maxinteger integer
----@DES 'math.mininteger'
+---#DES 'math.mininteger'
---@field mininteger integer
---#end
----@DES 'math.pi'
+---#DES 'math.pi'
---@field pi number
math = {}
----@DES 'math.abs'
+---#DES 'math.abs'
---@param x number
---@return number
function math.abs(x) end
----@DES 'math.acos'
+---#DES 'math.acos'
---@param x number
---@return number
function math.acos(x) end
----@DES 'math.asin'
+---#DES 'math.asin'
---@param x number
---@return number
function math.asin(x) end
---#if VERSION <= 5.2 then
----@DES 'math.atan<5.2'
+---#DES 'math.atan<5.2'
---@param y number
---@return number
function math.atan(y) end
---#else
----@DES 'math.atan>5.3'
+---#DES 'math.atan>5.3'
---@param y number
---@param x? number
---@return number
@@ -43,69 +43,69 @@ function math.atan(y, x) end
---#end
---@version <5.2
----@DES 'math.atan2'
+---#DES 'math.atan2'
---@param y number
---@param x number
---@return number
function math.atan2(y, x) end
----@DES 'math.ceil'
+---#DES 'math.ceil'
---@param x number
---@return integer
function math.ceil(x) end
----@DES 'math.cos'
+---#DES 'math.cos'
---@param x number
function math.cos(x) end
---@version <5.2
----@DES 'math.cosh'
+---#DES 'math.cosh'
---@param x number
---@return number
function math.cosh(x) end
----@DES 'math.deg'
+---#DES 'math.deg'
---@param x number
---@return number
function math.deg(x) end
----@DES 'math.exp'
+---#DES 'math.exp'
---@param x number
---@return number
function math.exp(x) end
----@DES 'math.floor'
+---#DES 'math.floor'
---@param x number
---@return number
function math.floor(x) end
----@DES 'math.fmod'
+---#DES 'math.fmod'
---@param x number
---@param y number
---@return number
function math.fmod(x, y) end
---@version <5.2
----@DES 'math.frexp'
+---#DES 'math.frexp'
---@param x number
---@return number m
---@return number e
function math.frexp(x) end
---@version <5.2
----@DES 'math.ldexp'
+---#DES 'math.ldexp'
---@param m number
---@param e number
---@return number
function math.ldexp(m, e) end
---#if VERSION <= 5.1 then
----@DES 'math.log<5.1'
+---#DES 'math.log<5.1'
---@param x number
---@return number
function math.log(x) end
---#else
----@DES 'math.log>5.2'
+---#DES 'math.log>5.2'
---@param x number
---@param base? integer
---@return number
@@ -113,42 +113,42 @@ function math.log(x, base) end
---#end
---@version <5.1
----@DES 'math.log10'
+---#DES 'math.log10'
---@param x number
---@return number
function math.log10(x) end
----@DES 'math.max'
+---#DES 'math.max'
---@param x number
---@vararg number
---@return number
function math.max(x, ...) end
----@DES 'math.min'
+---#DES 'math.min'
---@param x number
---@vararg number
---@return number
function math.min(x, ...) end
----@DES 'math.modf'
+---#DES 'math.modf'
---@param x number
---@return integer
---@return number
function math.modf(x) end
---@version <5.2
----@DES 'math.pow'
+---#DES 'math.pow'
---@param x number
---@param y number
---@return number
function math.pow(x, y) end
----@DES 'math.rad'
+---#DES 'math.rad'
---@param x number
---@return number
function math.rad(x) end
----@DES 'math.random'
+---#DES 'math.random'
---@overload fun():number
---@overload fun(m: integer):integer
---@param m integer
@@ -157,50 +157,50 @@ function math.rad(x) end
function math.random(m, n) end
---#if VERSION >= 5.4 then
----@DES 'math.randomseed>5.4'
+---#DES 'math.randomseed>5.4'
---@param x? integer
---@param y? integer
function math.randomseed(x, y) end
---#else
----@DES 'math.randomseed<5.3'
+---#DES 'math.randomseed<5.3'
---@param x integer
function math.randomseed(x) end
---#end
----@DES 'math.sin'
+---#DES 'math.sin'
---@param x number
---@return number
function math.sin(x) end
---@version <5.2
----@DES 'math.sinh'
+---#DES 'math.sinh'
---@param x number
---@return number
function math.sinh(x) end
----@DES 'math.sqrt'
+---#DES 'math.sqrt'
---@param x number
---@return number
function math.sqrt(x) end
----@DES 'math.tan'
+---#DES 'math.tan'
---@param x number
---@return number
function math.tan(x) end
---@version <5.2
----@DES 'math.tanh'
+---#DES 'math.tanh'
---@param x number
---@return number
function math.tanh(x) end
---@version >5.3
----@DES 'math.tointeger'
+---#DES 'math.tointeger'
---@param x number
---@return integer?
function math.tointeger(x) end
----@DES 'math.type'
+---#DES 'math.type'
---@param x any
---@return
---| '"integer"'
@@ -208,7 +208,7 @@ function math.tointeger(x) end
---| 'nil'
function math.type(x) end
----@DES 'math.ult'
+---#DES 'math.ult'
---@param m integer
---@param n integer
---@return boolean