diff options
Diffstat (limited to 'server/src/parser/grammar.lua')
-rw-r--r-- | server/src/parser/grammar.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua index 28e3eb28..25ac30f2 100644 --- a/server/src/parser/grammar.lua +++ b/server/src/parser/grammar.lua @@ -541,15 +541,15 @@ EmmyClass <- (MustEmmyName EmmyParentClass?) EmmyParentClass <- %s* {} ':' %s* MustEmmyName EmmyType <- EmmyFunctionType - / EmmyArrayType / EmmyTableType + / EmmyArrayType / EmmyCommonType EmmyCommonType <- EmmyTypeNames -> EmmyCommonType EmmyTypeNames <- EmmyTypeName (%s* {} '|' %s* !String EmmyTypeName)* EmmyTypeName <- EmmyFunctionType - / EmmyArrayType / EmmyTableType + / EmmyArrayType / MustEmmyName EmmyTypeEnums <- %s* '|' %s* String @@ -580,7 +580,7 @@ EmmyArrayType <- (MustEmmyName '[]') EmmyTableType <- ({} 'table' Cut '<' %s* EmmyType %s* ',' %s* EmmyType %s* '>' {}) -> EmmyTableType -EmmyFunctionType<- ('fun' Cut %s* EmmyFunctionArgs? %s* EmmyFunctionRtn?) +EmmyFunctionType<- ({} 'fun' Cut %s* EmmyFunctionArgs? %s* EmmyFunctionRtn? {}) -> EmmyFunctionType EmmyFunctionArgs<- '(' %s* EmmyFunctionArg %s* (',' %s* EmmyFunctionArg %s*)* ')' EmmyFunctionRtn <- ':' %s* EmmyType |