diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-15 21:06:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-15 21:06:07 +0800 |
commit | 6fd670b15c9403e92ab9a803f8fa885fe3d9bee2 (patch) | |
tree | ae9f0559a6acee9aa1df64f6090f14726bde77c1 /script/parser/luadoc.lua | |
parent | 241c518d2e02f2b65c59460d0bb8d4101d98614a (diff) | |
download | lua-language-server-6fd670b15c9403e92ab9a803f8fa885fe3d9bee2.zip |
cleanup
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r-- | script/parser/luadoc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 99ef8781..061110c8 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1,7 +1,7 @@ local m = require 'lpeglabel' local re = require 'parser.relabel' local guide = require 'parser.guide' -local parser = require 'parser.newparser' +local compile = require 'parser.compile' local util = require 'utility' local TokenTypes, TokenStarts, TokenFinishs, TokenContents, TokenMarks @@ -1320,7 +1320,7 @@ local function trimTailComment(text) comment = text:sub(3) end if comment:find '^%s*[\'"[]' then - local state = parser(comment:gsub('^%s+', ''), 'String') + local state = compile(comment:gsub('^%s+', ''), 'String') if state and state.ast then comment = state.ast[1] end |