From 9de98dc808dc01fbef9e4abfe60d2d76f7691c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 20 Jul 2021 18:07:28 +0800 Subject: fix --- script/parser/luadoc.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'script/parser') 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 -- cgit v1.2.3