From f2dad59987e6a555a2ea8669b9ecde17e69e54b5 Mon Sep 17 00:00:00 2001 From: Till Toenshoff Date: Sat, 27 Jun 2015 23:14:09 +0200 Subject: [PATCH] Updated to allow expanding of project specific variables within the include_options. --- st_cc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/st_cc.py b/st_cc.py index 69087b8..ed2198f 100644 --- a/st_cc.py +++ b/st_cc.py @@ -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]: