diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/parser/grammar.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua index 6ab9ded0..133ffbbd 100644 --- a/server/src/parser/grammar.lua +++ b/server/src/parser/grammar.lua @@ -232,9 +232,9 @@ ErrNumber <- ({} {([0-9a-zA-Z] / '.')+}) Number10 <- Float10 Float10Exp? / Integer10 Float10? Float10Exp? -Integer10 <- '0' / [1-9] [0-9]* '.'? [0-9]* +Integer10 <- [0-9]+ '.'? [0-9]* Float10 <- '.' [0-9]+ -Float10Exp <- [eE] [+-]? [1-9] [0-9]* +Float10Exp <- [eE] [+-]? [0-9]+ / ({} [eE] [+-]? {}) -> MissExponent Number16 <- '0' [xX] Float16 Float16Exp? @@ -243,7 +243,7 @@ Integer16 <- X16+ '.'? X16* / ({} {Word*}) -> MustX16 Float16 <- '.' X16+ / '.' ({} {Word*}) -> MustX16 -Float16Exp <- [pP] [+-]? [1-9] [0-9]* +Float16Exp <- [pP] [+-]? [0-9]+ / ({} [pP] [+-]? {}) -> MissExponent ]] |