Permalink
Browse files

Merge pull request #45 from skuroda/language_reference

Add fix for referencing language before it is defined
  • Loading branch information...
condemil committed Oct 13, 2012
2 parents cc39105 + ec60508 commit 9e6bb8c55bd2244cf452995478be4746287c1a3d
Showing with 1 addition and 1 deletion.
  1. +1 −1 gist.py
View
@@ -217,7 +217,7 @@ def open_gist(gist_url):
edit = view.begin_edit()
view.insert(edit, 0, gist['files'][gist_filename]['content'])
view.end_edit(edit)
- if not language: continue
+ if not "language" in locals(): continue
language = gist['files'][gist_filename]['language']
new_syntax = os.path.join(language,"{0}.tmLanguage".format(language))
new_syntax_path = os.path.join(sublime.packages_path(), new_syntax)

0 comments on commit 9e6bb8c

Please sign in to comment.