Support Array and PackedArray in @export_*

This commit is contained in:
Abel Toy
2023-10-07 19:32:08 +09:00
parent f2045ba822
commit 882441a0ad
14 changed files with 470 additions and 73 deletions

View File

@ -1737,7 +1737,7 @@ def make_rst_index(grouped_classes: Dict[str, List[str]], dry_run: bool, output_
# Formatting helpers.
RESERVED_FORMATTING_TAGS = ["i", "b", "u", "code", "kbd", "center", "url", "br"]
RESERVED_FORMATTING_TAGS = ["i", "b", "u", "lb", "rb", "code", "kbd", "center", "url", "br"]
RESERVED_LAYOUT_TAGS = ["codeblocks"]
RESERVED_CODEBLOCK_TAGS = ["codeblock", "gdscript", "csharp"]
RESERVED_CROSSLINK_TAGS = [
@ -2311,6 +2311,12 @@ def format_text_block(
escape_pre = True
tag_text = ""
elif tag_state.name == "lb":
tag_text = "\\["
elif tag_state.name == "rb":
tag_text = "\\]"
elif tag_state.name == "kbd":
tag_text = "`"
if tag_state.closing: