summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-06-26 10:11:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-06-26 10:11:28 +0800
commit64003fd62f6ab2e373bcbf74e87be905505a1045 (patch)
tree7e4db5e1a616a42554101114b19beccfe5722b83
parent505761b27889fafc73e7fc73d2873ef7ff40ce29 (diff)
downloadlua-language-server-64003fd62f6ab2e373bcbf74e87be905505a1045.zip
修正 EmmyComment 后面跟着的 Emmy 识别错误的bug
-rw-r--r--server/src/parser/grammar.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua
index 8b0f7273..11ee6901 100644
--- a/server/src/parser/grammar.lua
+++ b/server/src/parser/grammar.lua
@@ -519,7 +519,7 @@ Emmy <- EmmySp '---@' EmmyBody ShortComment
EmmySp <- (!'---@' !'---' Comment / %s / %nl)*
EmmyComments <- (EmmyComment (%nl EmmyComment)*)
-> EmmyComment
-EmmyComment <- EmmySp '---' %s* {(!%nl .)*}
+EmmyComment <- EmmySp '---' !'@' %s* {(!%nl .)*}
EmmyBody <- 'class' %s+ EmmyClass -> EmmyClass
/ 'type' %s+ EmmyType -> EmmyType
/ 'alias' %s+ EmmyAlias -> EmmyAlias