mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-02-05 17:28:23 +08:00
Merge branch 'master' of https://github.com/pikastech/pikascript
This commit is contained in:
commit
a6c3c8b16d
@ -2351,13 +2351,10 @@ AST* parser_line2Ast(Parser* self, char* sLine) {
|
||||
AST_setNodeAttr(oAst, "global", sGlobalList);
|
||||
goto __block_matched;
|
||||
}
|
||||
if (strIsStartWith(sLineStart, "del ") ||
|
||||
strIsStartWith(sLineStart, "del(")) {
|
||||
if (strIsStartWith(sLineStart, "del")) {
|
||||
sStmt = "";
|
||||
char* sDelDir = NULL;
|
||||
if (sLineStart[3] == '(') {
|
||||
sDelDir = strsCut(&buffs, sLineStart, '(', ')');
|
||||
} else {
|
||||
char* sDelDir = strsCut(&buffs, sLineStart, '(', ')');
|
||||
if (!sDelDir){
|
||||
sDelDir = sLineStart + sizeof("del ") - 1;
|
||||
}
|
||||
sDelDir = Cursor_getCleanStmt(&buffs, sDelDir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user