Skip to content

Commit

Permalink
Merge pull request #20 from tillt/master
Browse files Browse the repository at this point in the history
Updated include_options to expand project specific variables.
  • Loading branch information
lvzixun committed Jun 28, 2015
2 parents 5c307b4 + f2dad59 commit de34952
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion st_cc.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ def get_opt(view):
language = get_language(view)
s = view.settings()
include_opts = s.has("cc_include_options") and s.get("cc_include_options", []) or settings.get("include_options", [])


window = sublime.active_window()
variables = window.extract_variables()
include_opts = sublime.expand_variables(include_opts, variables)

opt = [drivers[language]]
if language in additional_lang_opts:
for v in additional_lang_opts[language]:
Expand Down

0 comments on commit de34952

Please sign in to comment.