From 1a889f53a34fdb2ae77bfe7189a5e00a2e723187 Mon Sep 17 00:00:00 2001 From: sumneko Date: Thu, 18 Apr 2019 21:48:05 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/parser/grammar.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'server/src/parser/grammar.lua') diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua index 97d60402..d5c375f0 100644 --- a/server/src/parser/grammar.lua +++ b/server/src/parser/grammar.lua @@ -536,9 +536,7 @@ EmmyIncomplete <- MustEmmyName EmmyClass <- (MustEmmyName EmmyParentClass?) EmmyParentClass <- %s* ':' %s* MustEmmyName -EmmyType <- (EmmyTypeDef EmmyTypeEnums*) - -> EmmyType -EmmyTypeDef <- EmmyFunctionType +EmmyType <- EmmyFunctionType / EmmyArrayType / EmmyTableType / EmmyCommonType @@ -549,11 +547,11 @@ EmmyTypeName <- EmmyFunctionType / EmmyArrayType / EmmyTableType / MustEmmyName -EmmyTypeEnums <- %s+ '|' %s+ String +EmmyTypeEnums <- %s* '|' %s* String -EmmyAlias <- MustEmmyName %s+ EmmyType +EmmyAlias <- MustEmmyName %s+ EmmyType EmmyTypeEnums* -EmmyParam <- MustEmmyName %s+ EmmyType +EmmyParam <- MustEmmyName %s+ EmmyType EmmyTypeEnums* EmmyReturn <- EmmyType -- cgit v1.2.3