diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-27 16:50:49 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-27 16:50:49 +0800 |
commit | d19d957a4a141c854f3acb3f4292dfdb5b79e137 (patch) | |
tree | 38f874683055e361b83ab11bfb3369a8eed6b82d /server/src/parser/grammar.lua | |
parent | 5a1a7eba965aa447d32f2c3be054bcbbdca0388b (diff) | |
download | lua-language-server-d19d957a4a141c854f3acb3f4292dfdb5b79e137.zip |
整理代码
Diffstat (limited to 'server/src/parser/grammar.lua')
-rw-r--r-- | server/src/parser/grammar.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua index 4a483514..a125bfe4 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 @@ -169,7 +169,7 @@ MulsList <- '*' / '//' / '/' / '%' -Unary <- Sp {UnaryList} +Unary <- Sp {} {UnaryList} UnaryList <- NOT / '#' / '-' |