summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-14 15:49:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-14 15:49:06 +0800
commitcb8bcd478129c490a2635d0b938de1e2d7c774d2 (patch)
treecb8ed24bb711b8170ae8fd26fab17a25edc28a86 /script/parser/luadoc.lua
parent1a682cdf32775f1e21bc76a17e168df67acb35c2 (diff)
downloadlua-language-server-cb8bcd478129c490a2635d0b938de1e2d7c774d2.zip
fix #1330
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index e8a6d2b3..37a1843d 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -19,7 +19,7 @@ X16 <- [a-fA-F0-9]
Token <- Integer / Name / String / Code / Symbol
Name <- ({} {%name} {})
-> Name
-Integer <- ({} {[0-9]+} !'.' {})
+Integer <- ({} {'-'? [0-9]+} !'.' {})
-> Integer
Code <- ({} '`' { (!'`' .)*} '`' {})
-> Code