Skip to content

Commit

Permalink
Add support for rpy python directives.
Browse files Browse the repository at this point in the history
  • Loading branch information
CensoredUsername committed Feb 12, 2024
1 parent d96455c commit 32205c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions decompiler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,3 +974,10 @@ def print_testcase(self, ast):
self.skip_indent_until_write,
self.printlock)
self.skip_indent_until_write = False

# Rpy python directives

@dispatch(renpy.ast.RPY)
def print_rpy_python(self, ast):
self.indent()
self.write("rpy python %s" % ast.rest)

0 comments on commit 32205c8

Please sign in to comment.