diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-02 16:45:47 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-02 16:45:47 +0800 |
commit | a1fc6ac2f84804d3dbbde2ce5df02907f496ce7f (patch) | |
tree | 7faa006ae45ed200b63a09782eba366608141b8c /script/parser | |
parent | d7e96432ccd7f736c0f269ccca68cf4b840927db (diff) | |
download | lua-language-server-a1fc6ac2f84804d3dbbde2ce5df02907f496ce7f.zip |
#687
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/luadoc.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 2682e2d4..9f286ed4 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1098,6 +1098,14 @@ local function parseModule() return result end +local function parseAsync() + return { + type = 'doc.async', + start = getFinish(), + finish = getFinish(), + } +end + local function convertTokens() local tp, text = nextToken() if not tp then @@ -1141,6 +1149,8 @@ local function convertTokens() return parseDiagnostic() elseif text == 'module' then return parseModule() + elseif text == 'async' then + return parseAsync() end end |