Rewrote the comments in the libraries under 'includes' in English (excluding those inside folders)
This commit is contained in:
@@ -802,6 +802,7 @@ def _parse_paren(ps: Parser | t.CPtr) -> AST | t.CPtr:
|
||||
lineno: t.CInt = _cur_lineno(ps)
|
||||
col: t.CInt = _cur_col(ps)
|
||||
_advance(ps) # (
|
||||
_skip_nl(ps) # 跳过 ( 后的换行(多行元组)
|
||||
if _match_op(ps, TokOp.RPar):
|
||||
_advance(ps)
|
||||
# 空元组
|
||||
@@ -820,6 +821,7 @@ def _parse_paren(ps: Parser | t.CPtr) -> AST | t.CPtr:
|
||||
elts: list[AST | t.CPtr] | t.CPtr = list[AST | t.CPtr](ps.pool, 8)
|
||||
elts.append(first)
|
||||
while _accept_op(ps, TokOp.Comma):
|
||||
_skip_nl(ps)
|
||||
if _match_op(ps, TokOp.RPar):
|
||||
break
|
||||
e: AST | t.CPtr = _parse_expr(ps)
|
||||
@@ -840,6 +842,7 @@ def _parse_list(ps: Parser | t.CPtr) -> AST | t.CPtr:
|
||||
lineno: t.CInt = _cur_lineno(ps)
|
||||
col: t.CInt = _cur_col(ps)
|
||||
_advance(ps) # [
|
||||
_skip_nl(ps) # 跳过 [ 后的换行(多行列表)
|
||||
if _match_op(ps, TokOp.Rsqb):
|
||||
_advance(ps)
|
||||
empty: list[AST | t.CPtr] | t.CPtr = list[AST | t.CPtr](ps.pool, 8)
|
||||
|
||||
Reference in New Issue
Block a user