Skip to content

Commit 8dbe134

Browse files
Anderson, ChaseAnderson, Chase
Anderson, Chase
authored and
Anderson, Chase
committed
updated completions regex to catch :initialize and not just .initialize
1 parent 794330a commit 8dbe134

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

completions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import json
66

77
import_regex = """^(local\s+)?([\w\d_]+)\s*=\s*require\s*\(?['"]?(.+?)['"]?\)?$"""
8-
object_regex = """^(?:local\s+)?([\w\d_]+)\s*=\s*([.\w\d_]*?)(?:\.initialize)?(?:\:(?:new|get))?(\(.*\))$"""
8+
object_regex = """^(?:local\s+)?([\w\d_]+)\s*=\s*([.\w\d_]*?)(?:(?:\.|:)initialize)?(?:\:(?:new|get))?(\(.*\))$"""
99

1010
def is_summit_file(view):
1111
return view.match_selector(view.sel()[0].a, "source.lua.summit")

summit.completions

+2-2
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,8 @@
625625
"contents": "salesforce.delete(${0:ids})",
626626
"module": ["integration.salesforce", "integration.salesforce.delete"]
627627
},{
628-
"trigger": "zoho.initialize(options)",
629-
"contents": "zoho.initialize(${0:options})",
628+
"trigger": "zoho:initialize(options)",
629+
"contents": "zoho:initialize(${0:options})",
630630
"module": "integration.zoho"
631631
},{
632632
"trigger": "zoho:get(viewName)",

0 commit comments

Comments
 (0)