phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0
This commit is contained in:
@ -139,7 +139,7 @@ box ParserBox {
|
||||
if p.length() > 5 && me.starts_with(p, p.length()-5, ".hako") == 1 {
|
||||
p = p.substring(0, p.length()-5)
|
||||
} else {
|
||||
if p.length() > 6 && me.starts_with(p, p.length()-6, ".nyash") == 1 {
|
||||
if p.length() > 6 && me.starts_with(p, p.length()-6, ".hako") == 1 {
|
||||
p = p.substring(0, p.length()-6)
|
||||
}
|
||||
}
|
||||
|
||||
@ -39,7 +39,7 @@ static box UsingCollectorBox {
|
||||
if ParserCommonUtilsBox.starts_with(target, 0, "./") == 1 { is_path = 1 }
|
||||
if ParserCommonUtilsBox.starts_with(target, 0, "/") == 1 { is_path = 1 }
|
||||
if target.length() >= 5 && ParserCommonUtilsBox.starts_with(target, target.length()-5, ".hako") == 1 { is_path = 1 }
|
||||
if target.length() >= 6 && ParserCommonUtilsBox.starts_with(target, target.length()-6, ".nyash") == 1 { is_path = 1 }
|
||||
if target.length() >= 6 && ParserCommonUtilsBox.starts_with(target, target.length()-6, ".hako") == 1 { is_path = 1 }
|
||||
}
|
||||
local name = ""
|
||||
local path = null
|
||||
@ -59,7 +59,7 @@ static box UsingCollectorBox {
|
||||
if idx >= 0 { p = p.substring(idx+1, p.length()) }
|
||||
// strip extension
|
||||
if p.length() > 5 && ParserCommonUtilsBox.starts_with(p, p.length()-5, ".hako") == 1 { p = p.substring(0, p.length()-5) }
|
||||
else { if p.length() > 6 && ParserCommonUtilsBox.starts_with(p, p.length()-6, ".nyash") == 1 { p = p.substring(0, p.length()-6) } }
|
||||
else { if p.length() > 6 && ParserCommonUtilsBox.starts_with(p, p.length()-6, ".hako") == 1 { p = p.substring(0, p.length()-6) } }
|
||||
name = p
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user