internal static bool IsSettingMatch(ScopeStack scopes, StackMatchExpression expr) { string cs = null; int d = 0; if (EditorTheme.IsCompatibleScope(expr, scopes, ref cs, ref d)) { return(true); } return(false); }
static ThemeSetting GetSetting(List <ThemeSetting> settings, string scope, bool exact = true) { ThemeSetting result = null; string cs = null; int d = 0; var stack = new ScopeStack(scope); foreach (var s in settings.Skip(1)) { if (s.Scopes.Any(a => EditorTheme.IsCompatibleScope(a, stack, ref cs, ref d))) { result = s; } } return(result); }