mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-25 22:21:01 +03:00
fix: normalize d5p1 namespace in info scripts and fix Python IndentationErrors
- meta-info, form-info (PS+PY): recognize dNpN: prefix alongside cfg: in type parsing - Fix module-level sys.stderr.reconfigure indentation in 9 Python scripts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
fde6d346d7
commit
872675652f
@@ -58,8 +58,8 @@ function Format-Type($typeNode) {
|
||||
$typeSet = $typeNode.SelectSingleNode("v8:TypeSet", $ns)
|
||||
if ($typeSet) {
|
||||
$val = $typeSet.InnerText
|
||||
# Strip cfg: prefix for DefinedType, keep as-is
|
||||
if ($val -like "cfg:*") { $val = $val.Substring(4) }
|
||||
# Strip cfg:/d5p1: prefix for DefinedType, keep as-is
|
||||
$val = $val -replace '^(cfg|d\d+p\d+):', ''
|
||||
return $val
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ function Format-Type($typeNode) {
|
||||
}
|
||||
}
|
||||
"xs:binary" { $parts += "binary" }
|
||||
"cfg:*" { $parts += $raw.Substring(4) }
|
||||
{ $_ -like "cfg:*" -or $_ -match '^d\d+p\d+:' } { $parts += ($raw -replace '^(cfg|d\d+p\d+):', '') }
|
||||
"v8:ValueTable" { $parts += "ValueTable" }
|
||||
"v8:ValueTree" { $parts += "ValueTree" }
|
||||
"v8:ValueListType" { $parts += "ValueList" }
|
||||
|
||||
@@ -102,8 +102,8 @@ def format_type(type_node):
|
||||
parts.append("dateTime")
|
||||
elif raw == "xs:binary":
|
||||
parts.append("binary")
|
||||
elif raw.startswith("cfg:"):
|
||||
parts.append(raw[4:])
|
||||
elif raw.startswith("cfg:") or re.match(r'^d\d+p\d+:', raw):
|
||||
parts.append(re.sub(r'^(?:cfg|d\d+p\d+):', '', raw))
|
||||
elif raw == "v8:ValueTable":
|
||||
parts.append("ValueTable")
|
||||
elif raw == "v8:ValueTree":
|
||||
|
||||
Reference in New Issue
Block a user