summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-18 14:11:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-18 14:11:57 +0800
commit8e7cea5ebe6e41b817bda532ad077013f12bb4e5 (patch)
tree95b551f8f9b55a09f5c022d4083214b2059c4d2d
parentc9ff5c87c61faee4e4a2d724f9f7c88720816834 (diff)
downloadlua-language-server-8e7cea5ebe6e41b817bda532ad077013f12bb4e5.zip
修正bug
-rw-r--r--server/src/parser/grammar.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua
index 4c087024..c76fe1f1 100644
--- a/server/src/parser/grammar.lua
+++ b/server/src/parser/grammar.lua
@@ -120,7 +120,7 @@ IF <- Sp 'if' Cut
IN <- Sp 'in' Cut
LOCAL <- Sp 'local' Cut
NIL <- Sp 'nil' Cut
-NOT <- Sp {'not'} Cut
+NOT <- Sp 'not' Cut
OR <- Sp {'or'} Cut
REPEAT <- Sp 'repeat' Cut
RETURN <- Sp 'return' Cut
@@ -170,7 +170,7 @@ MulsList <- '*'
/ '/'
/ '%'
Unary <- Sp {UnaryList}
-UnaryList <- 'not'
+UnaryList <- NOT
/ '#'
/ '-'
/ '~'