diff options
Diffstat (limited to 'server/src/parser/grammar.lua')
-rw-r--r-- | server/src/parser/grammar.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua index 599aada2..42e52d05 100644 --- a/server/src/parser/grammar.lua +++ b/server/src/parser/grammar.lua @@ -306,11 +306,12 @@ Simple <- (Prefix (Sp Suffix)*) Prefix <- Sp ({} PL DirtyExp DirtyPR) -> Prefix / FreeName +Index <- ({} BL DirtyExp DirtyBR) -> Index Suffix <- DOT Name / DOT {} -> MissField / Method (!(Sp CallStart) {} -> MissPL)? / ({} Table {}) -> Call / ({} String {}) -> Call - / ({} BL DirtyExp DirtyBR) -> Index + / Index / ({} PL CallArgList DirtyPR) -> Call Method <- COLON Name / COLON {} -> MissMethod CallStart <- PL @@ -341,7 +342,7 @@ Table <- Sp ({} TL TableFields? DirtyTR) TableFields <- (Emmy / TableSep {} / TableField)+ TableSep <- COMMA / SEMICOLON TableField <- NewIndex / NewField / Exp -NewIndex <- Sp ({} BL DirtyExp DirtyBR NeedAssign DirtyExp) +NewIndex <- Sp (Index NeedAssign DirtyExp) -> NewIndex NewField <- (MustName ASSIGN DirtyExp) -> NewField |