diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-20 18:07:28 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-20 18:07:28 +0800 |
commit | 9de98dc808dc01fbef9e4abfe60d2d76f7691c13 (patch) | |
tree | 1c580232fd004f0be221fae6ff34e8e50d92da7a /script/parser | |
parent | e56f864d92fdd50d12abb04313e33593723613da (diff) | |
download | lua-language-server-9de98dc808dc01fbef9e4abfe60d2d76f7691c13.zip |
fix
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/luadoc.lua | 6 |
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 |