summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser')
-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