Skip to content

Commit

Permalink
Update python.py (#1469)
Browse files Browse the repository at this point in the history
Added break / continue for statements (similar to other languages)

Closes #1468
  • Loading branch information
CodesAway authored Jun 30, 2024
1 parent 5a97058 commit 6a25790
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lang/python/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,3 +346,9 @@ def code_insert_type_annotation(type: str):

def code_insert_return_type(type: str):
actions.insert(f" -> {type}")

def code_break():
actions.insert("break")

def code_next():
actions.insert("continue")

0 comments on commit 6a25790

Please sign in to comment.