summaryrefslogtreecommitdiff
path: root/script/parser/grammar.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-14 17:59:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-14 17:59:00 +0800
commit5bb66bb4edf816367caa39d40ea194c4abf1e7e6 (patch)
tree34d5ddd8c3edbdc2725a99b37543bcc268e4999c /script/parser/grammar.lua
parenta00010ff44dff173a6eb5fdd6dc51f47e2b1fbf3 (diff)
downloadlua-language-server-5bb66bb4edf816367caa39d40ea194c4abf1e7e6.zip
Revert "fix #597"
This reverts commit a00010ff44dff173a6eb5fdd6dc51f47e2b1fbf3.
Diffstat (limited to 'script/parser/grammar.lua')
-rw-r--r--script/parser/grammar.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/script/parser/grammar.lua b/script/parser/grammar.lua
index 5120df20..2c046f0e 100644
--- a/script/parser/grammar.lua
+++ b/script/parser/grammar.lua
@@ -270,10 +270,10 @@ StringClose <- ']' =eq ']'
]]
grammar 'Number' [[
-Number <- Sp ({} {~ '-'? NumberDef ~} {}) -> Number
+Number <- Sp ({} {'-'? NumberDef} {}) -> Number
NumberSuffix?
ErrNumber?
-NumberDef <- Number16 / Integer2 / Number10
+NumberDef <- Number16 / Number10
NumberSuffix<- ({} {[uU]? [lL] [lL]}) -> FFINumber
/ ({} {[iI]}) -> ImaginaryNumber
ErrNumber <- ({} {([0-9a-zA-Z] / '.')+}) -> UnknownSymbol
@@ -293,9 +293,6 @@ Float16 <- '.' X16+
/ '.' ({} {Word*}) -> MustX16
Float16Exp <- [pP] [+-]? [0-9]+
/ ({} [pP] [+-]? {}) -> MissExponent
-
-Integer2 <- ({} '0' [bB] {[01]+})
- -> Integer2
]]
grammar 'Name' [[