Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 512183a

Browse files
committed
first run through
1 parent 3014083 commit 512183a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎AngularJS-sublime-package.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ def walk_dirs(self):
657657
def reindex_file(self, index_key):
658658
file_path = self.kwargs['file_path']
659659

660-
if not file_path.endswith(".js"): return
660+
if not file_path.endswith((".js", ".coffee")): return
661661

662662
current_path = os.path.split(file_path)[0]
663663
# adds limit, to insure we never hit an infinite loop...
@@ -704,7 +704,7 @@ def reindex_file(self, index_key):
704704
ng.add_indexes_to_cache([project_index, self.attribute_dict])
705705

706706
def parse_file(self, file_path, r, match_expressions):
707-
if (file_path.endswith(".js")
707+
if (file_path.endswith((".js", ".coffee"))
708708
and not file_path.endswith(tuple(self.kwargs['exclude_file_suffixes']))):
709709
_abs_file_path = os.path.join(r, file_path)
710710
_file = codecs.open(_abs_file_path)

‎AngularJS-sublime-package.sublime-settings

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
// {0} is the location of where the definition name will be inserted
7676
// ex: directive
77-
"match_expression": "((^[ \\\\t]*\\.{0}|^[ \\\\t]*{0}|angular\\.{0}|\\)\\.{0}|app\\.{0})[ ]*\\([ ]*[\"\\'])([\\w\\.\\$]*)([\"\\'])",
77+
"match_expression": "((^[ \\\\t]*\\.{0}|^[ \\\\t]*{0}|angular\\.{0}|\\)\\.{0}|app\\.{0})[ ]*[\\( ][ ]*[\"\\'])([\\w\\.\\$]*)([\"\\'])",
7878

7979
// what group to expect the name in
8080
// ex: module('myApp')

0 commit comments

Comments
 (0)