diff --git a/changelog.md b/changelog.md index af1ab2646..e2a1203bd 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,7 @@ * `CHG` `document-symbol`: redesigned to better support for `Sticky Scroll` feature of VSCode * `FIX` `diagnostics.workspaceDelay` can not prevent first workspace diagnostic * `FIX` [#1476](https://github.com/sumneko/lua-language-server/issues/1476) +* `FIX` [#1493](https://github.com/sumneko/lua-language-server/issues/1493) ## 3.5.3 `2022-8-13` diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 4393e23d4..793903b04 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -63,7 +63,7 @@ Symbol <- ({} { } {}) -> Symbol ]], { - s = m.S' \t', + s = m.S' \t\v\f', ea = '\a', eb = '\b', ef = '\f', diff --git a/script/parser/tokens.lua b/script/parser/tokens.lua index a4de7f88b..5f455beec 100644 --- a/script/parser/tokens.lua +++ b/script/parser/tokens.lua @@ -1,6 +1,6 @@ local m = require 'lpeglabel' -local Sp = m.S' \t' +local Sp = m.S' \t\v\f' local Nl = m.P'\r\n' + m.S'\r\n' local Number = m.R'09'^1 local Word = m.R('AZ', 'az', '__', '\x80\xff') * m.R('AZ', 'az', '09', '__', '\x80\xff')^0