diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-08 18:45:25 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-08 18:45:25 +0800 |
commit | fd14f3bcd8534f937f2149dacc8712d5669812a0 (patch) | |
tree | da9f3011e442928fecb871d92bd00eaebdd3e605 /script | |
parent | af1bfbd0183106c319758ec540e66c0e7f5c9454 (diff) | |
download | lua-language-server-fd14f3bcd8534f937f2149dacc8712d5669812a0.zip |
Revert "fix #709"
This reverts commit af1bfbd0183106c319758ec540e66c0e7f5c9454.
Diffstat (limited to 'script')
-rw-r--r-- | script/parser/newparser.lua | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua index c110ca2d..1fd395e5 100644 --- a/script/parser/newparser.lua +++ b/script/parser/newparser.lua @@ -496,7 +496,7 @@ local function skipComment(isAction) pushCommentHeadError(left) end Index = Index + 2 - local longComment = start + 2 == Tokens[Index] and parseLongString() + local longComment = parseLongString() if longComment then longComment.type = 'comment.long' longComment.text = longComment[1] @@ -3640,26 +3640,14 @@ return function (lua, mode, version, options) State.ast = parseString() elseif mode == 'Number' then State.ast = parseNumber() - elseif mode == 'Name' then - State.ast = parseName() elseif mode == 'Exp' then State.ast = parseExp() elseif mode == 'Action' then State.ast = parseAction() end - if State.ast then State.ast.state = State end - while true do - if Index <= #Tokens then - unknownSymbol() - Index = Index + 2 - else - break - end - end - return State end |