diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-02 11:26:59 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-02 11:26:59 +0800 |
commit | 9580b8407313fa37c47fbddc1a475c12c5086138 (patch) | |
tree | d6c92fc35880f9d13bfc67e7fad9678fd63e400e /server/src | |
parent | 8abce8a4f59131b95722f4d1d8cdbf1d83b2a63c (diff) | |
download | lua-language-server-9580b8407313fa37c47fbddc1a475c12c5086138.zip |
更新语法检查
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/parser/grammar.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua index 907a5754..a16f16c4 100644 --- a/server/src/parser/grammar.lua +++ b/server/src/parser/grammar.lua @@ -298,11 +298,9 @@ ExpList <- (COMMA Exp)+ -> List / (Exp (COMMA Exp)*) -> List -CallArgList <- Sp ({} (COMMA {} / Exp / DirtyCallArg)+ {}) +CallArgList <- Sp ({} (COMMA {} / Exp)+ {}) -> CallArgList / %nil -DirtyCallArg<- Sp ({} {(!PR !PL !COMMA !Word .)+}) - -> UnknownSymbol NameList <- (COMMA MustName)+ -> List / (Name (COMMA MustName)*) @@ -322,9 +320,7 @@ AfterArg <- DOTS Table <- Sp ({} TL TableFields? DirtyTR) -> Table -TableFields <- (TableSep {} / TableField / DirtyField)+ -DirtyField <- Sp ({} {(!TR !BL !COMMA !SEMICOLON !Word .)+}) - -> UnknownSymbol +TableFields <- (TableSep {} / TableField)+ TableSep <- COMMA / SEMICOLON TableField <- NewIndex / NewField / Exp NewIndex <- Sp ({} BL DirtyExp DirtyBR DirtyAssign DirtyExp) |