summaryrefslogtreecommitdiff
path: root/server/src/parser/grammar.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/parser/grammar.lua')
-rw-r--r--server/src/parser/grammar.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua
index c2d2a2a5..7c29881b 100644
--- a/server/src/parser/grammar.lua
+++ b/server/src/parser/grammar.lua
@@ -509,7 +509,8 @@ Emmy <- '---@'
]]
grammar 'Emmy' [[
-Emmy <- '---@' EmmyBody ShortComment %nl*
+Emmy <- EmmySp '---@' EmmyBody ShortComment
+EmmySp <- (!'---@' Comment / %s / %nl)*
EmmyBody <- 'class' %s+ EmmyClass -> EmmyClass
/ 'type' %s+ EmmyType -> EmmyType
/ 'alias' %s+ EmmyAlias -> EmmyAlias