Skip to content

Commit

Permalink
Replace the old "self dot" command
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek committed Sep 3, 2023
1 parent 9197aa6 commit 930cf43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 0 additions & 3 deletions lang/tags/object_oriented.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,5 @@

@mod.action_class
class Actions:
def code_operator_object_accessor():
"""Inserts the object accessor operator (e.g., Java's "." or PHP's "->)"""

def code_define_class():
"""Starts a class definition (e.g., Java's "class" keyword)"""
8 changes: 2 additions & 6 deletions lang/tags/object_oriented.talon
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
tag: user.code_object_oriented
-

{user.code_self} dot:
insert(code_self)
user.code_operator_object_accessor()
{user.code_self} {user.code_operator_object_accessor}:
insert("{code_self}{code_operator_object_accessor}")

state {user.code_self}: insert(code_self)

state class: user.code_define_class()

{user.code_self} {user.code_operator_object_accessor}:
insert("{code_self}{code_operator_object_accessor}")

0 comments on commit 930cf43

Please sign in to comment.