summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-09-06 15:34:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-09-06 15:34:04 +0800
commit436e23fa9f562d9a10bee55edcc415ae3a7080c2 (patch)
treeb61a063dcd0c81f489bb17878030689b03d50ca1 /script/parser
parente6443a06f83ed6e577cbf8ba8be6ab312e1f97c2 (diff)
downloadlua-language-server-436e23fa9f562d9a10bee55edcc415ae3a7080c2.zip
fix #1493
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/luadoc.lua2
-rw-r--r--script/parser/tokens.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index 4393e23d..793903b0 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 a4de7f88..5f455bee 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