Skip to content

Commit

Permalink
* use gs.tm_path to find the GoSublime.tmLanguage file. fixes not bei…
Browse files Browse the repository at this point in the history
…ng able to load it on st3
  • Loading branch information
DisposaBoy committed Apr 27, 2013
1 parent 035138f commit 4075a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gscommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class GsCreateNewGoFileCommand(sublime_plugin.TextCommand):
def run(self, edit, pkg_name, file_name):
view = self.view
view.set_name(file_name)
view.set_syntax_file(gs.dist_path('GoSublime.tmLanguage'))
view.set_syntax_file(gs.tm_path('go'))
view.replace(edit, sublime.Region(0, view.size()), 'package %s\n' % pkg_name)
view.sel().clear()
view.sel().add(view.find(pkg_name, 0, sublime.LITERAL))
Expand Down

0 comments on commit 4075a28

Please sign in to comment.