Regex ReadSetting(string settingName)
 {
     foreach (var setting in SyntaxHighlightingService.GetSettings(scope))
     {
         PObject val;
         if (setting.TryGetSetting(settingName, out val))
         {
             try {
                 return(new Regex(Sublime3Format.CompileRegex(((PString)val).Value)));
             } catch (Exception e) {
                 LoggingService.LogError("Error while parsing " + settingName + ": " + val, e);
             }
         }
     }
     return(null);
 }