Skip to content

Commit 7838e79

Browse files
gwenzekmarkbirbeck
authored andcommitted
[#74] Add fallback when no resource matches given syntax
1 parent 24abb08 commit 7838e79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SublimeHelper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ def __init__(self, window, data_key, command, working_dir, title=None, syntax=No
223223
resources = sublime.find_resources(syntax)
224224

225225
if not resources:
226-
print('Resource not found:', syntax)
226+
print('No resource found matching "%s". Using it as full syntax path.' % syntax)
227+
self.console.set_syntax_file(syntax)
227228
else:
228229
self.console.set_syntax_file(resources[0])
229230

0 commit comments

Comments
 (0)