summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-20 18:07:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-20 18:07:28 +0800
commit9de98dc808dc01fbef9e4abfe60d2d76f7691c13 (patch)
tree1c580232fd004f0be221fae6ff34e8e50d92da7a /script/parser
parente56f864d92fdd50d12abb04313e33593723613da (diff)
downloadlua-language-server-9de98dc808dc01fbef9e4abfe60d2d76f7691c13.zip
fix
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/luadoc.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index eca24c57..6e8500ba 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -12,10 +12,10 @@ Main <- (Token / Sp)*
Sp <- %s+
X16 <- [a-fA-F0-9]
Word <- [a-zA-Z0-9_]
-Token <- Name / String / Symbol / Integer
-Name <- ({} {[a-zA-Z_] [a-zA-Z0-9_.*-]*} {})
+Token <- Integer / Name / String / Symbol
+Name <- ({} {[a-zA-Z_0-9] [a-zA-Z0-9_.*-]*} {})
-> Name
-Integer <- ({} {[0-9]+} {})
+Integer <- ({} {[0-9]+} !'.' {})
-> Integer
String <- ({} StringDef {})
-> String