diff options
-rw-r--r-- | server/src/parser/grammar.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua index 5aa5d14c..3525677a 100644 --- a/server/src/parser/grammar.lua +++ b/server/src/parser/grammar.lua @@ -515,14 +515,13 @@ Emmy <- '---@' ]] grammar 'Emmy' [[ -Emmy <- EmmySp '---' %s* - ( '@' EmmyBody ShortComment - / EmmyComments - ) +Emmy <- EmmyAction + / EmmyComments +EmmyAction <- EmmySp '---' %s* '@' EmmyBody ShortComment EmmySp <- (!'---' Comment / %s / %nl)* EmmyComments <- EmmyComment+ -> EmmyComment -EmmyComment <- {(!%nl .)+} +EmmyComment <- EmmySp '---' %s* !'@' {(!%nl .)*} EmmyBody <- 'class' %s+ EmmyClass -> EmmyClass / 'type' %s+ EmmyType -> EmmyType / 'alias' %s+ EmmyAlias -> EmmyAlias |