File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 3
3
## 1.12.0
4
4
* ` NEW ` [ #340 ] ( https://github.com/sumneko/lua-language-server/pull/340 ) : supports ` ---@type table<string, number> `
5
5
* ` FIX ` [ #355 ] ( https://github.com/sumneko/lua-language-server/pull/355 )
6
+ * ` FIX ` [ #359 ] ( https://github.com/sumneko/lua-language-server/issues/359 )
6
7
7
8
## 1.11.2
8
9
` 2021-1-7 `
Original file line number Diff line number Diff line change @@ -547,6 +547,7 @@ local Defs = {
547
547
finish = finish - 1 ,
548
548
[1 ] = n ,
549
549
}
550
+ State .LastRaw = number
550
551
return State .LastNumber
551
552
else
552
553
PushError {
@@ -560,12 +561,13 @@ local Defs = {
560
561
finish = finish - 1 ,
561
562
[1 ] = 0 ,
562
563
}
564
+ State .LastRaw = number
563
565
return State .LastNumber
564
566
end
565
567
end ,
566
568
FFINumber = function (start , symbol )
567
569
local lastNumber = State .LastNumber
568
- if mathType ( lastNumber [ 1 ]) == ' float ' then
570
+ if State . LastRaw : find ( ' . ' , 1 , true ) then
569
571
PushError {
570
572
type = ' UNKNOWN_SYMBOL' ,
571
573
start = start ,
You can’t perform that action at this time.
0 commit comments