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