diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-03 17:51:58 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-03 17:51:58 +0800 |
commit | 6e0babeb07a4d161730a3b55707755037e3fd23b (patch) | |
tree | b06f8ced8b5b60b7cc5c9590049b9e6266f159da /server/src | |
parent | 1a2079b397075658c152b000f984d1cee9634c7b (diff) | |
download | lua-language-server-6e0babeb07a4d161730a3b55707755037e3fd23b.zip |
更新语法解析
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 ]] |