Skip to content

Commit

Permalink
Take new syntax files into account
Browse files Browse the repository at this point in the history
  • Loading branch information
nsubiron committed Feb 1, 2017
1 parent 9d3052f commit 978f69f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/sublime_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def flush_to_buffer(
if name is not None:
view.set_name(name)
if syntax is not None:
syntax_files = sublime.find_resources(syntax + '.tmLanguage')
syntax_files = sublime.find_resources(syntax + '.sublime-syntax')
syntax_files += sublime.find_resources(syntax + '.tmLanguage')
syntax_files += sublime.find_resources(syntax + '.hidden-tmLanguage')
if syntax_files:
view.set_syntax_file(syntax_files[0])
Expand Down

0 comments on commit 978f69f

Please sign in to comment.