Skip to content

Commit

Permalink
Re-implement --tag-outside-block.
Browse files Browse the repository at this point in the history
  • Loading branch information
CensoredUsername committed Feb 19, 2024
1 parent a1f0d78 commit b9abc31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decompiler/sl2decompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def sort_keywords_and_children(self, node, immediate_block=False, ignore_childre
# If there are none, we need to insert one. Inserting it at the start is preferable.
if keywords_somewhere:
# if we have no contents: put them on the first line available
if not contents_grouped:
if not contents_grouped or self.options.tag_outside_block:
contents_grouped.append((start_lineno, "keywords", keywords_somewhere))

# if there's multiple empty lines after the statement, fill them with it
Expand Down

0 comments on commit b9abc31

Please sign in to comment.