Skip to content

Commit fd14f3b

Browse files
committed
Revert "fix #709"
This reverts commit af1bfbd.
1 parent af1bfbd commit fd14f3b

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

changelog.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# changelog
22

33
## 2.4.2
4-
* `FIX` [#707](https://github.com./sumneko/lua-language-server/issues/707)
54
* `FIX` [#709](https://github.com./sumneko/lua-language-server/issues/709)
65

76
## 2.4.1

script/parser/newparser.lua

+1-13
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ local function skipComment(isAction)
496496
pushCommentHeadError(left)
497497
end
498498
Index = Index + 2
499-
local longComment = start + 2 == Tokens[Index] and parseLongString()
499+
local longComment = parseLongString()
500500
if longComment then
501501
longComment.type = 'comment.long'
502502
longComment.text = longComment[1]
@@ -3640,26 +3640,14 @@ return function (lua, mode, version, options)
36403640
State.ast = parseString()
36413641
elseif mode == 'Number' then
36423642
State.ast = parseNumber()
3643-
elseif mode == 'Name' then
3644-
State.ast = parseName()
36453643
elseif mode == 'Exp' then
36463644
State.ast = parseExp()
36473645
elseif mode == 'Action' then
36483646
State.ast = parseAction()
36493647
end
3650-
36513648
if State.ast then
36523649
State.ast.state = State
36533650
end
36543651

3655-
while true do
3656-
if Index <= #Tokens then
3657-
unknownSymbol()
3658-
Index = Index + 2
3659-
else
3660-
break
3661-
end
3662-
end
3663-
36643652
return State
36653653
end

0 commit comments

Comments
 (0)